PDA

View Full Version : [ubuntu] kernel panic: Ubuntu does no longer boot / initrd.img problem



zeus.338
November 18th, 2010, 11:17 PM
Hello Ubuntu-Comunity,

actually I thought I was starting to get used to Ubuntu and Linux in general, but I was wrong, unfortunately.

Since a usual update this afternoon, Ubuntu does no longer boot. GRUB is still working, Windows runs.
Ubuntu fails with

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)This did already appear, but then the GRUB rescue shell appeared, and

set root=(hd0,5)
linux /vmlinuz root=/dev/sda5 ro
initrd /initrd.img
bootsaved me from smashing my laptop against the wall. Guess what? This no longer works. Indeed, the initrd command finds the initrf.img file, but refuses to load it with
Error: couldn't read fileI tried to get a new such file, using
mkinitramfs which produced such an image, but its the same Error.

Here is a Boot-Report made with a tool I found during my search for a solution:

Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for (,msdos5)/boot/grub.

sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sda3: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: Unknown
Boot sector info:

sda5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Platte /dev/sda: 250.1 GByte, 250059350016 Byte
255 Köpfe, 63 Sektoren/Spur, 30401 Zylinder, zusammen 488397168 Sektoren
Einheiten = Sektoren von 1 × 512 = 512 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 206,847 204,800 7 HPFS/NTFS
/dev/sda2 206,848 204,802,047 204,595,200 7 HPFS/NTFS
/dev/sda3 204,804,094 488,391,119 283,587,026 5 Extended
/dev/sda5 204,804,096 476,476,559 271,672,464 83 Linux
/dev/sda6 476,476,623 488,391,119 11,914,497 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 862438032437F4B1 ntfs System-reserviert
/dev/sda2 8A544E92544E80C5 ntfs
/dev/sda3: PTTYPE="dos"
/dev/sda5 cc86a97b-3794-49a8-85b8-8e01b7df3c08 ext4
/dev/sda6 331d90cf-8790-415a-a6bb-f8ef2caffc50 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


=========================== sda5/boot/grub/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="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 part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set cc86a97b-3794-49a8-85b8-8e01b7df3c08
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,msdos5)'
search --no-floppy --fs-uuid --set cc86a97b-3794-49a8-85b8-8e01b7df3c08
set locale_dir=($root)/boot/grub/locale
set lang=fr
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
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set cc86a97b-3794-49a8-85b8-8e01b7df3c08
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cc86a97b-3794-49a8-85b8-8e01b7df3c08 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set cc86a97b-3794-49a8-85b8-8e01b7df3c08
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cc86a97b-3794-49a8-85b8-8e01b7df3c08 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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,msdos5)'
search --no-floppy --fs-uuid --set cc86a97b-3794-49a8-85b8-8e01b7df3c08
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos5)'
search --no-floppy --fs-uuid --set cc86a97b-3794-49a8-85b8-8e01b7df3c08
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 862438032437f4b1
chainloader +1
}
### 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 ###

=============================== sda5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=cc86a97b-3794-49a8-85b8-8e01b7df3c08 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=331d90cf-8790-415a-a6bb-f8ef2caffc50 none swap sw 0 0

=================== sda5: Location of files loaded by Grub: ===================


107.1GB: boot/grub/core.img
113.6GB: boot/grub/grub.cfg
169.8GB: boot/initrd.img-2.6.35-22-generic
107.3GB: boot/vmlinuz-2.6.35-22-generic
169.8GB: initrd.img
107.3GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda3

00000000 55 1a 00 00 53 1a 00 00 02 00 00 00 54 1a 00 00 |U...S.......T...|
00000010 00 00 00 00 0d 32 fc 88 6d f4 de 11 8d f5 00 17 |.....2..m.......|
00000020 08 39 4d 37 80 83 71 d5 6f 7c 99 4e bd 61 68 e9 |.9M7..q.o|.N.ah.|
00000030 83 50 cb be 0d 32 fc 88 6d f4 de 11 8d f5 00 17 |.P...2..m.......|
00000040 08 39 4d 37 74 6f 6d 6d 79 2d 70 63 00 00 00 00 |.9M7tommy-pc....|
00000050 00 00 00 00 48 18 0e 97 19 e8 cb 4c b4 3e 24 43 |....H......L.>$C|
00000060 a8 81 cf e1 0d 32 fc 88 6d f4 de 11 8d f5 00 17 |.....2..m.......|
00000070 08 39 4d 37 88 97 ca 01 00 00 00 00 56 1a 00 00 |.9M7........V...|
00000080 54 1a 00 00 02 00 00 00 55 1a 00 00 00 00 00 00 |T.......U.......|
00000090 0e 32 fc 88 6d f4 de 11 8d f5 00 17 08 39 4d 37 |.2..m........9M7|
000000a0 80 83 71 d5 6f 7c 99 4e bd 61 68 e9 83 50 cb be |..q.o|.N.ah..P..|
000000b0 0e 32 fc 88 6d f4 de 11 8d f5 00 17 08 39 4d 37 |.2..m........9M7|
000000c0 74 6f 6d 6d 79 2d 70 63 00 00 00 00 00 00 00 00 |tommy-pc........|
000000d0 48 18 0e 97 19 e8 cb 4c b4 3e 24 43 a8 81 cf e1 |H......L.>$C....|
000000e0 0e 32 fc 88 6d f4 de 11 8d f5 00 17 08 39 4d 37 |.2..m........9M7|
000000f0 88 97 ca 01 00 00 00 00 57 1a 00 00 55 1a 00 00 |........W...U...|
00000100 02 00 00 00 56 1a 00 00 00 00 00 00 0f 32 fc 88 |....V........2..|
00000110 6d f4 de 11 8d f5 00 17 08 39 4d 37 80 83 71 d5 |m........9M7..q.|
00000120 6f 7c 99 4e bd 61 68 e9 83 50 cb be 0f 32 fc 88 |o|.N.ah..P...2..|
00000130 6d f4 de 11 8d f5 00 17 08 39 4d 37 74 6f 6d 6d |m........9M7tomm|
00000140 79 2d 70 63 00 00 00 00 00 00 00 00 48 18 0e 97 |y-pc........H...|
00000150 19 e8 cb 4c b4 3e 24 43 a8 81 cf e1 0f 32 fc 88 |...L.>$C.....2..|
00000160 6d f4 de 11 8d f5 00 17 08 39 4d 37 88 97 ca 01 |m........9M7....|
00000170 00 00 00 00 58 1a 00 00 56 1a 00 00 02 00 00 00 |....X...V.......|
00000180 57 1a 00 00 00 00 00 00 10 32 fc 88 6d f4 de 11 |W........2..m...|
00000190 8d f5 00 17 08 39 4d 37 80 83 71 d5 6f 7c 99 4e |.....9M7..q.o|.N|
000001a0 bd 61 68 e9 83 50 cb be 10 32 fc 88 6d f4 de 11 |.ah..P...2..m...|
000001b0 8d f5 00 17 08 39 4d 37 74 6f 6d 6d 79 2d 00 ef |.....9M7tommy-..|
000001c0 ff ff 83 ef ff ff 02 00 00 00 90 64 31 10 00 ef |...........d1...|
000001d0 ff ff 05 ef ff ff 92 64 31 10 40 cd b5 00 00 00 |.......d1.@.....|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

I am a bit desperate now, after 4 hours of searching and trying, and so any help would be highly appreciated.

Pandura
January 22nd, 2011, 12:45 AM
Any solution to this? I seem to be experiencing the exact same symptoms.

1) Update Manager to install updates
2) Reboot to complete resulted in boot error of...
Kernel panic -not syncing : VFS : unable to mount rootfs on unknown -block(0,0)

Pid :1, comm: swapper Not tainted 2.6.35-24-generic #42-Ubuntu

3) I rebooted and selected an 2.6.35-23-generic and ran: sudo grub-update and rebooted

4) Result was Grub Rescue Shell where I did...
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
initrd /initrd.img

resulting in "error: couldn't read file."

m00p
February 9th, 2011, 03:03 PM
Hi, i have the same exact problem like you are having, all of a sudden i got that error on a boot today. i have the same kernel like you 2.6.35-22

did you find the solution to your problem?

dino99
February 9th, 2011, 03:18 PM
grub cant find the path due to this error: (,msdos5), should be (hd5,msdos5)
it seems that grub1 & menu.lst are still around somewhere on your hdd(s), need to remove them.

you need to reinstall grub from live-cd:
https://help.ubuntu.com/community/Grub2