今天折腾一上午,终于在本本原本装VISTA+XP的系统上直接格了XP装好了UBUNTU,结果发现启动选项里只有UBUNTU和XP。为啥。
于是决定不上网问别人,自己试一试把启动选项修改正确
启动肯定得用GRUB了,所以在终端里获得权限,打开menu.lst,修改启动选项
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6313e535-c21d-4139-9bb7-88aadbff8457 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,5)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=6313e535-c21d-4139-9bb7-88aadbff8457 ro single
initrd /boot/initrd.img-2.6.20-16-generic
title Ubuntu, kernel 2.6.20-15-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6313e535-c21d-4139-9bb7-88aadbff8457 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,5)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=6313e535-c21d-4139-9bb7-88aadbff8457 ro single
initrd /boot/initrd.img-2.6.20-15-generic
title Ubuntu, memtest86+
root (hd0,5)
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
(上面的是我的台式机的menu.lst,不是笔记本的,借用一下)
在最后# This entry automatically added by the Debian installer for a non-linux OS一看就是那些非LINUX的启动选项了,所以要修改这个。
先启动电脑,在GRUB界面里按E临时修改一下XP的那个选项试试,发现(hd0,0)是DELL(本本是DELL的)自带的检测工具,(hd0,2)是进入以前的VISTA和XP选择界面,于是进UBUNTU,用gedit修改menu.lst最后部分,改成了这样
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows VISTA BASIC
root (hd0,2)
savedefault
makeactive
chainloader +1
# the dell check os
title DELL check OS
root (hd0,0)
savedefault
makeactive
chainloader +1
然后保存(注:#和C语言里//的作用一样,都是屏蔽那一行,将其作为注释的,幸亏看了点UNIX的书,要不都不知道。)
重启动,OK!选那个Microsoft Windows VISTA BASIC,进入了VISTA和XP的选择界面。然后再在VISTA中用VistaBootPRO将无用的XP启动选项删除,再启动试试,进GRUB选那个选项后没有再出现选择界面,直接启动VISTA成功。修改完毕。