双系统XP+ubuntu9 ,原先是把第三主分区设置成启动激活,一切正常。近日心血来潮想用XP的NT来引导,于是用DD备份了引导区,
但ubuntu 9不能启动了,只有一光标在屏幕左上角闪。后换回第三主分区引导也不行了。
代码: 全选
硬盘分区情况
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000001
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3825 30724281 7 HPFS/NTFS
/dev/sda2 3826 15566 94309582+ 5 Extended
/dev/sda3 15567 16782 9767520 83 Linux
/dev/sda4 16783 19457 21486937+ 83 Linux
/dev/sda5 3826 7715 31246393+ 7 HPFS/NTFS
/dev/sda6 7716 10147 19535008+ b W95 FAT32
/dev/sda7 10148 15323 41576188+ 83 Linux
/dev/sda8 15324 15553 1847443+ 82 Linux swap / Solaris
/dev/sda9 15554 15566 104391 83 Linux #新增加的boot分区(EXT3)
一、grub安装
用LIVECD进入ubuntu,用
已经提示成功,激活第三主分区(hd0,2)仍不能启动,启动时也是只有光标在屏幕左上角闪grub> root (hd0,2)
root (hd0,2)
grub> setup (hd0,2)
setup (hd0,2)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0,2)"... 20 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0,2) (hd0,2)1+20 p (hd0,2)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> find /boot/grub/stage1
find /boot/grub/stage1
(hd0,2)
二、grub-install安装
也提示成功,但也不能启动sudo grub-install /dev/sda3
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sda3 as (hd0,2)...
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
三、grub for dos
用grub4dos启动,使用 root (hd0,2) 也不能启动
后把/boot目录复制至C盘,使用root (hd0,0)能进入 ubuntu 了
很奇怪,为什么 grub 不能正常启动呢?
请各位指教!怎样才能让安装在/dev/sda3上的GRUB正常启动,谢谢