LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-29-2009, 04:31 PM   #1
TwinsDad9901
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Data recovery on HDD


I did something stupid.
I accidentally formatted a HDD when I meant to format a USB thumb drive. The HDD is a 250GB drive that had about 180GB of data in the EXT3 format. I was actually attempting to make a bootable USB thumb drive with TRK (Trinity Rescue Kit). Kind of funny/ironic to mess up a drive while trying to make a rescue disk. Anyway, as soon as I realized what had happened, I pulled the drive out of the computer to make sure I didn't do anything else stupid to it. I have been searching for some way to recover and haven't really found much. There are a lot of programs to get Windows data back, but I haven't seen anything specific on the EXT3 file system.
Any ideas?

Thanks
 
Old 08-29-2009, 05:29 PM   #2
yaarappa
Member
 
Registered: Aug 2008
Location: Cumbria, UK
Distribution: OpenSuse 11
Posts: 148

Rep: Reputation: 16
Hi, Sorry to hear about your problem My knowledge on LInux is limited. Something like this happened to me when my partition got erased. Few people gave suggestions. Follow the link to see the suggestions if no one else replies. You seem to be in a hurry that is why I am replying here. Hope this helps.

http://www.linuxquestions.org/questi...rashed-741699/

Cheers,
 
Old 08-29-2009, 05:31 PM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Look into foremost and photorec. They should be able to get a lot of the data back. although it probably won't get filenames back.

If you can, work on an image of the drive rather than the original disk as this reduces the chances of more accidents. Look for info on dd to make an image of a disk.

Last edited by pwc101; 08-29-2009 at 05:33 PM.
 
Old 08-30-2009, 11:56 AM   #4
TwinsDad9901
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Data recovery on HDD

yaarappa: Thanks for the suggestion. I am not in any great hurry to get this fixed. Like I said, I pulled the drive to protect it. I do want the data back, but I don't want to mess it up any more than I have already.

pwc101: Thank you. I will try these. I'm not sure if an image will work, since it was formatted, but I will try.

Again, thanks.
 
Old 08-30-2009, 12:09 PM   #5
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by TwinsDad9901 View Post
pwc101: Thank you. I will try these. I'm not sure if an image will work, since it was formatted, but I will try.

Again, thanks.
All that happens when you format a disk is that the partition table is rewritten (which is 512 bytes at the beginning of the disk). It is possible to make an image of a disk (/dev/sda), as opposed to a partition (/dev/sda1), thus allowing various program to read the disk in its entirety, irrespective of any partitions that may have existed or may still exist. This is precisely what photorec does, if memory serves.

There are also programs out there that try to reconstruct the partition table (e.g. http://en.wikipedia.org/wiki/Gpart), thus allowing for full data recovery (including filenames, permissions, the works). However, if you don't know what was there before, these can also break things to such an extent that further recovery is more difficult.

I would always recommend working on an image of the entire disk rather than the disk itself.

I don't think there should be too many problems for you to get the files back, so long as nothing has been written to the disk since you formatted it.
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HDD partition recovery - HDD works but no partitions are accessible? stevod333 Linux - Software 6 10-01-2009 05:24 AM
HDD Snapshot For Recovery Actinium Linux - Software 1 11-06-2007 01:59 PM
hdd recovery program that let you choose which data to getback? frenchn00b Linux - Newbie 2 07-21-2007 06:26 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
Advice needed on transferring data from HDD to HDD denimglen Linux - Newbie 3 03-04-2006 07:33 PM


All times are GMT -5. The time now is 03:15 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