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. Tutorial 6: ViewSets & Routers

    转载自:http://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/ Tutorial 6: ViewSets & ...

  2. Django 1.10文档中文版Part1

    目录 第一章.Django1.10文档组成结构1.1 获取帮助1.2 文档的组织形式1.3 第一步1.4 模型层1.5 视图层1.6 模板层1.7 表单1.8 开发流程1.9 admin站点1.10 ...

  3. java.lang.IllegalArgumentException: Page directive: invalid value for import

    我的项目原来用的tomcat版本是apache-tomcat-7.0.53,后来为了安全原因将版本升至\apache-tomcat-7.0.57,发现有的jsp页面出现下面的异常: java.lang ...

  4. C语言再学习之 setjmp与longjmp

    前不久在阅读Quake3源代码的时候,看到一个陌生的函数:setjmp,一番google和查询后,觉得有必要针对setjmp和longjmp这对函数写一篇blog,总结一下. setjmp和longj ...

  5. 初涉yield

    function* a(i) { console.log('here we go'); yield i; // 必须有*,不然b会作为返回值,而不是执行 yield* b(i); yield i+10 ...

  6. 秀尔算法:破解RSA加密的“不灭神话” --zz

    http://netsecurity.51cto.com/art/201508/488766.htm RSA加密曾被视为最可靠的加密算法,直到秀尔算法出现,打破了RSA的不灭神话. RSA加密 VS ...

  7. git合并分支理解和常用命令的总结

    原文参考:https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000 工作区和暂存区 工作区 ...

  8. vue表格导入

    <input id="upload" type="file" @change="importfxx(this)"  accept=&q ...

  9. python笔记六:进程与线程

    1.进程 1)调用unix/linux系统中的进程函数fork(),用法和linux相同,调用成功返回0,失败返回-1: import os print 'Process (%s) start...' ...

  10. 【BZOJ 2440】 2440: [中山市选2011]完全平方数 (二分+容斥原理+莫比乌斯函数)

    2440: [中山市选2011]完全平方数 Description 小 X 自幼就很喜欢数.但奇怪的是,他十分讨厌完全平方数.他觉得这些数看起来很令人难受.由此,他也讨厌所有是完全平方数的正整数倍的数 ...