ubuntu window 多系统启动顺序修改

作者:admin发表时间:2011-1-20 评论:0 点击 2,632+

ubuntu window 多系统启动顺序修改 说明 我 安装的 是 ubuntu10.04 window 7 window xp 默认情况是 ubuntu 在第一启动项,现在我要修改启动顺序 。下面带删除线的不用理会。

首先 打开 终端 在 终端中输入

sudo gedit /boot/grub/grub.cfg

打开cfg 启动配置文件全部如下

 

# 
 
# DO NOT EDIT THIS FILE 
 
# 
 
# It is automatically generated by /usr/sbin/grub-mkconfig using templates 
 
# from /etc/grub.d and settings from /etc/default/grub 
 
# 
 
 
### BEGIN /etc/grub.d/00_header ### 
 
if [ -s $prefix/grubenv ]; then 
 
load_env 
 
fi 
 
set default="0" 
 
if [ ${prev_saved_entry} ]; then 
 
set saved_entry=${prev_saved_entry} 
 
save_env saved_entry 
 
set prev_saved_entry= 
 
save_env prev_saved_entry 
 
set boot_once=true 
 
fi 
 
 
function savedefault { 
 
if [ -z ${boot_once} ]; then 
 
saved_entry=${chosen} 
 
save_env saved_entry 
 
fi 
 
} 
 
 
function recordfail { 
 
set recordfail=1 
 
if [ -n ${have_grubenv} ]; then if [ -z ${boot_once} ]; then save_env recordfail; fi; fi 
 
} 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
if loadfont /usr/share/grub/unicode.pf2 ; then 
 
set gfxmode=640x480 
 
insmod gfxterm 
 
insmod vbe 
 
if terminal_output gfxterm ; then true ; else 
 
# For backward compatibility with versions of terminal.mod that don't 
 
# understand terminal_output 
 
terminal gfxterm 
 
fi 
 
fi 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
set locale_dir=($root)/boot/grub/locale 
 
set lang=zh 
 
insmod gettext 
 
if [ ${recordfail} = 1 ]; then 
 
set timeout=-1 
 
else 
 
set timeout=10 
 
fi 
 
### END /etc/grub.d/00_header ### 
 
 
### BEGIN /etc/grub.d/05_debian_theme ### 
 
set menu_color_normal=white/black 
 
set menu_color_highlight=black/light-gray 
 
================================================================================
 
上面的不用理会就这条下面加入剪切来的文件window 的 启动
 
### END /etc/grub.d/05_debian_theme ### 
 
### BEGIN /etc/grub.d/10_linux ### 
 
menuentry 'Ubuntu锛孡inux 2.6.32-28-generic' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro quiet splash 
 
initrd /boot/initrd.img-2.6.32-28-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-28-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
echo '杞藉叆 Linux ...' 
 
linux /boot/vmlinuz-2.6.32-28-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro single 
 
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...' 
 
initrd /boot/initrd.img-2.6.32-28-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-27-generic' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux /boot/vmlinuz-2.6.32-27-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro quiet splash 
 
initrd /boot/initrd.img-2.6.32-27-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-27-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
echo '杞藉叆 Linux ...' 
 
linux /boot/vmlinuz-2.6.32-27-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro single 
 
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...' 
 
initrd /boot/initrd.img-2.6.32-27-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro quiet splash 
 
initrd /boot/initrd.img-2.6.32-25-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-25-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
echo '杞藉叆 Linux ...' 
 
linux /boot/vmlinuz-2.6.32-25-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro single 
 
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...' 
 
initrd /boot/initrd.img-2.6.32-25-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro quiet splash 
 
initrd /boot/initrd.img-2.6.32-24-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-24-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
echo '杞藉叆 Linux ...' 
 
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro single 
 
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...' 
 
initrd /boot/initrd.img-2.6.32-24-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro quiet splash 
 
initrd /boot/initrd.img-2.6.32-21-generic 
 
} 
 
menuentry 'Ubuntu锛孡inux 2.6.32-21-generic (鎭㈠妯″紡)' --class ubuntu --class gnu-linux --class gnu --class os { 
 
recordfail 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
echo '杞藉叆 Linux ...' 
 
linux /boot/vmlinuz-2.6.32-21-generic root=UUID=0061cbf3-1957-448b-9218-14f04df39cb5 ro single 
 
echo '杞藉叆寮曞铏氭嫙纾佺洏 ...' 
 
initrd /boot/initrd.img-2.6.32-21-generic 
 
} 
 
### END /etc/grub.d/10_linux ### 
 
 
### BEGIN /etc/grub.d/20_memtest86+ ### 
 
menuentry "Memory test (memtest86+)" { 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux16 /boot/memtest86+.bin 
 
} 
 
menuentry "Memory test (memtest86+, serial console 115200)" { 
 
insmod ext2 
 
set root='(hd0,3)' 
 
search --no-floppy --fs-uuid --set 0061cbf3-1957-448b-9218-14f04df39cb5 
 
linux16 /boot/memtest86+.bin console=ttyS0,115200n8 
 
} 
 
### END /etc/grub.d/20_memtest86+ ### 
 
### BEGIN /etc/grub.d/30_os-prober ### 
 
menuentry "Windows 7 (loader) (on /dev/sda1)" { 
 
insmod ntfs 
 
set root='(hd0,1)' 
 
search --no-floppy --fs-uuid --set 6e68ab5c68ab21b7 
 
chainloader +1 
 
} 
 
### END /etc/grub.d/30_os-prober ### 
 

就把这段红色的代码剪切到### END /etc/grub.d/05_debian_theme ###

的后面,保存就ok,重启就是window 在 前面了有多种方法修改这是最 简单也不容易出错的,其他的就不介绍了。

### BEGIN /etc/grub.d/40_custom ### 
 
# This file provides an easy way to add custom menu entries. Simply type the 
 
# menu entries you want to add after this comment. Be careful not to change 
 
# the 'exec tail' line above. 
 
### END /etc/grub.d/40_custom ###

顶一下 0 踩一下 0

你可能对以下内容感兴趣!

  1. ubuntu 系统如何升级
  2. ubuntu 14.04 wubi无法安装
  3. ubuntu13.10+nginx+mysql+p...
  4. ubuntu 多系统修改启动项顺序
  5. 华硕电脑无法安装ubuntu10.10以后版本
  6. 制作u盘启动ubuntu10.10和11.04的方...
  7. 好看的ubuntu壁纸
  8. 重装Win7修复Ubuntu10.04引导

发表评论

*

w_0002.gif w_0009.gif w_0007.gif w_0011.gif w_0005.gif w_0008.gif w_0010.gif w_0003.gif w_0012.gif w_0001.gif w_0006.gif