Boot.ini – Mapping rdisk Value to Disk

bootlinuxwindows

Following are the contents of a sample boot.ini:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /NOEXECUTE=OPTIN /FASTDETECT
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows 2000 Professional" /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /NOEXECUTE=OPTIN /FASTDETECT

The rdisk value tells the physical disk number.

So, if I have three hard disks say:

  • /dev/sda

  • /dev/sdb

  • /dev/sdc

Then how to know which disk (/dev/sda or /dev/sdb or /dev/sdc) is rdisk(0) and which disk is rdisk(1), etc.?

Best Answer

Trial and error?

I'm sure there is a method by which Windows orders the disks, but even if I knew it, I wouldn't trust it and would alwasys check before changing stuff.

The boot.ini file gives you some clues, such as what operating system is on which disk. You may then be able to work it out from that. eg is there only one ntfs partition on a particular disk and two on others, what users are on each operating system and so have directories on each Windows system. You could even boot into each operating system and save a file in its system partition to help you.

(If you are trying to work out which disk a broken entry in boot.ini refers to, msconfig.exe has an option to check the boot paths to make sure that each option should boot.)

Related Question