双系统引导不正常

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
geqiandebei
帖子: 8
注册时间: 2013-03-31 22:07
系统: ubuntu

双系统引导不正常

#1

帖子 geqiandebei » 2013-05-11 8:50

Win7 ubuntu12.04 32位 ,

本来是ubuntu10.04 ,引导都很正常的 。。。

【升级】到12.04之后,启动选择Ubuntu,Linux 3.2.0-41-generic ,启动就卡死来,就在那个界面停住来

!! 然后这个时候强制关机,再启动选择的时候就可以进入来,不过要经过貌似硬盘检测 网络设置的过程。。。 好慢都。。

不知如何解决。。

引导菜单里多了《previous Linux versions 》 ,这个有用不

grub.cfg 文件 大家看看:


#
# 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="10"
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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=1024x768
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
set locale_dir=($root)/boot/grub/locale
set lang=zh_CN
insmod gettext
fi
terminal_output gfxterm
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 ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set=root a0a58091-0f53-481b-9485-8bfa1dd2e688
insmod jpeg
if background_image /da/图片/11131303587.jpg ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/08_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 903EA2CE3EA2AD22
chainloader +1
}
### END /etc/grub.d/08_os-prober ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
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,Linux 3.2.0-41-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
linux /boot/vmlinuz-3.2.0-41-generic root=UUID=13c592b5-ce9a-4e89-8050-33a337d58042 ro quiet splash nomodeset video=uvesafb:mode_option=1020x768-24,mtrr=3,scroll=ywrap $vt_handoff
initrd /boot/initrd.img-3.2.0-41-generic
}
menuentry 'Ubuntu,Linux 3.2.0-41-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
echo '载入 Linux 3.2.0-41-generic ...'
linux /boot/vmlinuz-3.2.0-41-generic root=UUID=13c592b5-ce9a-4e89-8050-33a337d58042 ro recovery nomodeset
echo '载入初始化内存盘...'
initrd /boot/initrd.img-3.2.0-41-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu,Linux 2.6.32-46-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
linux /boot/vmlinuz-2.6.32-46-generic root=UUID=13c592b5-ce9a-4e89-8050-33a337d58042 ro quiet splash nomodeset video=uvesafb:mode_option=1020x768-24,mtrr=3,scroll=ywrap $vt_handoff
initrd /boot/initrd.img-2.6.32-46-generic
}
menuentry 'Ubuntu,Linux 2.6.32-46-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
echo '载入 Linux 2.6.32-46-generic ...'
linux /boot/vmlinuz-2.6.32-46-generic root=UUID=13c592b5-ce9a-4e89-8050-33a337d58042 ro recovery nomodeset
echo '载入初始化内存盘...'
initrd /boot/initrd.img-2.6.32-46-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='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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 ###
cao627
帖子: 992
注册时间: 2007-12-05 10:57
系统: ubuntu14.04
来自: 金山

Re: 双系统引导不正常

#2

帖子 cao627 » 2013-05-11 9:48

升级的问题多,如果ubuntu能绵延不断的升级,还要区分这么多版本干什么?
蒙蒙懂董的花大经历去解决这些问题,不如重新安装省事。
geqiandebei
帖子: 8
注册时间: 2013-03-31 22:07
系统: ubuntu

Re: 双系统引导不正常

#3

帖子 geqiandebei » 2013-05-17 13:45

cao627 写了:升级的问题多,如果ubuntu能绵延不断的升级,还要区分这么多版本干什么?
蒙蒙懂董的花大经历去解决这些问题,不如重新安装省事。
重新安装才是什么都不懂,安装谁不会。有问题要去想问什么出问题,怎么解决才是。。。这样才能慢慢懂。遇到问题重装就能懂么?
以后别送出这样的回答了哥们。以其昏昏,使人昭昭,贻笑大方。

【等高手】
头像
qy117121
论坛版主
帖子: 50546
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 双系统引导不正常

#4

帖子 qy117121 » 2013-05-17 14:07

在引导菜单中 选择previous Linux versions 的话,可以用以前的老内核启动
用老内核如果没问题的话,则可能是新的内核的问题,可以把新的内核卸载
如果老内核也有问题的话,则应该不是内核的问题了
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
geqiandebei
帖子: 8
注册时间: 2013-03-31 22:07
系统: ubuntu

Re: 双系统引导不正常

#5

帖子 geqiandebei » 2013-05-19 9:48

qy117121 写了:在引导菜单中 选择previous Linux versions 的话,可以用以前的老内核启动
用老内核如果没问题的话,则可能是新的内核的问题,可以把新的内核卸载
如果老内核也有问题的话,则应该不是内核的问题了
疑惑的是,并不是不能启动进去。 而是需要强制关机后就能启动进去了。。。。 总是第一次不能正常进入。。

我自己找了下资料 感觉是不是 grub recordfail的问题,但又说不出具体哪里的问题。

另一个疑问:ubuntu升级的时候还要保留旧的内核么? 不是新的内核直接覆盖掉旧内核么
头像
niumao
帖子: 392
注册时间: 2010-10-27 20:43

Re: 双系统引导不正常

#6

帖子 niumao » 2013-05-19 13:57

代码: 全选

menuentry 'Ubuntu,Linux 3.2.0-41-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
linux /boot/vmlinuz-3.2.0-41-generic root=UUID=13c592b5-ce9a-4e89-8050-33a337d58042 ro quiet splash nomodeset video=uvesafb:mode_option=1020x768-24,mtrr=3,scroll=ywrap $vt_handoff
initrd /boot/initrd.img-3.2.0-41-generic
}
带红色的部分:nomodeset video=uvesafb:mode_option=1020x768-24,mtrr=3,scroll=ywrap 都去掉看看。这部分应该是framebuffer?它对initrd.img有个操作,似乎是加了个驱动进去。
你升级以后,对新内核所带的initrd.img并没有重复做同样操作,系统不会自动做的。所以这些参数都失效了。
更改以后为

代码: 全选

menuentry 'Ubuntu,Linux 3.2.0-41-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos6)'
search --no-floppy --fs-uuid --set=root 13c592b5-ce9a-4e89-8050-33a337d58042
linux /boot/vmlinuz-3.2.0-41-generic root=UUID=13c592b5-ce9a-4e89-8050-33a337d58042 ro quiet splash $vt_handoff
initrd /boot/initrd.img-3.2.0-41-generic
}
牛是牛顿的牛 毛是朱毛的毛
头像
niumao
帖子: 392
注册时间: 2010-10-27 20:43

Re: 双系统引导不正常

#7

帖子 niumao » 2013-05-19 14:18

ro quiet splash 参数也可以去掉。你可以看看启动过程中的各种信息===都是一闪而过。
有时候也很有用的。
牛是牛顿的牛 毛是朱毛的毛
回复