Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-04-2010, 08:40 AM   #1
LQ Newbie
Registered: Apr 2010
Posts: 8

Rep: Reputation: 0
Angry EXT4 data recovery

Last night I made the mistake of formatting my media drive. Before the format, it was ext4. then I formatted it to ext4 again because I wasn't paying attention to what I was doing(this mistake only gets made once). Now im looking for away to recover any/all of my data. The drive in question is 1tb. I have not written any new files to this drive. it is still in the same state as it was yesterday
Old 06-04-2010, 09:06 AM   #2
Registered: Apr 2010
Location: Belgium
Distribution: Archlinux
Posts: 53

Rep: Reputation: 1
If your data is worth 80 bucks

(it's the first result google gave me, if you search I'm sure you can find free alternatives)

edit : or have a look at that : 5 of the best free linux data recovery tools

Last edited by onebuck; 11-30-2012 at 08:35 AM. Reason: remove link
Old 06-05-2010, 04:06 PM   #3
Registered: Jan 2006
Location: England
Distribution: Arch
Posts: 119

Rep: Reputation: Disabled
You might be able to use PhotoRec to get some stuff
Old 08-26-2010, 07:17 AM   #4
LQ Newbie
Registered: Jun 2010
Posts: 9

Rep: Reputation: 0
Alternatively you can try the following links for Ext4 recovery
Old 08-26-2010, 07:57 AM   #5
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
It can be very easy as long as you haven't done a lot of writing to the disk. Here are some steps:
  1. Make a image of your hard drive partitions with dd, example: dd if=/dev/sda1 of=/home/user/image
  2. Make a backup of the image and then only do forensics on the image, not on your hard drive because things can change, and be overwritten etc
  3. If you need to mount your image, mount it as read only!
  4. Use a forensics tool on the image, such as lazarus, or text you can sometimes recover with strings. There are other tools but I can't think of them right now, start with lazarus.

You will be surprised by how much you can recover with no problems. I will be back to check on your results.
Old 08-26-2010, 01:28 PM   #6
Registered: Jul 2010
Posts: 454

Rep: Reputation: 47
Actually, I am not sure if Lazarus supports EXT4 or not. Give it a shot. Follow some of the other pointers that I gave though.

Try foremost also for recovery.

Last edited by CincinnatiKid; 08-26-2010 at 01:30 PM.


data, ext4, recovery

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ext4 recovery behaviour grete Slackware 3 12-10-2009 11:48 AM
ext3 used as ext4 by mistake.. Any way to recover my data? Please help. DigiH Linux - Desktop 9 11-27-2009 02:27 AM
Ext4 data loss; explanations and workarounds H_TeXMeX_H Linux - News 11 03-27-2009 04:16 PM
LXer: Possible data loss in Ext4 LXer Syndicated Linux News 1 03-12-2009 10:56 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration