- 论坛徽章:
- 0
|
行了,在http://ubuntuguide.org/wiki/Ubun ... d1.2C_hd2.2C_etc.29上有解决的办法,在“1.17 Boot Menu 下的 How to boot into Windows installed on a seperate SATA drive”小节下,不过都是英文,下面是英文原文:
How to boot into Windows installed on a seperate SATA drive
Read #General Notes
Read #How to identify the name of the boot drive (hd0, hd1, hd2, etc)
This configuration applies to people who have Linux installed on a IDE drive, and Windows installed on a seperate SATA. The IDE drive boots first, so we need to add an entry to the boot menu on the Linux disk. Here we assume the name of your Windows drive is hd1. If you are not sure, click the link above to find out.
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
gksudo gedit /boot/grub/menu.lst
Append the following lines at the end of file.
title Windows XP on SATA drive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1
Save the edited file
Finally, do
sudo update-grub
This will update the grub bootloader and finalize any changes you made
这个是ubuntu下的解决方法,不过在RHEL5下也能用。,下面说一下注意事项:
map (hd0) (hd1) --在map、(hd0) 、(hd1)三个之间有空格,(hd0)中,“hd0”与“(”,“)”之间 不能有空格,否则会出错。
map (hd1) (hd0) --与上面的一样
chainloader (hd1,0)+1 --“+1”直接在“(hd1,0)”后面,它们之间没有空格。
在我的电脑里,hd0为IDE的硬盘,hd1为SATA的硬盘,在linux系统启动到选择菜单后按下“c”,可以进入grub,然后输入“root (hd0,0)”,会显示出该盘的格式为ext2,说明是IDE盘(我装linux在IDE上),输入“root (hd1,0)”,会显示出“unknow”之类的,记不清了,说明是SATA盘。
在grub下,串口硬盘与并口硬盘用统一的命名方法,即都以hd开头。在进入linux系统以后,可以用“fdisk -l”命令查看可以作为启动盘的硬盘,在“1.17 Boot Menu ”里都说得很清楚了,自己看了,呵呵。
在grub.conf下只要加入这段就可以选择从SATA盘启动了:
title Windows XP on SATA drive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1,0)+1 |
|