在 Fedora 16 中更新至 kernel-3.1.4-1 后无法启动

在 Fedora 16 中更新至 kernel-3.1.4-1 后无法启动

我在 Fedora 16 中使用 kernel-3.1.2-1。然后更新到 kernel-3.1.4-1。重启后,grub 现在显示命令提示符而不是启动菜单。我尝试使用以下命令手动加载:

set root=(hd0,msdos3)
linux /vmlinuz-3.1.4-1.fc16.x86_64
initrd /initramfs-3.1.4-1.fc16.x86_64.img

但在启动过程中,它显示类似内核崩溃之类的信息并停止。我尝试使用以前的内核 (3.1.2-1),但它显​​示相同的输出。这是我的 grub.cfg:

### 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 load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}


set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Fedora (3.1.4-1.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 41a4bc4d-ff84-4666-a75f-6addb3b7db59
    echo 'Loading Fedora (3.1.4-1.fc16.x86_64) ...'
    linux    /vmlinuz-3.1.4-1.fc16.x86_64 root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-3.1.4-1.fc16.x86_64.img
menuentry 'Fedora (3.1.2-1.fc16.x86_64)' --class fedora --class gnu-linux --class gnu --class os {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 41a4bc4d-ff84-4666-a75f-6addb3b7db59
    echo 'Loading Fedora (3.1.2-1.fc16.x86_64) ...'
    linux    /vmlinuz-3.1.2-1.fc16.x86_64 root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-3.1.2-1.fc16.x86_64.img
}
submenu "Xen 4.1.2" {
menuentry 'Fedora Linux, with Xen 4.1.2 and Linux 3.1.4-1.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os --class xen {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 41a4bc4d-ff84-4666-a75f-6addb3b7db59
    echo    'Loading Xen 4.1.2 ...'
    multiboot    /xen-4.1.2.gz placeholder
    echo    'Loading Linux 3.1.4-1.fc16.x86_64 ...'
    module    /vmlinuz-3.1.4-1.fc16.x86_64 placeholder root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
    echo    'Loading initial ramdisk ...'
    module    /initramfs-3.1.4-1.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Xen 4.1.2 and Linux 3.1.4-1.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os --class xen {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 41a4bc4d-ff84-4666-a75f-6addb3b7db59
    echo    'Loading Xen 4.1.2 ...'
    multiboot    /xen-4.1.2.gz placeholder
    echo    'Loading Linux 3.1.4-1.fc16.x86_64 ...'
    module    /vmlinuz-3.1.4-1.fc16.x86_64 placeholder root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro single rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
    echo    'Loading initial ramdisk ...'
    module    /initramfs-3.1.4-1.fc16.x86_64.img
}
}
submenu "Xen syms-4.1.2" {
menuentry 'Fedora Linux, with Xen syms-4.1.2 and Linux 3.1.4-1.fc16.x86_64' --class fedora --class gnu-linux --class gnu --class os --class xen {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 41a4bc4d-ff84-4666-a75f-6addb3b7db59
    echo    'Loading Xen syms-4.1.2 ...'
    multiboot    /xen-syms-4.1.2 placeholder
    echo    'Loading Linux 3.1.4-1.fc16.x86_64 ...'
    module    /vmlinuz-3.1.4-1.fc16.x86_64 placeholder root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
    echo    'Loading initial ramdisk ...'
    module    /initramfs-3.1.4-1.fc16.x86_64.img
}
menuentry 'Fedora Linux, with Xen syms-4.1.2 and Linux 3.1.4-1.fc16.x86_64 (recovery mode)' --class fedora --class gnu-linux --class gnu --class os --class xen {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos3)'
    search --no-floppy --fs-uuid --set=root 41a4bc4d-ff84-4666-a75f-6addb3b7db59
    echo    'Loading Xen syms-4.1.2 ...'
    multiboot    /xen-syms-4.1.2 placeholder
    echo    'Loading Linux 3.1.4-1.fc16.x86_64 ...'
    module    /vmlinuz-3.1.4-1.fc16.x86_64 placeholder root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro single rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8
    echo    'Loading initial ramdisk ...'
    module    /initramfs-3.1.4-1.fc16.x86_64.img
}
}
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 0064D65C64D653CE
    drivemap -s (hd0) ${root}
    chainloader +1
}

有人可以帮忙吗?

[编辑]但是我现在测试过,我可以使用以下命令启动 Windows:

set root=(hd0, msdos1)
chainloader +1
boot

[编辑] 以下是屏幕截图: 截屏

答案1

我问过这个问题询问.fedoraproject.org他们告诉我应该使用:

linux    /vmlinuz-3.1.4-1.fc16.x86_64 root=UUID=ba8be145-4880-47d2-8fdf-7115d33c59df ro rd.md=0 rd.lvm=0 rd.dm=0  KEYTABLE=us quiet SYSFONT=latarcyrheb-sun16 rhgb rd.luks=0 LANG=en_US.UTF-8

而不是简单的linux /vmlinuz-3.1.4-1.fc16.x86_64。使用此选项,它可以完美启动。启动后我使用grub2-mkconfig,现在 grub 菜单正在闪烁。您可以在此处查看整个讨论:询问.fedora

相关内容