然后输入:sudo gedit /boot/grub/menu.lst
然后就可以看见很长很长的一段代码,大家可以仔细看一下,里面带#号的都是解释性的文字,看懂后就知道该怎么修改了,这个因为我们设置安装的分区不同,所以修改后的文件都是不一样的,我的修改后是这样子的,虽然这么多代码,但重要的就那几行开头没#的。
我给大家解释一下修改(为方便大家浏览,我把无关紧要的都给去掉了,但实际上还是要保留的)
## default num# Set the default entry to the entry number NUM. Numberingstarts from 0, and# the entry number 0 is the default if the command is notused.## You can specify 'saved' instead of a number. In this case,the default entry# is the entry saved with the command 'savedefault'.# WARNING: If you are using dmraid do not use 'savedefault' oryour# array will desync and will not let you boot yoursystem.default 0(修改为1,表示默认选择第二项启动,在代码的末尾有个EndDefault Options,在那里查看)
## timeout sec# Set a timeout, in SEC seconds, before automatically bootingthe default entry# (normally the first entry defined).timeout 3(设置在自动启动缺省菜单前所等待的秒数)
## hiddenmenu# Hides the menu by default (press ESC to see the menu)hiddenmenu(隐藏菜单,即使设置了自动选择,我仍希望每次都能看到系统选择菜单,于是就给把这句给删掉了)
[size=10.5pt]## should update-grub create memtest86 bootoption## e.g. memtest86=true## memtest86=false# memtest86=true (这句改为[size=10.5pt]false,表示取消开机内存检查)
## should update-grub adjust the value of the default bootedsystem## can be true or false# updatedefaultentry=false
[size=10.5pt]title Windows 95/98/NT/2000root (hd0,0)makeactivechainloader +1(删掉所有在“EndDefault Options”之前出现的这些title,因为重复了)
## should update-grub add savedefault to the defaultoptions## can be true or false# savedefault=false
## ## End Default Options ##
title Ubuntu 9.04, kernel 2.6.28-11-genericuuid 7efed1ff-1412-4525-a761-ecc1bdec16d3kernel /vmlinuz-2.6.28-11-genericroot=UUID=30c8c1ad-b13a-408f-ad1a-590549142e5c ro quietsplashinitrd /initrd.img-2.6.28-11-genericquiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recoverymode)uuid 7efed1ff-1412-4525-a761-ecc1bdec16d3kernel /vmlinuz-2.6.28-11-genericroot=UUID=30c8c1ad-b13a-408f-ad1a-590549142e5c rosingleinitrd /initrd.img-2.6.28-11-generic
title Windows 95/98/NT/2000root (hd0,0)makeactivechainloader +1
### END DEBIAN AUTOMAGIC KERNELS LIST