Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

How to recover files

Sun Dec 06, 2015 3:28 pm

Hello,

I have a 8g SD Card on my RPi but before I noticed it got full, the system crashed and now I can't get it up again.
on boot it says
"end kernal panic - not syncing: VFS: Unable to mount root fs on unknown-block(179.2)"

I need to get the files that I had on my /www/var directory, I tryied to search on google how to recover the files and I saw a few things about booting a linux OS and then placing the SD Card also saw a few programs to run on windows that could read linux partitions but none of them seem to with with my RPI image.
whatIget.png
whatIget.png (37.35 KiB) Viewed 5976 times
This is what I see with or without programs, on linux or on windows.
How can I get my /www/var/ files back?

Thanks,
Joaogl

User avatar
joan
Posts: 14759
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to recover files

Sun Dec 06, 2015 9:01 pm

That is the small (60 megabytes) FAT formatted boot partition. You need to mount the large EXT4 formatted Linux partition. That's where all your files will be.

User avatar
DougieLawson
Posts: 37703
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to recover files

Sun Dec 06, 2015 10:04 pm

Joaogl wrote: "end kernal panic - not syncing: VFS: Unable to mount root fs on unknown-block(179.2)"
That means your plain Raspbian root filesystem is damaged and needs to be fsck'd. You'll have to use single user mode or any other linux system to do that.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Re: How to recover files

Sun Dec 06, 2015 11:00 pm

I totally forgot about that second partition... it didnt even crossed my mind. tks

When I try to mount it it failes because "NTFS signature is missing", I've already ran "fsck -y /dev/sdc" and "fsck -y /dev/sdc2" and "e2fsck -y /dev/sdc" and "e2fsck -y /dev/sdc2" and it still gives me the same error... I tried this on Kali.

How can I solve this?

User avatar
DougieLawson
Posts: 37703
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to recover files

Mon Dec 07, 2015 11:27 am

Build a fresh SDCard. Then use your Raspberry with a USB SDCard reader to repair the borken one.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
RaTTuS
Posts: 10539
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: How to recover files

Mon Dec 07, 2015 11:32 am

take a new SD card
add raspbian to it
boot that on your RPI
stick a usb sdcard adapter into the RPi and put the old sdcard in that
mount the relevant device [ possibly /dev/sda6 ] somewhere ie.. /mnt
copy the files off it

the make sure you have a working backup system and rebuild the sdcard how you want it
test the backup system
make more backups of the backups
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “Troubleshooting”