Excerpts from Philipp's message of 2011-06-25 15:12:26 +0200: > Hi there, > I have a debian server that doesn't boot anymore since I ran > upgrade-from-grub-legacy. It uses xen. I managed to upgrade to Debian > 6 and got everything working. Well, a power outage caused my domUs to > not boot anymore and while trying to deal with that I also figured I > didn't complete the upgrade to grub2 and thought it might fix things. > Well, now nothing boots anymore. > > The main issue appears to be that it can't find the root device for some > reason. The grub2 menu shows up, I can select boot options, some of > those seem to boot but can't find the root device (the very disk grub2 > and everything else is on). > > I tried adding "dummy=dummy" as the first parameter in the grub.cfg file > for "multiboot" and all occurrences of"module", but that didn't help. > (from: > http://wiki.xensource.com/xenwiki/XenCommonProblems#head-d038e27f4f3ad6b96ef1643c1812237cb1408730) > > On a sidenote, vga out on the server doesn't seem to work, so I'm trying > to boot in qemu. As a consequence I get mdadm errors because the raid > disks aren't present, but since those are used for data storage only to > my knowledge this shouldn't matter. > > Any advice on how to get the system to boot again is appreciated. > > Regards, > Philipp
Just to add a little more information: The system waits for the root file system for a while and then drops into a shell with the (initramfs) prompt. There's no /dev/sd* or /dev/disk for some reason. The currently installed kernels are: vmlinuz-2.6.32-5-xen-amd64 vmlinuz-2.6.26-2-xen-amd64 vmlinuz-2.6.26-2-amd64 None of those boots. Following is my current grub.cfg Thanks for any hints. Regards, Philipp ### 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 part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f if loadfont /usr/share/grub/unicode.pf2 ; then set gfxmode=640x480 load_video insmod gfxterm fi terminal_output gfxterm insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f set locale_dir=($root)/boot/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/20_linux_xen ### menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64' --class debian --class gnu-linux --class gnu --class os --class xen { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos0)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' multiboot /boot/xen-4.0-amd64.gz /boot/xen-4.0-amd64.gz placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro echo 'Loading initial ramdisk ...' module /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' multiboot /boot/xen-4.0-amd64.gz /boot/xen-4.0-amd64.gz placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro single echo 'Loading initial ramdisk ...' module /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN xen_domU_initrd_xfs.img' --class debian --class gnu-linux --class gnu --class os --class xen { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' multiboot /boot/xen_domU_initrd_xfs.img placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro echo 'Loading initial ramdisk ...' module /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN xen_domU_initrd_xfs.img (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' multiboot /boot/xen_domU_initrd_xfs.img placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro single echo 'Loading initial ramdisk ...' module /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN xen_domU_initrd_xfs_raid.img' --class debian --class gnu-linux --class gnu --class os --class xen { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' multiboot /boot/xen_domU_initrd_xfs_raid.img placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro echo 'Loading initial ramdisk ...' module /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN xen_domU_initrd_xfs_raid.img (recovery mode)' --class debian --class gnu-linux --class gnu --class os --class xen { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' multiboot /boot/xen_domU_initrd_xfs_raid.img placeholder module /boot/vmlinuz-2.6.32-5-xen-amd64 placeholder root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro single echo 'Loading initial ramdisk ...' module /boot/initrd.img-2.6.32-5-xen-amd64 } ### END /etc/grub.d/20_linux_xen ### ### 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 ### ### BEGIN /etc/grub.d/50_linux ### menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' linux /boot/vmlinuz-2.6.32-5-xen-amd64 root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.32-5-xen-amd64 ...' linux /boot/vmlinuz-2.6.32-5-xen-amd64 root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-5-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-xen-amd64' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.26-2-xen-amd64 ...' linux /boot/vmlinuz-2.6.26-2-xen-amd64 root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.26-2-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-xen-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.26-2-xen-amd64 ...' linux /boot/vmlinuz-2.6.26-2-xen-amd64 root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.26-2-xen-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-amd64' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.26-2-amd64 ...' linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro quiet echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.26-2-amd64 } menuentry 'Debian GNU/Linux, with Linux 2.6.26-2-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os { insmod part_msdos insmod jfs set root='(/dev/sdd,msdos1)' search --no-floppy --fs-uuid --set 4745f09d-c277-4113-b84a-898fa406e61f echo 'Loading Linux 2.6.26-2-amd64 ...' linux /boot/vmlinuz-2.6.26-2-amd64 root=UUID=4745f09d-c277-4113-b84a-898fa406e61f ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.26-2-amd64 } ### END /etc/grub.d/50_linux ### -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1309019149-sup-2755@eris