How to Distinguish a Physical Disk Device from an Event Message
Summary
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:
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:
- Start Disk Management console (diskmgmt.msc).
- 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.
- 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:
- Run Registry Editor (Regedt32.exe).
- 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# - 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.
- 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.
- 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.
- To find \device\harddisk5 find the 6th DiskPeripheral (zero through five).
- 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. - 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.
- 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的更多相关文章
- How to match between physical usb device and its drive letter?
struct tagDrives { WCHAR letter; WCHAR volume[ BUFFER_SIZE ]; } g_drives[ ]; // WCHAR GetUSBDrive( ) ...
- openNebula libvirt-virsh attach disk device for kvm
1,新建文件硬盘 qemu-img create -f qcow2 testdisk.img 2G
- 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 ...
- 开源虚拟化KVM(二)管理虚拟存储
五,管理虚拟存储 5.1 虚拟磁盘概述 5.1.1 虚拟化项目中存储的注意事项 [x] 存储的性能几乎总是虚拟化的瓶颈 [x] 通过多个硬盘驱动以分布磁盘I/O来实现存储解决方案 [x] 考虑部署集中 ...
- ubuntu 14.04 升级到 16.04 问题总结
1. 需要的依赖关系未安装 The required dependency 'apt (>= 1.0.1ubuntu2.13)' is not installed. http://forum.u ...
- Linux实战教学笔记54:开源虚拟化KVM(二)管理虚拟存储
五,管理虚拟存储 5.1 虚拟磁盘概述 5.1.1 虚拟化项目中存储的注意事项 [x] 存储的性能几乎总是虚拟化的瓶颈 [x] 通过多个硬盘驱动以分布磁盘I/O来实现存储解决方案 [x] 考虑部署集中 ...
- 学习Kvm(六)
五,管理虚拟存储 5.1 虚拟磁盘概述 5.1.1 虚拟化项目中存储的注意事项 [x] 存储的性能几乎总是虚拟化的瓶颈 [x] 通过多个硬盘驱动以分布磁盘I/O来实现存储解决方案 [x] 考虑部署集中 ...
- Network Function Virtualization for a Network Device
An apparatus for performing network function virtualization (NFV), comprising: a memory, a processor ...
- Tagging Physical Resources in a Cloud Computing Environment
A cloud system may create physical resource tags to store relationships between cloud computing offe ...
随机推荐
- mac 上 sublime text2 快捷键
打开/前往: ⌘T 前往文件 ⌘⌃P 前往项目⌘R 前往 method⌘⇧P 命令提示⌃G 前往行⌃ ` python 控制台 编辑:⌘L 选择行 (重复按下将下一行加入选择)⌘D 选择词 (重复按下 ...
- Window文本在Linux中出现的^M问题
问题:在Windows中写了一个shell脚本在Linux中死活不能运行,怎么也查不出错误,原来是格式问题. 原因:Windows/DOS系统的换行符是/r/n,Unix/Linux系统的换行符是/n ...
- MySQL-IN和Exists区别
1.in和exists in是把外表和内表作hash连接,而exists是对外表作loop循环,每次loop循环再对内表进行查询.一直以来认为exists比in效率高的说法是不准确的. exists ...
- MySQL-开发规范升级版
一.基础规范 表存储引擎必须使用InnoDB 表字符集默认使用utf8,必要时候使用utf8mb4 解读: (1)通用,无乱码风险,汉字3字节,英文1字节 (2)utf8mb4是utf8的超集,有 ...
- C语言 五子棋
#include <stdlib.h> #include <stdio.h> #include <conio.h> #include <string.h> ...
- [置顶]
人工智能(深度学习)加速芯片论文阅读笔记 (已添加ISSCC17,FPGA17...ISCA17...)
这是一个导读,可以快速找到我记录的关于人工智能(深度学习)加速芯片论文阅读笔记. ISSCC 2017 Session14 Deep Learning Processors: ISSCC 2017关于 ...
- day4装饰器
Python装饰器 1.必备 def foo(): print(foo) <function foo at 0x7f62db093f28> >>> foo <fun ...
- C# 6.0 新特性 (一)
概述 尽管 C# 6.0 尚未完成,但现在这些功能正处于接近完成的关键时刻.自 2014 年 5 月发布文章“C# 6.0 语言预览版”(msdn.microsoft.com/magazine/dn6 ...
- 一、React Native 搭建开发环境(1)(Mac OS - IOS项目篇)
React Native是Facebook推出的一个开发IOS和安卓APP的技术.至于更多的详情,这里不再描述,大家可以自行百度它的定义. 原因:由于我想在一台电脑上同时开发IOS和Android两个 ...
- js求区间随机数
function rnd(n, m){ var random = Math.round(Math.random()*(m-n)+n); return random; }