先下载ext2ifs,windows下查看linux分区的东东。
安装后在控制面板里有个选项IFS,打开后就可以挂载linux分区了。(给你要挂载的linux分区选上个盘符就可以了)
挂在/boot分区。打开/boot/grub/目录,复制menu.lst到C盘根目录。
下载wingrub,安装配置看这里http://fedora.linuxsir.org/main/?q=node/37
具体的配置menu.lst就不用看了,我们有现成的。
用刚才复制的menu.lst覆盖c:\boot\grub\menu.lst
这样就行了吗? 当然不,要不我也不用写这篇文章了。
重启后顺利进入grub,选项也如menu.lst里一样。但是!无法启动! 提示:
代码: 全选
Filesystem type is ext2fs, partition type 0x83
我只重新安装了在C盘的windows xp ,没有对别的分区有操作。这咋就不行了呢?!
没办法 手动启动吧
在grub启动菜单里按“c”进入命令行。
代码: 全选
root (hd1,11) #我的linux安装在第二块硬盘上
kernel /vmlinuz-2.6.15-26-k7 root=/dev/hdb8 ro quiet splash
initrd /initrd.img-2.6.15-26-k7
我还是不明白,手工启动的代码和我menu.lst里的完全一样阿!
代码: 全选
title Ubuntu, kernel 2.6.15-26-k7
root (hd1,11)
kernel /vmlinuz-2.6.15-26-k7 root=/dev/hdb8 ro quiet splash
initrd /initrd.img-2.6.15-26-k7
savedefault
boot
代码: 全选
up@ubuntu:~$ sudo su
Password:
root@ubuntu:/home/up# grub
Probing devices to guess BIOS drives. This may take a long time.
grub> root (hd
Possible disks are: hd0 hd1
grub> root (hd1,
Possible partitions are:
Partition num: 0, Filesystem type is ext2fs, partition type 0x83
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type is ext2fs, partition type 0x83
Partition num: 5, Filesystem type is ext2fs, partition type 0x83
Partition num: 6, Filesystem type unknown, partition type 0x82
Partition num: 7, Filesystem type is ext2fs, partition type 0x83
Partition num: 8, Filesystem type unknown, partition type 0x82
Partition num: 9, Filesystem type is ext2fs, partition type 0x83
Partition num: 10, Filesystem type is ext2fs, partition type 0x83
Partition num: 11, Filesystem type is ext2fs, partition type 0x83
Partition num: 12, Filesystem type is ext2fs, partition type 0x83
grub> root (hd1,11)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd
Possible disks are: hd0 hd1
grub> setup (hd1)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd1) (hd1)1+15 p (hd1,11)/grub/stage2 /grub/men
u.lst"... succeeded
Done.
grub>quit
顺便说明下:我的ubuntu是安装在第2块硬盘上的, /boot在(hd1,11)
我不理解的是grub要装在hd0上还是hd1上?
我现在该怎么作?