Bug#265228: Maybe wrong _disk_
Lionel Elie Mamane
Lionel Elie Mamane <lmamane@debian.org>, 265228@bugs.debian.org
Mon, 27 Jun 2005 00:30:40 +0200
(Please CC me on replies)
Hi,
I think the *disk* is wrong. The thing is that grub gets the list of
disks from the *BIOS* and Linux gets it directly from the IDE
controller. So, not only Linux may "holes" in its numbering (no
/dev/hda, but there is a /dev/hdb), but also the *order* may be
different. Linux numbers them in the lexicographic order of the
"channel,master/slave" tuple, but BIOS (and thus grub) orders them by
booting order. So your (first) boot disk will always be (hd0) to
grub. The second in booting order will be (hd1), etc.
(That's why there is a file /boot/grub/device.map, so that you can
correct the mapping if the OS-level grub executables (/sbin/grub,
grub-install, update-grub) detected it wrong.)
--
Lionel