双系统XP和Ubuntu: 重新安装XP后GRUB出错进不了Ubuntu的解决办法

 

使用ubuntu liveCD

打开Terminal

sudo -i (使用root身份)

grub (这个地方需要花一点时间)

find /boot/grub/stage1

(会出现(hdx,y) -> 里面没有空格. 我的出现的是(hd1,3),说明ubuntu是在第二块硬盘上,第3个分区)

root (hd1,3)

setup (hd1)

grub> setup (hd1)
Checking if “/boot/grub/stage1″ exists… yes
Checking if “/boot/grub/stage2″ exists… yes
Checking if “/boot/grub/e2fs_stage1_5″ exists… yes
Running “embed /boot/grub/e2fs_stage1_5 (hd1)”…  16 sectors are embedded.
succeeded
Running “install /boot/grub/stage1 (hd1) (hd1)1+16 p (hd1,3)/boot/grub/stage2
/boot/grub/menu.lst”… succeeded
Done.

grub>qui

你可能感兴趣的:(双系统XP和Ubuntu: 重新安装XP后GRUB出错进不了Ubuntu的解决办法)