LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-02-2010, 05:20 AM   #1
phoenixfire
Member
 
Registered: Nov 2006
Location: Australia
Distribution: Gentoo
Posts: 86

Rep: Reputation: 15
Thumbs down Undo a mke2fs command.


So i was just starting a fresh Gentoo install and prepairing my disks when i accidentally changed my 1TB NTFS partition to a ext3. This partition had about 16,000 songs, hours worth of video and almost 4 years worth of photos on it. I am completely desistated as i'll never see most of these pictures again and some of the music contained recorded music from and old band i was in that i had the only copys of.

I hope there is someone who can help me recoved these files and if possable convert it back to NTFS. So far i have tried nothing for fear of damaging it further. Please help.
 
Old 02-02-2010, 05:41 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Most---if not all---of the files will be recoverable.

First, don't do anything that would write to that disk. If the data is really valuable, consider cloning it before attempting recovery. Regardless, when you do start recovery, you want the physical drive installed somewhere such that it is not being used for the operating system--only for data.

The standard tools (at least the ones most often recommended here) are "testdisk" and "photorec" (both from the same author/website).

If you buy an external USB drive to make the clone, then that will also be useful for future backups.
 
Old 02-02-2010, 05:57 AM   #3
phoenixfire
Member
 
Registered: Nov 2006
Location: Australia
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks for the quick reply. I'm going to give testdisk a go. I was looking at mkdosfs as a way of working backwards but it doesn't seem to support NTFS.

I'll let you know how it goes. Thank you again.
 
Old 02-02-2010, 06:06 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Do NOT attempt to recover by using tools to make a new filesystem!!

What you have done so far is to write new filesystem info over your existing data. This changes the infrastructure of the disk, and breaks all the links to the files, but it does not delete (most) of the actual data. Trying to install yet another filesystem will only delete more data.

You do not want to do ANYTHING that will write to the disk.
 
Old 02-02-2010, 06:25 AM   #5
phoenixfire
Member
 
Registered: Nov 2006
Location: Australia
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
Testdisk says it's still an NTFS partition. Thats a good start i guess. I'd apreciate it if you could give me a leg up on how to procede from here.

Edit: To save you some time.
I'm guessing: Analise, backup, change type, NTFS?

Last edited by phoenixfire; 02-02-2010 at 06:34 AM.
 
Old 02-02-2010, 06:35 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
There are some different terms here......the partition type does not tell you what filesystem is installed. For example a "Linux" partition (type 83) can have all manner of different filesystem.

I've already told you more than I know about filesystem recovery!! If you are unsure about what you are doing, then get the drive to a recovery specialist.
 
Old 02-02-2010, 06:40 AM   #7
phoenixfire
Member
 
Registered: Nov 2006
Location: Australia
Distribution: Gentoo
Posts: 86

Original Poster
Rep: Reputation: 15
Oh sorry, missed a bit there. Partition is NTFS but filesystem is still ext2.

Thank you so much for your help. I'd be in the dark still if you hadn't posted. I really appreciate 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do undo MV or RM command? pogromca Linux - Newbie 8 11-26-2013 07:25 AM
To undo a given bash-command HULLU Linux - Newbie 6 02-21-2010 11:06 PM
mke2fs what is the command to format a FAT23 or SWAP hd? linus72 Linux - Newbie 5 04-15-2009 01:50 PM
Undo a chmod command? WingnutOne Linux - General 3 06-23-2008 06:20 PM
How do I undo last command executed? Elfking Linux - General 4 02-05-2004 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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