紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
原来是双系统,arch和ubuntu10.10. 现在把arch改装成ubuntu11.04.结果启动项不见了。现在运气好时,可以进入ub11.04.有时不行。
我现在都不敢关机了。怕进不了系统。请问如何设ubuntu10.10为第一系统。
我现在都不敢关机了。怕进不了系统。请问如何设ubuntu10.10为第一系统。
- liangyouyu
- 帖子: 11
- 注册时间: 2010-05-10 21:14
- 联系:
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
进入windows-》系统属性-》高级系统设置-》高级 选项卡中--启动和故障恢复 --设置-》选择默认操作系统
上次由 liangyouyu 在 2011-04-17 11:22,总共编辑 1 次。
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
我全部找了一遍。根本没有你说的对话框。
-
- 帖子: 1318
- 注册时间: 2005-09-13 4:56
- 系统: Ubuntu Jammy Jellyfi
- liangyouyu
- 帖子: 11
- 注册时间: 2010-05-10 21:14
- 联系:
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
我没有 windows。只有ubuntu11.04和ubuntu10.10
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root b3d0e4a5-6144-44b0-aa51-828ff021e15b
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
set locale_dir=($root)/grub/locale
set lang=zh_CN
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
linux /vmlinuz-2.6.38-8-generic root=UUID=b3d0e4a5-6144-44b0-aa51-828ff021e15b ro quiet splash vt.handoff=7
initrd /initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
echo 'Loading Linux 2.6.38-8-generic ...'
linux /vmlinuz-2.6.38-8-generic root=UUID=b3d0e4a5-6144-44b0-aa51-828ff021e15b ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 2.6.35-27-generic (on /dev/sda7)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root c8e76200-8ca8-486a-8068-84a239517e55
linux /vmlinuz-2.6.35-27-generic root=UUID=8670ec33-c729-4fd2-a6e3-3886ed86a131 ro quiet splash
initrd /initrd.img-2.6.35-27-generic
}
menuentry "Ubuntu, with Linux 2.6.35-27-generic (recovery mode) (on /dev/sda7)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root c8e76200-8ca8-486a-8068-84a239517e55
linux /vmlinuz-2.6.35-27-generic root=UUID=8670ec33-c729-4fd2-a6e3-3886ed86a131 ro single
initrd /initrd.img-2.6.35-27-generic
}
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
# DO NOT EDIT THIS FILE
#
# It is automatically generated by 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
set have_grubenv=true
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
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root b3d0e4a5-6144-44b0-aa51-828ff021e15b
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
set locale_dir=($root)/grub/locale
set lang=zh_CN
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
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
linux /vmlinuz-2.6.38-8-generic root=UUID=b3d0e4a5-6144-44b0-aa51-828ff021e15b ro quiet splash vt.handoff=7
initrd /initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
echo 'Loading Linux 2.6.38-8-generic ...'
linux /vmlinuz-2.6.38-8-generic root=UUID=b3d0e4a5-6144-44b0-aa51-828ff021e15b ro single
echo 'Loading initial ramdisk ...'
initrd /initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos1)'
search --no-floppy --fs-uuid --set=root d80b96ec-4c72-40f4-b723-432ba2b7921b
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Ubuntu, with Linux 2.6.35-27-generic (on /dev/sda7)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root c8e76200-8ca8-486a-8068-84a239517e55
linux /vmlinuz-2.6.35-27-generic root=UUID=8670ec33-c729-4fd2-a6e3-3886ed86a131 ro quiet splash
initrd /initrd.img-2.6.35-27-generic
}
menuentry "Ubuntu, with Linux 2.6.35-27-generic (recovery mode) (on /dev/sda7)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root c8e76200-8ca8-486a-8068-84a239517e55
linux /vmlinuz-2.6.35-27-generic root=UUID=8670ec33-c729-4fd2-a6e3-3886ed86a131 ro single
initrd /initrd.img-2.6.35-27-generic
}
### 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 ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
GRUB_DEFAULT=0
把0改成多少?
开机一片漆黑。看不见,怎么知道是哪一项。
引用:
GRUB_DEFAULT=0
改成你需要的数字,然后
代码:
#update-grub
开机后的引导菜单上,最上面那条是0,依次递增
把0改成多少?
开机一片漆黑。看不见,怎么知道是哪一项。
引用:
GRUB_DEFAULT=0
改成你需要的数字,然后
代码:
#update-grub
开机后的引导菜单上,最上面那条是0,依次递增
上次由 谢宝良 在 2011-04-17 12:17,总共编辑 1 次。
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
如果我把ubuntu10.10的配置拷贝过来。换掉它,可以不?
-
- 帖子: 10
- 注册时间: 2011-03-27 13:44
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
你们也太离谱了
终端里输入
sudo gedit /boot/grub/grub.cfg
替换
set timeout=0
到
set timeout=5
重启后开机会出现选单
终端里输入
sudo gedit /boot/grub/grub.cfg
替换
set timeout=0
到
set timeout=5
重启后开机会出现选单
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
menuentry 这个应该是菜单项吧。我数了一下。ub10.10应该排在5. 就设为4.
如果不行,就惨了。
如果不行,就惨了。
-
- 帖子: 1983
- 注册时间: 2010-05-01 21:23
Re: 紧急求救:如何改变第一启动项,因为ubuntu11.04有时能进,有时不能进。
还好,成功了.奉劝各位千万要忍着.4月28日之前最好不要装ubuntu11.04.不然很有可能遇到黑屏.