有关设置grub默认进入的操作系统的问题
Posted 10 months ago at 11:31 am. 0 comments
oneleaf 写道:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
修改中间的 default=0
你想默认进入的操作系统位於第几项(从0开始计算)。就把0改成几。
下面是一个例子
假定menu.lst如下:
代码:
title Ubuntu, kernel 2.6.10-5-686
root (hd0,4)
kernel /boot/vmlinuz-2.6.10-5-686 root=/dev/hda5 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-686
savedefault
boot
title Ubuntu, kernel 2.6.10-5-686 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.10-5-686 root=/dev/hda5 ro single
initrd /boot/initrd.img-2.6.10-5-686
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386
root (hd0,4)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
savedefault
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
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Pro
root (hd0,0)
savedefault
makeactive
chainloader +1
假如你想把win xp作国为默认的操作系统,那就把default=0改为default=6
via ubuntu 中文
Popularity: 9% [?]
Tags: deb, hp, install, linux, ls, right, ubuntu, viRelated posts
No Replies
Feel free to leave a reply using the form below!