[问题]每次更新后都要对启动项进行更改,请问这个问题怎么解决?

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

[问题]每次更新后都要对启动项进行更改,请问这个问题怎么解决?

#1

帖子 snowywind » 2006-10-05 11:36

我的电脑装来winxp和ubuntu,通过更改/boot/grub/menu.lst 已默认启动winxp,部分文件如下:



## ## End Default Options ##

title Windows xp

root (hd0,0)

savedefault

makeactive

chainloader +1

title Ubuntu, kernel 2.6.12-10-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

title Ubuntu, kernel 2.6.12-10-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-10-386
boot

title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot

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

### 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


而每一此系统提示有更新,并且安装了以后,windows的启动项就会不见了,只能再把属于windows的部分加上去如下:


## ## End Default Options ##

title Ubuntu, kernel 2.6.12-10-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-386
savedefault
boot

title Ubuntu, kernel 2.6.12-10-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-10-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-10-386
boot

title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot

title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot

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

### 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


如果每次装更新以后就要改,那不是太麻烦了阿,请问有没有办法能解决这个问题,使得每次装更新以后不用再改启动项?
a132450
帖子: 13
注册时间: 2006-10-05 4:14

#2

帖子 a132450 » 2006-10-05 13:16

没见过你这样的更改的

你干吗要把

title Windows xp

root (hd0,0)

savedefault

makeactive

chainloader +1

放到最前面去呢

直接修改default=6就行了,因为默认的话,win的启动项都是第六个title
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#3

帖子 BigSnake.NET » 2006-10-05 13:24

### END DEBIAN AUTOMAGIC KERNELS LIST

將Win的啟動項放到這行之後
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2006-10-05 15:01

grub是属于linux的,不会,也永远不会属于win的,所以,自动修改权限在linux这边。歧视一下win而已。 :lol:
看3楼的。
● 鸣学
回复