[分享]grub的配置与使用

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
reedwind
帖子: 29
注册时间: 2007-06-15 16:48
来自: 西安

#16

帖子 reedwind » 2007-08-02 20:16

kan zhe maosi mingbai le yixie , ai ,bu gan nong a,gang gang chong zhuang le yi bian
今年的秋天,我不会回来。
头像
蓝蓝
帖子: 953
注册时间: 2007-06-09 9:19
来自: 上海

#17

帖子 蓝蓝 » 2007-08-02 21:23

我敢弄..
=就去玩
太阳好毒…….
头像
vanciki
帖子: 212
注册时间: 2007-06-27 16:35
来自: 深圳
联系:

#18

帖子 vanciki » 2007-08-03 23:20

NND 弄了这么多次都是没有成功
windance無风
帖子: 22
注册时间: 2007-08-17 15:01

#19

帖子 windance無风 » 2007-08-17 21:25

看住这个脚印....... :P
ninghuajiang
帖子: 28
注册时间: 2007-08-14 20:06

#20

帖子 ninghuajiang » 2007-08-22 13:10

学习,听说grub的制作也是定制os的重要一步哦
gidebruin
帖子: 9
注册时间: 2007-07-12 17:16

#21

帖子 gidebruin » 2007-10-23 4:21

把default改成7就行了
tomosak
帖子: 154
注册时间: 2007-10-29 9:18
联系:

#22

帖子 tomosak » 2007-11-11 2:51

hefei1314 写了:兄弟,有个问题,我装了 双系统,grub默认UBUNTU启动,我想改成XP(嘿嘿,毕竟是家里的电脑,老妈看到要选那些菜单就整天跟我 说谁谁家的 电脑一按开机键就行了,你 的 还要弄那么多东西,没办法!!!)。
我也试过把 default 0
改成 default 6,可是就 是没放映,还是那样子。
啥问题呢?

下面是menu.lst的一部分:
default 6
timeout 10

title Ubuntu, kernel 2.6.20-16-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro single
initrd /boot/initrd.img-2.6.20-16-generic

title Ubuntu, kernel 2.6.20-15-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro single
initrd /boot/initrd.img-2.6.20-15-generic

title Ubuntu, memtest86+
root (hd0,7)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

改成这样试试:


代码: 全选

default		6
timeout		10

title		Ubuntu, kernel 2.6.20-16-generic
root		(hd0,7)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro quiet splash
initrd		/boot/initrd.img-2.6.20-16-generic
quiet


title		Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root		(hd0,7)
kernel		/boot/vmlinuz-2.6.20-16-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro single
initrd		/boot/initrd.img-2.6.20-16-generic

title		Ubuntu, kernel 2.6.20-15-generic
root		(hd0,7)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro quiet splash
initrd		/boot/initrd.img-2.6.20-15-generic
quiet


title		Ubuntu, kernel 2.6.20-15-generic (recovery mode)
root		(hd0,7)
kernel		/boot/vmlinuz-2.6.20-15-generic root=UUID=06778dfc-4208-47b4-8ac0-7939f6b7ae9a ro single
initrd		/boot/initrd.img-2.6.20-15-generic

title		Ubuntu, memtest86+
root		(hd0,7)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1
头像
soliton
帖子: 338
注册时间: 2006-05-13 14:00

#23

帖子 soliton » 2007-11-29 13:27

grub配置:
/boot/grub/menu.lst
启动时不要显示grub那个好看的图形界面:
在menu.lst启动参数中去掉splash,如果把quiet也一并去掉的话开机显示的信息会更详细。
from:davidlone
头像
heromac
帖子: 49
注册时间: 2007-11-10 23:33

#24

帖子 heromac » 2007-12-02 22:45

很好 很详细
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

#25

帖子 冲浪板 » 2007-12-02 23:10

有没有“保持上一次引导”的项目(类似lilo里的lock)?
头像
fqstar
帖子: 46
注册时间: 2007-11-30 11:31

#26

帖子 fqstar » 2007-12-14 23:52

学习一个!!
正在从瘟倒死转型中,请多指教。
zhangfor
帖子: 44
注册时间: 2007-10-20 10:41

#27

帖子 zhangfor » 2008-04-04 18:52

有用的好贴,要顶起来。
shx
帖子: 10
注册时间: 2009-03-06 13:32

Re: [分享]grub的配置与使用

#28

帖子 shx » 2009-03-27 18:05

很好,学了好多,保存起来了,以后好看。并且准备打印。
flyer0339
帖子: 8
注册时间: 2009-07-21 19:39

Re: [分享]grub的配置与使用

#29

帖子 flyer0339 » 2009-07-21 20:07

又一篇教程,感谢下楼主辛苦码字 :em09
回复