Kernel Panic in Ubuntu

Status
Not open for further replies.

Vyasram

The pWnster
I am using ubuntu 6.06 x64 and everything was fine. But today, the kernel 2.6.15-28 gave me an error

Code:
VFS: Cannot open root device 
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on (sda3)

2.6.15-27 is running fine in the same ubuntu installation, plz help
 

mehulved

18 Till I Die............
You have a SATA disk, right.
Boot into a live cd and edit /boot/grub/menu.lst
Find the entry which corrosponds to the one which you boot from
eg. if you select "Ubuntu Linux 6.06" from the GRUB then edit the entry under fstab that says Ubuntu Linux 6.06. eg.
title Ubuntu Linux 6.06
root (hd0,2)
boot /boot/vmlinuz-2.6.16-28-x86_64
savedefault
Now edit the boot line to
boot /boot/vmlinuz-2.6.16-28-x86_64 root=/dev/sda3
 
OP
Vyasram

Vyasram

The pWnster
now i'm getting this in that kernel version

Code:
Booting the Kernel
RAMDISK ran out of compressed data
Invalid compressed format(err=1)
kernel panic - not syncing: VFS : unable to mount root fs on unknown block (0,0)
 
OP
Vyasram

Vyasram

The pWnster
fstab
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda3       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda1       /media/sda1     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda10      /media/sda10    ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda11      /media/sda11    ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda5       /media/sda5     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda6       /media/sda6     vfat    defaults,utf8,umask=007,gid=46 0       1
/dev/sda7       /media/sda7     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda8       /media/sda8     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda9       /media/sda9     ntfs    defaults,nls=utf8,umask=007,gid=46 0       1
/dev/sda4       none            swap    sw              0       0


also while booting into recovery mode i'm still getting the previous error

@shailesh

i haven't tried ur suggestion yet, it will try it out soon and post
 

freebird

Debian Rocks!
you should try making the initrd image again.but before that try to chroot into the ubuntu install from ubuntu livecd.
Code:
~$sudo  chroot  /media/sda3  /bin/bash
~$sudo  [SIZE=-1]dpkg-reconfigure linux-image-`uname -r`[/SIZE]
then edit ur /boot/grub/menu.lst to add
Code:
title    Ubuntu Edgy
root        (hd0,2)
kernel        /vmlinuz-2.6.15-x root=/dev/sda3 ro quiet splash
initrd        /initrd.img-2.6.15-x
quiet
savedefault
boot
try this.make sure that U mounted ur ubuntu hdd partn in livecd mount dir.then run update-grub command as sudo user
__________
OR U can manually update initrd using
Code:
~$ sudo update-initramfs -u  `uname -r`
 
Last edited:
OP
Vyasram

Vyasram

The pWnster
nothing worked , so i just reinstalled the kernel , now everything is working fine

thanks for ur replies anyway :)
 
Status
Not open for further replies.
Top Bottom