GRUB 问题:如何修改默认启动顺序?
我原来装ML的时候默认是win xp为第一启动的,且win xp 的Title为dos现在想把第一启动项改为ml,且把win的title改为win xp
是不是要修改/boot/grub/menu.lst文件?像下面这么改行吗?
原来的menu.lst如下:
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=0
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title dos
rootnoverify (hd0,0)
chainloader +1
title MagicLinux
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Graphics Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 5 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Single Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 1 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
现在若是改为:
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=0
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title MagicLinux
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Graphics Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 5 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Single Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 1 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title win xp
rootnoverify (hd0,0)
chainloader +1
可以实现吗?谢谢 没问题的,完全可以实现 直接把default=0 改为default=1不是就可以了。 另外,有一个建议:Linux 毕竟是一个大量使用文本文件作为配置文件的操作系统。在 Linux 下,一般用户都会习惯自己编辑那些文本文件。MI 以后可否考虑一下提供一些更丰富的配置信息。
比如,我觉得 arch 的 grub.conf 在 title 前说一下这个是第几项的,这一点挺好的。例子如下:
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=0
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
# (0) Magic Linux
title Magic Linux
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
# (1) Magic Linux (Graphics Mode)
title Magic Linux (Graphics Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 5 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
# (2) Magic Linux (Console Mode)
title MagicLinux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
# (3) Magic Linux (Single Mode)
title Magic Linux (Single Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 1 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
# (4) Windows XP
title Windows XP
rootnoverify (hd0,0)
chainloader +1
这样配置 default 项就不用每次都数一遍了 好主意! 呵呵
假如我把最后一段删掉
那在启动的时候不就可以屏蔽 win xp了?
# grub.conf generated by MagicInstaller.
# Note that you do not have to rerun grub after making changes to this file.
default=0
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title MagicLinux
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Graphics Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 5 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Console Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 3 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img
title MagicLinux (Single Mode)
root (hd0,7)
kernel /boot/vmlinuz-2.6.15.3 init 1 ro root=/dev/hda8 vga=791 splash=silent
initrd /boot/initrd-2.6.15.3.img 是的
不过可以按“c”键进入命令模式使用命令其的那个xp(前提是你的系统上有xp :P ) 是的
不过可以按“c”键进入命令模式使用命令其的那个xp(前提是你的系统上有xp :P )
谢谢
那么想请问按了“c“键之后出现grub>
这样的提示符
应该如何输入命令才能进入已经被屏蔽了的windows呢?
rootnoverify (hd0,0)
chainloader +1
页:
[1]