grub2 基础教程(续)

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: grub2 基础教程(更新到25楼)

#76

帖子 smallapple » 2009-09-21 19:53

早说了。我还以为要写入mbr的 :em04

不写入mbr自己修改menu.lst不就行了,把那内容写进menu.lst

代码: 全选

title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot
没menu.lst自己建一个放在grldr一起的根目录下。
heroteng
帖子: 128
注册时间: 2007-11-12 11:20

Re: grub2 基础教程(更新到25楼)

#77

帖子 heroteng » 2009-09-21 19:59

x61@x61-laptop:~/桌面$ sudo fdisk -l

Disk /dev/sda: 160.0 GB, 160041885696 bytes
240 heads, 63 sectors/track, 20673 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x810d4fec

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2178 16458561 7 HPFS/NTFS
/dev/sda2 2178 20674 139829760 f W95 Ext'd (LBA)
/dev/sda5 2178 6241 30716248+ 7 HPFS/NTFS
/dev/sda6 6241 10304 30716248+ 7 HPFS/NTFS
/dev/sda7 10304 15721 40957686 7 HPFS/NTFS
/dev/sda8 17078 17143 489951 82 Linux swap / Solaris
/dev/sda9 17143 20674 26691966 83 Linux
/dev/sda10 15721 17078 10257471 83 Linux

Partition table entries are not in disk order
heroteng
帖子: 128
注册时间: 2007-11-12 11:20

Re: grub2 基础教程(更新到25楼)

#78

帖子 heroteng » 2009-09-21 20:01

menu.lst在哪里?我xp的c盘下就一个grldr,再建一个新的menu.lst在c盘下吗?
谢谢你,我菜鸟啊。

晕死,楼上有,我心急没看见。。。。。 :em06
谢谢你了。。。。
上次由 heroteng 在 2009-09-21 20:12,总共编辑 1 次。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: grub2 基础教程(更新到25楼)

#79

帖子 smallapple » 2009-09-21 20:06

顺序不对,没大问题的。
你前面提到的(hd0,9)在grub4dos就是/dev/sda10,也没问题。
menu.lst放在C盘下(其实放在任何分区的根目录下都可以不过在C盘启动比较快),内容为

代码: 全选

timeout 0
default 0

title grub2
find --set-root /boot/grub/core.img
kernel /boot/grub/core.img
boot
用find .....
而不用
root (hd0,9)
就是怕分区号顺序如果发生变化就启动不了。
上次由 smallapple 在 2009-09-28 9:08,总共编辑 1 次。
heroteng
帖子: 128
注册时间: 2007-11-12 11:20

Re: grub2 基础教程(更新到25楼)

#80

帖子 heroteng » 2009-09-22 7:56

感谢邪恶的眼睛,弄好了,c盘下一个grldr,,一个照76楼写的menu.lst,引导了,看来得发个帖子,照顾下不装mbr的朋友们。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: grub2 基础教程(更新到25楼)

#81

帖子 smallapple » 2009-09-22 8:35

在整理资料,到时弄个pdf的文件,照顾各类安装方式。 :em05
zhangbin_z
帖子: 9
注册时间: 2009-08-19 13:40

Re: grub2 基础教程(更新到25楼)

#82

帖子 zhangbin_z » 2009-09-22 9:20

强帖,记号,学习
头像
honghong
帖子: 317
注册时间: 2009-05-14 14:06

Re: grub2 基础教程(更新到25楼)

#83

帖子 honghong » 2009-09-22 19:10

神帖占
That is in my life!
lwb12915
帖子: 32
注册时间: 2009-06-26 11:20

Re: grub2 基础教程(更新到25楼)

#84

帖子 lwb12915 » 2009-09-23 9:51

...标记一下,备用。现在还在用grub。。。呵呵!
头像
szyzln
帖子: 910
注册时间: 2008-10-31 15:28
来自: 中国上海
联系:

Re: grub2 基础教程(更新到25楼)

#85

帖子 szyzln » 2009-09-23 13:22

楼主超级棒!!!!!! :em05
家乡:湖南张家界
头像
doctorlzr1988
帖子: 184
注册时间: 2009-09-11 15:31

Re: grub2 基础教程(更新到25楼)

#86

帖子 doctorlzr1988 » 2009-09-24 21:29

记得要照顾照顾小的!!
最好就是图文并茂的解说了!! :em09
头像
睡皮打滚要啊
帖子: 141
注册时间: 2009-03-09 19:07

Re: grub2 基础教程(更新到25楼)

#87

帖子 睡皮打滚要啊 » 2009-09-25 0:46

菜鸟来顶,虽然还不能看懂所有。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: grub2 基础教程(更新到25楼)

#88

帖子 smallapple » 2009-09-25 9:34

doctorlzr1988 写了:记得要照顾照顾小的!!
最好就是图文并茂的解说了!! :em09
会考虑的。 :em09
头像
Jacob Anubis
帖子: 189
注册时间: 2009-04-08 20:44
来自: 三维空间

Re: grub2 基础教程(更新到25楼)

#89

帖子 Jacob Anubis » 2009-09-26 21:23

:em11 赞个......
如果只是遇见,不能停留,不如不遇见!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: grub2 基础教程(续)

#90

帖子 smallapple » 2009-09-28 9:18

双系统,grub2没装入mbr而装在linux分区时,轻松解决方法:
把 ubuntu分区中 /boot/grub 目录下的 boot.img 复制到 Win 的C盘,修改 boot.ini,在最后 加入一行
C:\boot.img="Ubuntu 9.10"

Vista / 7 在C盘新建个boot.ini :
[boot loader]
timeout=0
default=c:\boot.img
[operating systems]
C:\boot.img="Ubuntu 9.10"
回复