【分享】修改 Ubuntu 启动顺序

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
头像
microdust
帖子: 164
注册时间: 2007-05-24 17:04

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#61

帖子 microdust » 2010-12-10 17:09

aspirinz_tt 写了:
在这个文件中把这些启动项目的位置调换,是不是在启动现实菜单上的位置也能够调换呢?????
经测试,可以!
Screenshot-grub.cfg (-boot-grub) - gedit.png
如上图,我把下面这些关于 Windows 的部分全部提前(包括注释!),重启动电脑后,就实现了你说的效果

代码: 全选

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
	insmod fat
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 2a1d-0905
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###
但强烈建议新手不要这么做![/quote]


如果以后更新出现新的版本或有了新的内核,会不会影响现在修改的效果呢?????? :em06[/quote]


如果系统出现更新, 每次都会自动 set default="0"(可以理解,自己的系统肯定是默认项),
再把它的值改回来就行了,比如我的改为set default="10"
头像
rabbit_52
帖子: 140
注册时间: 2010-05-09 9:03
联系:

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#62

帖子 rabbit_52 » 2010-12-13 12:10

还能顺便改一下选择时间
Blog
注册Dropbox!同涨空间 ^_^
peaceman
帖子: 68
注册时间: 2007-06-13 14:02

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#63

帖子 peaceman » 2010-12-13 16:18

不错,现在10.04跟以前确实不一样了,为什么grub2配置文件要变呢
chenxavier
帖子: 24
注册时间: 2010-11-04 22:48

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#64

帖子 chenxavier » 2010-12-13 18:52

marque
macong
帖子: 51
注册时间: 2010-07-17 21:51

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#65

帖子 macong » 2010-12-17 21:05

Mark :em11
对新手很实用
LingU
帖子: 130
注册时间: 2010-12-17 13:16

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#66

帖子 LingU » 2010-12-18 21:34

标记
新手
莫怪
mozlingyu
帖子: 10
注册时间: 2011-01-20 16:51

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#67

帖子 mozlingyu » 2011-01-21 16:27

:em01 :em01 :em01
谢谢!!!
头像
qy117121
论坛版主
帖子: 50587
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#68

帖子 qy117121 » 2011-01-21 16:57

这么老的帖怎么还有人用啊,
方法不好,直接修改grub.cfg虽然可以更新引导菜单顺序,不过更新时安装了新内核的话grub.cfg就会被更新,还要重新修改

想改引导菜单为什么 都不看smallapple的置顶帖呢???
更改/etc/grub.d/下面的文件才是正解的方法
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

邮箱 chuan@ubuntu.org.cn
shizest
帖子: 5
注册时间: 2010-12-28 20:01

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#69

帖子 shizest » 2011-01-23 20:22

正是我需要的,非常感谢! :em01
头像
x.dy
帖子: 10
注册时间: 2011-01-16 21:00

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#70

帖子 x.dy » 2011-01-24 15:57

qy117121 写了:这么老的帖怎么还有人用啊,
方法不好,直接修改grub.cfg虽然可以更新引导菜单顺序,不过更新时安装了新内核的话grub.cfg就会被更新,还要重新修改

想改引导菜单为什么 都不看smallapple的置顶帖呢???
更改/etc/grub.d/下面的文件才是正解的方法
置顶帖没这个标题醒目 :em02
头像
every_why
帖子: 25
注册时间: 2010-10-27 14:41

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#71

帖子 every_why » 2011-01-24 16:07

好贴,值得学习 :em09
我一直坚信付出就有收获!
头像
龙四太子
帖子: 66
注册时间: 2011-01-28 11:59

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#72

帖子 龙四太子 » 2011-01-28 12:36

顺续是看明白了, 可是 我的 xp不 知道 为什么?引导过去了起动不了,
thief123
帖子: 25
注册时间: 2008-10-20 11:33

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#73

帖子 thief123 » 2011-01-31 21:42

xp在安装10.04后丢了,按照楼主的指示做了,没有发现menuentry "Microsoft Windows XP Professional这一行;

#
# 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,12)'
search --no-floppy --fs-uuid --set 61d122b2-1435-4efc-a666-5e1bea44e056
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,12)'
search --no-floppy --fs-uuid --set 61d122b2-1435-4efc-a666-5e1bea44e056
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu,Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,12)'
search --no-floppy --fs-uuid --set 61d122b2-1435-4efc-a666-5e1bea44e056
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=61d122b2-1435-4efc-a666-5e1bea44e056 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
}
menuentry 'Ubuntu,Linux 2.6.32-24-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,12)'
search --no-floppy --fs-uuid --set 61d122b2-1435-4efc-a666-5e1bea44e056
echo '载入 Linux ...'
linux /boot/vmlinuz-2.6.32-24-generic root=UUID=61d122b2-1435-4efc-a666-5e1bea44e056 ro single
echo '载入引导虚拟磁盘 ...'
initrd /boot/initrd.img-2.6.32-24-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,12)'
search --no-floppy --fs-uuid --set 61d122b2-1435-4efc-a666-5e1bea44e056
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,12)'
search --no-floppy --fs-uuid --set 61d122b2-1435-4efc-a666-5e1bea44e056
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### 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 ###
头像
alonglin
帖子: 4
注册时间: 2011-04-26 10:43

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#74

帖子 alonglin » 2011-05-25 12:32

:em03 startupmanager
wwff
帖子: 70
注册时间: 2009-10-03 3:47

Re: 修改Ubuntu启动顺序 (含10.04 LTS )

#75

帖子 wwff » 2011-05-26 15:46

mark
为了不打游戏浪费时间,装了ubuntu;为了配置ubuntu解决各种口口和乱码,浪费了更多的时间!什么世道啊!最后把所有字体全部删掉,只留下文泉驿,搞定了!!
回复