LinuxQuestions.org
Visit Jeremy's Blog.
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 10-10-2009, 05:48 PM   #1
Ringworm
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Recovering ext4 HD


Hello. Last night I was installing Arch Linux when at some point, at the "Set Filesystem Mountpoints" stage, a message came in saying I needed a boot section, and I attributed it to my 750GB HD, unaware that it would format it, besides partitioning it. Well, now I have my HD with very important data formatted and set to ext4. I installed Windows XP and R-Linux, a data recovery program that supports ext4. The thing is: when it scans for lost files, it only finds the boot ones that are already there, and all the other programs for NTFS HD data recovery don't even recognize the HD. Is the only solution to format it again as NTFS to use one of those programs? Wouldn't it be very hard to recover my data after a second format?
 
Old 10-10-2009, 06:21 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I don't know anything about recovering data on an EXT4; but do not, under any circumstances try and reformat it to NTFS. That will do absolutely nothing but damage the data even more than it already is.
 
Old 10-10-2009, 06:40 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You don't need ext4 recovery (ala R-Linux), you need NTFS data recovery in a non-NTFS partition. Seems the other tools (presumably Windoze) you tried can't deal with that combination.
Rather than reformat (which will destroy even more data), simply try changing the id designator in the partition table to 0x07. The meta-data within the partition itself will still be all wrong (for NTFS), but the software might try to scan the partition looking for data.
Normally I'd try Photorec from Linux, but in truth I've never had a lot of luck recovering NTFS.

No need to remind you to read my sigline I guess ...
 
Old 10-11-2009, 04:42 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Again as usual I recommend the two best programs available, in this order:

http://www.cgsecurity.org/wiki/TestDisk

http://foremost.sourceforge.net/
 
Old 10-11-2009, 10:58 PM   #5
fpmurphy
Member
 
Registered: Jan 2009
Location: /dev/ph
Distribution: Fedora, Ubuntu, Redhat, Centos
Posts: 299

Rep: Reputation: 62
If I understand you, you are telling us that you reformatted all or part of a hard disk which previously contained an NTFS filesystem and data to a new EXT4 filesystem.

Sorry to tell you but you are pretty much out of luck for recovering any data that was in the sectors which now comprise the EXT4 filesystem. You certainly can recover data from other areas of the disk but you need a considerable amount of knowledge and expertise to do so.

If the data is really important you need to image the disk before you attempt to recover any remaining data. Tools like the Sleuth Kit (TSK), Helix3 and Autopsy can then be used to carve out the data sectors and reassemble any files that are recoverable. I also suggest you read Brian Carrier's book "File System Forensic Analysis."
 
  


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
Is ext4 okay to use? WillingToLikeLinux Linux - Newbie 26 05-31-2009 11:55 AM
ext4 in ubuntu 9.04 WillingToLikeLinux Linux - Newbie 3 05-21-2009 10:10 PM
Ext4 questions jmite Linux - Newbie 2 03-31-2009 06:50 AM
From ext3 to ext4 rengo.Java Linux - Software 6 12-27-2008 09:58 AM
Ext4 aukuntin Linux - General 1 09-16-2008 09:15 AM

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

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