LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Can recover data after 'kernel panic not syncing vfs unable to mount root fs' ? (https://www.linuxquestions.org/questions/linux-kernel-70/can-recover-data-after-kernel-panic-not-syncing-vfs-unable-to-mount-root-fs-895771/)

user5 08-05-2011 12:53 PM

Can recover data after 'kernel panic not syncing vfs unable to mount root fs' ?
 
I need to recover some data of the 'home' directory after kernel panic. Can I achieve that?

I was upgrading ubuntu 11.04, installed on usb.
Failed to upgrade because the main partition had no more space.
I moved one directory of about 100Mb to other partition, but it seemed that in the main partition didn't appear those 100Mb free.
I restarted the computer expecting those 100Mb free.
And kernel panic.

[ 0.789567] Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block(8,1)
[ 0.789646] Pid: 1, comm: swapper Not tainted 2.6.35-22-generic #33-Ubuntu
[ 0.789716] [<c05c6468>] ? printk+0x2d/0x35


Thank you very much.

pljvaldez 08-05-2011 01:36 PM

Boot up with a Live CD and then copy the data off to another hard disk or usb drive.

user5 08-06-2011 01:22 AM

I've booted with another ubuntu installed in another usb, and if I mount the first usb which has the ubuntu with the kernel panic problem, on it I just can see directories like 'boot', 'casper', 'dists', 'pool', 'syslinux', and files like 'casper-rw' or 'ldlinux.sys'.

The ubuntu is installed on usb, and my data in the 'home' directory is inside the ubuntu, but because of the kernel panic I can not start the ubuntu. How can I get my data in 'home' directory?

user5 08-06-2011 02:54 AM

The data can be recovered mounting file 'casper-rw':

> sudo mount casper-rw /media/directory -o loop

Now how can I repair that kernel panic?


All times are GMT -5. The time now is 09:38 PM.