jiangxinyu的专栏

叶子的离开,是因为风的追求还是树的不挽留?

GRUB 问题:如何修改默认启动顺序?

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.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


现在若是改为:
# 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
title win xp
        rootnoverify (hd0,0)
        chainloader +1
可以实现吗?谢谢

 
# 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
阅读更多
文章标签: linux xp windows dos
个人分类: LINUX
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭