LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-10-2005, 01:13 AM   #1
villusion
LQ Newbie
 
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Rep: Reputation: 0
Recover Partition??? HELP!!!!


Please, I hope someone can help. I was creating a new swap system, but accidentally typed the wrong partition!! AHhhh, it just so happens, it was my /dev/hda2 partition, and had ALL my webserver files on..... and of course being the idiot I am, I never created a backup!!

I did try and download r-linux, and recover a bunch of files, but not in the actual ext2fs format. The program runs on windows, and created a bunch of file starting with $Inode####. Does anyone know how to restore these back on to my linux box running red-hat 9.0.

If you open one of the files up in notepad, it's like the file contains a whole bunch of the recovered files, you can see the filename, and then gibberish!

Sample filelist

Sample $inode file 1

Sample $inode file 2



(VERY DESPERATE)
-David
villusion@new.rr.com
 
Old 08-10-2005, 11:07 AM   #2
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
What's your filesystem? Recovering in Linux is very hard, the application you've tried probably read from the first sector to the last, putting everything it read together...

Ext2/ext3 may be possible to recover, reiserfs/xfs are almost impossible I heard.
 
Old 08-10-2005, 11:49 AM   #3
villusion
LQ Newbie
 
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Original Poster
Rep: Reputation: 0
The filesystem was ext2, then when I was trying to create a new swap drive, I had created it on the wrong mount. I'm pretty much a newbie at linux, so the next thing I did was to use the mkfs command, and put it back to ext2.

I've tried testdisk, but that's a little confusing. Right now I have the drive in a windows machine, and I'm running this Quick Recovery program on it right now, we'll see what that does.

What else can I do??? ahhh
 
Old 08-10-2005, 12:13 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
I found an howto about a tool there :
http://e2undel.sourceforge.net/recovery-howto.html

You might find this useful... is your linux partition is still bootable?
 
Old 08-10-2005, 12:56 PM   #5
villusion
LQ Newbie
 
Registered: Aug 2005
Location: Green Bay, WI
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks, I'll give that a try next. No it's not bootable, all the files are gone... but I haven't done anything destructive to it yet, so if I could just get a recovery program to work....

Thanks for your help!
 
Old 10-11-2005, 04:05 PM   #6
Brrro
Newbie
 
Registered: Aug 2005
Posts: 4

Rep: Reputation: 0
Well,

You can try <......> . This is really great tool with awesome methods. Recommended! <....URL....>

Last edited by J.W.; 10-11-2005 at 05:41 PM.
 
Old 10-11-2005, 04:33 PM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you deleted a partition and created two more, you can fix the partition table by using fdisk or cfdisk as many times you want. If you formated the new swap partition, then only partial of the data will be saved. Its easier to save text files instead of binary files.

The best way to try to restore the files, is to get another hard drive and make an image file of the bad partition. Do not run fsck or any filesystem tools. A utility dd is great for this. After dd is done, you can use grep and other text tools to find certain keywords in the image file. Recovering binary files is hard if you do not know the file format structure of every type. A hex editor can not be use because it takes too long. A program have to be made to do this.

I do not know enough to restore files. I have not yet practice editing files with a hex editor. I only know that you can re-creatre partitions forever without screwing up the files.
 
Old 10-11-2005, 04:34 PM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Quote:
From that useless recuperation tool website :

Supports FAT12, FAT16, FAT32, NTFS, NTFS5 file systems
Supports MS-DOS, Windows 95/98/ME/NT/2000/XP partitions
This will probably be incredibly useful to recover a LINUX partition formatted with EXT2.

Spam this?
 
  


Reply



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
Can I Recover /boot partition? Warrioruw Linux - Newbie 4 08-10-2005 12:58 AM
Recover partition table djib Linux - Software 2 05-14-2005 07:07 AM
Recover the partition table yogeshwar_s Linux - Hardware 1 09-22-2004 02:02 AM
possible to recover corrupted reiserfs partition???? hollywoodb Linux - Newbie 1 10-10-2003 05:44 PM
Recover a lost partition!!!!! Caveman Linux - Newbie 4 09-26-2003 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration