Install Red Hat Enterprise Linux 3 on 2nd hdd in my thinkpad with usb dvd-rom.
Choose Grub as boot selector and install grub on the first sector of 2nd hdd without lba support. Reboot, hit F12, choose 2nd hdd to boot up, during booting, screen showed GRUB 4 characters, then stop there. Grub can't continue to load boot menu.
Boot using linux cd in rescue mode, reinstall grub with on the first sector of 2nd hdd:
$ grub-install /dev/hdc
Reboot, hit F12, choose 2nd hdd, during boot, can't see the boot menu, but grub continues to load and get following error message:
- Cannot mount selected partition
- This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
$ cat /boot/grub/device.map
fd0 /dev/fda
hd0 /dev/hda
hd1 /dev/hdc
$ cat /boot/grub/grub.conf
title Linux
root (hd1,0)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img
title Windows
root (hd0,0)
chainload (+1)
Finally, I caught the point. When choosing 2nd hdd as first boot device by F12 during booting, BIOS will see it as hda, and the ist native hdd will change from hda to hdc.
During the grub installing, grub will guess the boot devices list, and generate a device.map file and grub.conf with the detected settings. that time, grub is right, but when booting from 2nd hdd, the thing changes.
I had it working with following settings.
$ cat /boot/grub/device.map
fd0 /dev/fda
hd0 /dev/hda
hd1 /dev/hdc
$ cat /boot/grub/grub.conf
title Linux
root (hd0,0)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /initrd-2.4.21-4.EL.img
title Windows
root (hd1,0)
chainload (+1)
But i am still wondering why linux could keep recognize /dev/hdc but grub not? needs answer.
refer to:


