[问题]每次重新启动都会自动修改menu.lst
发表于 : 2008-09-06 12:45
每次只要一重新启动,menu.lst就会自动复制一次原来的列表,比如原来的就两个xp和ubuntu,重新启动就变四个了,再重启变六个,谁知道怎么回事?
不知道重复几次了default 0
timeout 3
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
## ## End Default Options ##
# 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
title Ubuntu intrepid (development branch), kernel 2.6.27-2-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.27-2-generic root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro quiet splash
initrd /boot/initrd.img-2.6.27-2-generic
quiet
title Ubuntu intrepid (development branch), kernel 2.6.27-2-generic (recovery mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.27-2-generic root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro single
initrd /boot/initrd.img-2.6.27-2-generic
title Ubuntu intrepid (development branch), kernel Last successful boot
root (hd0,8)
kernel /boot/last-good-boot/vmlinuz root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro quiet splash last-good-boot
initrd /boot/last-good-boot/initrd.img
quiet
title Ubuntu intrepid (development branch), kernel 2.6.26-5-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.26-5-generic root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro quiet splash
initrd /boot/initrd.img-2.6.26-5-generic
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,8)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
# 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
title Ubuntu intrepid (development branch), kernel 2.6.27-2-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.27-2-generic root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro quiet splash
initrd /boot/initrd.img-2.6.27-2-generic
quiet
title Ubuntu intrepid (development branch), kernel 2.6.27-2-generic (recovery mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.27-2-generic root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro single
initrd /boot/initrd.img-2.6.27-2-generic
title Ubuntu intrepid (development branch), kernel Last successful boot
root (hd0,8)
kernel /boot/last-good-boot/vmlinuz root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro quiet splash last-good-boot
initrd /boot/last-good-boot/initrd.img
quiet
title Ubuntu intrepid (development branch), kernel 2.6.26-5-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.26-5-generic root=UUID=d1308685-be6b-4004-8427-3e3d4fb40acd ro quiet splash
initrd /boot/initrd.img-2.6.26-5-generic
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
怎么加?谢谢了,现在又复制了一堆了,真烦啊qquchn 写了:木有遇到过 你给它加个锁试试