LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-12-2006, 04:25 PM   #1
Adam A Flynn
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
Accidentally Formatted NTFS Partition... Looking to Recover Data


Hi,

I was trying to resize my NTFS partition and accidentally ended up reformatting the partition. I am now looking to recover that data.

I used ntfsresize and successfully shrunk the partition. I hit fdisk to delete and split the old partition into 2 new ones, but, after some results that struck me as odd, I opted to go for the GUI approach and play it safe. So, I loaded GParted and redid the partition structure. Unfortunately, when it redid the partition table, it also assumed that it had to reformat the two new partitions I made. This produced the undesired result of loosing the file allocation table on my NTFS partition. (I'm not a guru, but I'm reasonably sure that the root issue is that the FAT for the partition is dead, am I right?)

Now, this is not hugely critical to me. I keep all my data on a FAT32 partition and I don't think I've booted to Windows in the last few months. Worst case scenario, I just pop the install CD back in and spend an afternoon reinstalling things the next time I feel compelled to use Windows. However, I wouldn't mind recovering the partition because, for one, it's a good learning experience, and, for another, I don't want to waste an afternoon reinstalling.

So, are there any Linux utilities out there that can be used to reconstruct the FAT of an NTFS partition? I tried Google, but only ended up seeing a bunch of Windows-based results and, when trying to recover a Windows partition, it's somewhat difficult to boot into Windows to run a recovery app.

Thanks in advance.
 
Old 08-13-2006, 08:50 AM   #2
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
try testdisk
 
Old 08-13-2006, 08:59 AM   #3
Adam A Flynn
LQ Newbie
 
Registered: Jun 2004
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
I looked at testdisk, but couldn't figure out how to make it do what I want it to do. Man pages and Google didn't help much.

How do I use testdisk?
 
Old 08-13-2006, 08:59 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,108

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
Testdisk is designed for a different problem.
I don't like your chances ...
 
Old 08-13-2006, 11:58 AM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
You formatted a partition, and you are trying to get it back right? Here is what the developer of testdisk and photorec said to me in an email.

On Wed, 9 Aug 2006, Chris wrote:

> Should I be using testdisk instead?

If you have delete a partition or reformated a partition to
another filesystem type, yes
 
Old 08-13-2006, 11:59 AM   #6
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,440

Rep: Reputation: 80
You formatted a partition, and you are trying to get it back right? Here is what the developer of testdisk and photorec said to me in an email.

On Wed, 9 Aug 2006, Chris wrote:

> Should I be using testdisk instead?

If you have delete a partition or reformated a partition to
another filesystem type, yes
 
  


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
recover data from formatted hdd sebastiano Linux - General 5 03-27-2006 08:40 AM
Help needed to recover data from ext3 file system where mkfs was issued accidentally kapilsampath Linux - General 4 04-26-2005 07:52 AM
How to recover data on a RAISERFS formatted harddisk compghod Linux - General 2 03-19-2005 06:43 AM
formatted my c:, linux boot data lost, how could i recover sas_tvr Linux - General 1 01-18-2005 06:56 AM
Accidentally formatted wrong partition DigitalTygrrr Linux - Newbie 9 04-25-2003 02:07 AM


All times are GMT -5. The time now is 12:06 AM.

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