Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-22-2004, 09:40 AM   #1
LQ Newbie
Registered: Jul 2003
Location: Atlanta, GA
Distribution: SuSE
Posts: 17

Rep: Reputation: 0
Recover ext2 data after reformat??

Stupid enough. I accidently reformatted an ext2 partition to reiserfs.
I have made a copy by "dd", and grep some text data from the copy.

How can I recover almost all my data?
Is there a handy tool?
Thanks. recover ext2 data after format
Old 08-10-2005, 12:53 AM   #2
LQ Newbie
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Rep: Reputation: 0
Ok, I kind of did the same thing, except I accidentally created a swap out of my my hda2 drive..I didn't actually reformat it though. Did you ever figure anything out?

I tried using r-linux, but it created a bunch of $Inode files on my winodws system, how do I convert that back?

Sample Files


Old 08-26-2005, 03:24 PM   #3
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
The first thing to do imho is to restore partition type byte back to 0x83 using fdisk, but without reformatting!

If you didn't actually use the swap file (i.e. neither you nor init script run a swapon on it) you'll probably be able to recover the backup inode tables, mkswap only affects the very beginning of the partition. You should read these info/man pages: e2fsck, dumpe2fs, mke2fs (see -n option).
If you enabled the swap partition, then chances are most of your data has been overwritten several times, so any time spent would be wasted.

If the interested partition is a fat32, instead, you should probably google for a windows native recover app and cross your fingers...

Best wishes.
Old 08-26-2005, 10:50 PM   #4
LQ Newbie
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Rep: Reputation: 0
I did try that, but when I remount I can only see a few files. I never did enable the swap file... I've saved the drive though in case I ever figure anything out.

Thanks for the response!
Old 04-03-2006, 10:53 PM   #5
Sören Schneider
Registered: Apr 2005
Location: Brazil
Distribution: SUSE 9.0 Pro, SUSE OSS 10.0, KDE 3.4.2
Posts: 156

Rep: Reputation: 30
If you still have your HD.
Make this HD as slave.

Have a look at this:

Good luck


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
Software to acess and recover data on Fat32 data NeoSpawn Linux - Software 2 09-04-2005 11:37 AM
data recover please ..! bruse Mandriva 7 04-15-2005 01:12 AM
(hard one) cant mount ext2(or swap) anymore - recover data pawn-o-matic Linux - Hardware 3 03-24-2005 02:17 PM
Help me to recover data after a dd balfred Linux - General 6 12-09-2002 04:35 PM
reformat file system (from ext2 to ext3) pimo Linux - General 5 03-19-2002 04:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 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
Open Source Consulting | Domain Registration