[问题]修改ubuntu启动顺序时出错
发表于 : 2007-09-15 10:11
我在ubuntu下修改启动顺序时发生错误。
按照zhuqin_83同学在常见问题指南里的说法:
Q: 怎样修改默认的启动系统?
A: 代码:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
找到 default 0,将0改成你其他系统的位置,位于第X项,就是修改成 X-1(从0开始数)。
我无法找到“default 0”,我的menu.lst表如下:
---------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
.....
省略中间的注释部分
.....
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 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,8)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 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,8)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,8)
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
---------------------------------------
如果我将红色部分挪到最前面,ubuntu启动的时候顺序是改过来了,但是选择XP的时候出现错误提示:Error 27:Unrecognized command
这是甚么原因??我该如何该动??
谢谢。
按照zhuqin_83同学在常见问题指南里的说法:
Q: 怎样修改默认的启动系统?
A: 代码:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
找到 default 0,将0改成你其他系统的位置,位于第X项,就是修改成 X-1(从0开始数)。
我无法找到“default 0”,我的menu.lst表如下:
---------------------------------------
# menu.lst - See: grub(8), info grub, update-grub(8)
.....
省略中间的注释部分
.....
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 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,8)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,8)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 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,8)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=f61c6179-8261-4fca-8f62-
671c93748bd6 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,8)
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
---------------------------------------
如果我将红色部分挪到最前面,ubuntu启动的时候顺序是改过来了,但是选择XP的时候出现错误提示:Error 27:Unrecognized command
这是甚么原因??我该如何该动??
谢谢。