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.
See current setting files.
$ 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:

Post a comment

mail.png


相似文章|Related Entries

最近更新|Recent Entries

不定期更新|Handy Entries

相似标签|Related Tags

hdd
APS (1)
dma (1)
Linux (15)
PIO (2)
Thinkpad (9)
UDMA5 (1)
Ultra Slim (4)
东芝 (1)
日立 (1)
Linux
Apache (3)
awstats (4)
Cluster (1)
eMule (1)
ext3 (1)
gcc (0)
Gentoo (1)
hdd (7)
mount (1)
NAT (1)
Redhat (1)
Samba (2)
Study notes (9)
T43 (0)
Thinkpad (9)
Ultra Slim (4)
WAS (1)
Websphere (1)
乱码 (1)
学习笔记 (14)
虚拟主机 (1)
部署 (1)
集群 (1)
Thinkpad
APS (1)
driver (2)
Gentoo (1)
hdd (7)
Linux (15)
optimize (1)
software (2)
T43 (0)
Ultra Slim (4)
update (2)
winxp (4)
清理键盘 (1)
清理风扇 (1)
Ultra Slim
APS (1)
hdd (7)
Linux (15)
Thinkpad (9)

分类栏目|Categories

按月归档|By Month

2008
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

站内链接|Site Links

Powered by
Movable Type 3.34