分页: 1 / 1

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

发表于 : 2006-10-05 11:36
snowywind
我的电脑装来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


如果每次装更新以后就要改,那不是太麻烦了阿,请问有没有办法能解决这个问题,使得每次装更新以后不用再改启动项?

发表于 : 2006-10-05 13:16
a132450
没见过你这样的更改的

你干吗要把

title Windows xp

root (hd0,0)

savedefault

makeactive

chainloader +1

放到最前面去呢

直接修改default=6就行了,因为默认的话,win的启动项都是第六个title

发表于 : 2006-10-05 13:24
BigSnake.NET
### END DEBIAN AUTOMAGIC KERNELS LIST

將Win的啟動項放到這行之後

发表于 : 2006-10-05 15:01
eexpress
grub是属于linux的,不会,也永远不会属于win的,所以,自动修改权限在linux这边。歧视一下win而已。 :lol:
看3楼的。