LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 06-04-2010, 08:40 AM   #1
micemicerabies
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
martvefun
Member
 
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
huwnet
Member
 
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
mariapeter12
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
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 395

Rep: Reputation: 33
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
CincinnatiKid
Member
 
Registered: Jul 2010
Distribution: Mageia-3
Posts: 395

Rep: Reputation: 33
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.
 
  


Reply

Tags
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


All times are GMT -5. The time now is 01:26 PM.

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