Debian – 损坏的GRUB

我已经在Debian上安装了Xen的官方手册。 之后,我运行了grub-update,并在一段时间后删除了Xen,包括xen内核。 它说,我跑了grub更新一次

discarding improperly nested partition... 

重启后,系统不想启动:

加载linux 2.6.26-2-686。 错误:无法读取Linux标题。 加载初始ramdisk …错误:您需要先加载内核。

initrd和内核存在于/ boot中。 文件系统是在/ dev / sda1(ext2)和/ in / dev / sda2(lvm2)中的/ boot。

我的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 } insmod lvm insmod part_msdos insmod ext2 set root='(stat.ax-host.ru-root)' search --no-floppy --fs-uuid --set bf95a21c-f7b6-40dd-92c9-dbebff28250e if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm fi terminal_output gfxterm insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 8e5ebc99-a0c3-4f82-b7fe-4878273d709c set locale_dir=($root)/grub/locale set lang=en insmod gettext set timeout=5 ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 8e5ebc99-a0c3-4f82-b7fe-4878273d709c echo 'Loading Linux 2.6.26-2-686 ...' linux /vmlinuz-2.6.26-2-686 root=/dev/mapper/stat.ax--host.ru-root ro quiet splash echo 'Loading initial ramdisk ...' initrd /initrd.img-2.6.26-2-686 } menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod ext2 set root='(hd0,msdos1)' search --no-floppy --fs-uuid --set 8e5ebc99-a0c3-4f82-b7fe-4878273d709c echo 'Loading Linux 2.6.26-2-686 ...' linux /vmlinuz-2.6.26-2-686 root=/dev/mapper/stat.ax--host.ru-root ro single echo 'Loading initial ramdisk ...' initrd /initrd.img-2.6.26-2-686 } ### END /etc/grub.d/10_linux ### ### 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 ### ### BEGIN /etc/grub.d/41_custom ### if [ -f $prefix/custom.cfg ]; then source $prefix/custom.cfg; fi ### END /etc/grub.d/41_custom ### 

/etc/grub.d/ 00_header 05_debian_theme 10_linux 30_os-prober 40_custom 41_custom

当你安装Xen时,它会改变你的启动configuration来启动Xen hypervisor而不是Linux内核。 你可以引导到一个Live CD并显示/ boot和/boot/grub/grub.cfg(或menu.lst,取决于你拥有哪个grub)的内容?

什么是/etc/grub.d/的内容?