https://support.microsoft.com/en-us/help/159865 
https://support.microsoft.com/en-us/help/244780/information-about-event-id-51
 
This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.

Summary

Microsoft Windows may report event messages in the event log for various hard disk device issues using the following syntax:

The device, \Device\Harddisk#\Partition #

The following are examples of some common event log message entries:

  • The device, \Device\Harddisk0\Partition 1, has a bad block.
  • The device, \Device\HardDisk1\Partition0, has been reset.
  • System process lost delayed-write data.
  • System was attempting to transfer file data from buffers to \\device\harddisk4\partition2\mydir\myfile.txt
    The write operation failed.
  • An error occurred while attempting to recover data from the fault tolerance set containing \device\harddisk2\FT1

In each of the preceding examples you need to translate the hard disk number to a physical drive on the system. You can determine the hard disk number by looking in the registry, but you need to know if you are using IDE drives, SCSI drives or a combination of the two. Disk Administrator will display the drives in the order they are enumerated on each controller and in the order that the controller device drivers are loaded. If you are using multiple controllers, the order in which they are identified is based on I/O port and controller BIOS address assignments.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

322756How to back up and restore the registry in Windows

NOTE: Disk Management is enhanced in Windows 2000 and later operating systems. You can use Disk Management to view this information without using Registry Editor. To view where a particular hard disk is located in your system, use the following procedure:

  1. Start Disk Management console (diskmgmt.msc).
  2. View the graphical view of your disks. Right-click the gray portion of the basic or dynamic disk whose disk number matches the "Harddisk#" in the error message.
  3. Click Properties.The Properties will contain "Device Type" information that will tell you if the disk is IDE or SCSI, and it will also display the "Hardware Vendor" name of the physical device and the "Adapter Name" it is attached to.

For Windows NT, use Registry Editor to extract the required information as follows:

  1. Run Registry Editor (Regedt32.exe).
  2. Locate, and then click the following registry key (for IDE-based devices):
    HKEY_LOCAL_MACHINE\Hardware\Devicemap\Atdisk
          Controller0  look at the controller address and interrupt.
    disk0 look at identifier string for manufacturer and model#
    disk1 look at identifier string for manufacturer and model#
    Controller1 look at the controller address and interrupt.
    disk0 look at identifier string for manufacturer and model#
    disk1 look at identifier string for manufacturer and model#
  3. Locate, and then click the following registry key (For Atapi-compliant or SCSI devices):
    HKEY_LOCAL_MACHINE\Hardware\Devicemap\SCSI
          Scsiport0  look at driver, Interrupt, and IOAddress
    Scisbus0
    Targetid0
    Logical Unit Id 0 look at identifier and type.
    Targetid1
    Logical Unit Id 0 look at identifier and type.
    Targetid4
    Logical Unit Id 0 look at identifier and type.
    Scsibus1
    Targetid0
    Logical Unit Id 0 look at identifier and type.
    Targetid1
    Logical Unit Id 0 look at identifier and type.
    Targetid2
    Logical Unit Id 0
    Scsiport1 look at driver, Interrupt and I/O Address.
    Scsibus0
    Targetid0
    Logical Unit Id 0 look at identifier and type.

NOTE: When the SCSI ID number is higher than 9, the registry lists the drives alphabetically, but the computer assigns physical IDs to the drives numerically.

Using the information gathered from the registry, you can determine which physical drive maps to a particular disk number in Disk Administrator.

  1. Using the "identifier" and "type" values, determine which entries are for DISKS and which are for other devices such as CD-ROMS, tapes, scanners, and so forth.
  2. Find each Type:REG_SZ:DiskPeripheral entry under the Targetid#\Logicalunitid0. Each one found equates to a drive in Disk Administrator and also to a \device\harddisk number.
  3. To find \device\harddisk5 find the 6th DiskPeripheral (zero through five).
  4. Make note of the SCSIPORT, SCSIBUS, and TARGETID# and use this to replace the defective device.
    SCSIPORT is a SCSI controller.
    SCSIBUS is a channel on the SCSI controller. Some controllers are dual channel and have SCSIBUS0 and SCSIBUS1.
    TARGETID is the SCSI ID the device that is configured to use usually 0 through 6, with the initiator ID 7 representing the controller itself.
  5. If you have doubts about which SCSIPORT represents which SCSI Controller look at the driver, I/O Address, and Interrupt of the SCSIPORT entry and match it with the hardware configuration set on the controller.
  6. For IDE Devices, the drives are in master/slave configuration order on each controller.

How to Distinguish a Physical Disk Device from an Event Message的更多相关文章

  1. How to match between physical usb device and its drive letter?

    struct tagDrives { WCHAR letter; WCHAR volume[ BUFFER_SIZE ]; } g_drives[ ]; // WCHAR GetUSBDrive( ) ...

  2. openNebula libvirt-virsh attach disk device for kvm

    1,新建文件硬盘 qemu-img create -f qcow2 testdisk.img 2G

  3. QEMU KVM Libvirt手册(11): Managing Storage

    When managing a VM Guest on the VM Host Server itself, it is possible to access the complete file sy ...

  4. 开源虚拟化KVM(二)管理虚拟存储

    五,管理虚拟存储 5.1 虚拟磁盘概述 5.1.1 虚拟化项目中存储的注意事项 [x] 存储的性能几乎总是虚拟化的瓶颈 [x] 通过多个硬盘驱动以分布磁盘I/O来实现存储解决方案 [x] 考虑部署集中 ...

  5. ubuntu 14.04 升级到 16.04 问题总结

    1. 需要的依赖关系未安装 The required dependency 'apt (>= 1.0.1ubuntu2.13)' is not installed. http://forum.u ...

  6. Linux实战教学笔记54:开源虚拟化KVM(二)管理虚拟存储

    五,管理虚拟存储 5.1 虚拟磁盘概述 5.1.1 虚拟化项目中存储的注意事项 [x] 存储的性能几乎总是虚拟化的瓶颈 [x] 通过多个硬盘驱动以分布磁盘I/O来实现存储解决方案 [x] 考虑部署集中 ...

  7. 学习Kvm(六)

    五,管理虚拟存储 5.1 虚拟磁盘概述 5.1.1 虚拟化项目中存储的注意事项 [x] 存储的性能几乎总是虚拟化的瓶颈 [x] 通过多个硬盘驱动以分布磁盘I/O来实现存储解决方案 [x] 考虑部署集中 ...

  8. Network Function Virtualization for a Network Device

    An apparatus for performing network function virtualization (NFV), comprising: a memory, a processor ...

  9. Tagging Physical Resources in a Cloud Computing Environment

    A cloud system may create physical resource tags to store relationships between cloud computing offe ...

随机推荐

  1. 监控MYSQL主从同步配置中监控从库运行状态的脚本

    代码如下: #!/bin/bash #Check MySQL Slave's Runnning Status #Crontab time 00:10 MYSQLPORT=`netstat -na|gr ...

  2. Webcollector应用(二)

    先吐槽一句哀家的人品,总在写好代码之后,网站默默的升级,没有一点点防备... 一.加代理 爬取一个网站的时候,爬了不到一半,IP被封了,整个内部局域网的所有电脑都不能访问网站了. public cla ...

  3. <转>MYSQL数据库数据拆分之分库分表总结

    数据存储演进思路一:单库单表 单库单表是最常见的数据库设计,例如,有一张用户(user)表放在数据库db中,所有的用户都可以在db库中的user表中查到. 数据存储演进思路二:单库多表 随着用户数量的 ...

  4. html学习-js

    1.js介绍 JavaScript是一门编程语言,浏览器内置了JavaScript语言的解释器,所以在浏览器上按照JavaScript语言的规则编写相应代码之,浏览器可以解释并做出相应的处理.js能使 ...

  5. IEEEXtreme 9.0 - Digit Fun!

    博客中的文章均为 meelo 原创,请务必以链接形式注明 本文地址 Xtreme 9.0 - Digit Fun! 题目来源:第9届IEEE极限编程大赛第1题 Recurrence relations ...

  6. Laravel 之父:让 Laravel、Symfony、 Zend 来一场公平的性能测试

    网上充斥着各式各样的 PHP 框架性能对比的文章.然而,他们总是把“苹果”和“橘子”做对比(看上去有点儿像,都是圆的,但其实不是一码事).这次,我将着重对 Laravel.Symfony 和 Zend ...

  7. ZOJ 3953 Intervals

    线段树,排序. 按照$R$从小到大排序之后逐个检查,如果$L$,$R$最大值不超过$2$,那么就把这个区间放进去,区间$+1$,否则不能放进去. #include<bits/stdc++.h&g ...

  8. 【记录】mysql 无法启动 : NET HELPMSG 3523

    mysql 无法启动 : NET HELPMSG 3523后来注意到mysql 配置文件的格式是 utf-8 还是有bom的utf-8 bom格式前面会多出一些看不见的字符,所以mysql读取配置文件 ...

  9. 分割视图控制器(UISplitViewController)

    这种控制器只能用于iPad,它可以在iPad屏幕中显示两个不同的场景:在横向模式下,左边显示一个表,供用户选择:用户选择表中的元素后,详细视图将显示该元素的详细信息.如果iPad被旋转到纵向模式,表将 ...

  10. 获取token

    获取token 提示:openstack 这个是获取N版的方法 ,主要区别在于这个路径上(http://192.168.0.228:35357/v3/auth/tokens ),以前版本可能会是v2 ...