LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2008, 09:45 PM   #1
tommy2706
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
HELP to rescue formatted EXT3 data


Please help me!!

My EXT3 hard disk had been accidently formatted to NTFS by winXP but NO data are write on this harddisk after I formatted it to NTFS so I believe that the data in this HD can be rescue, please teach me how to restore the MBR of the Harddisk and return it to EXT3 and extract data from it.

Please teach me how to do! Thanks

Last edited by tommy2706; 07-15-2008 at 09:46 PM. Reason: spell check
 
Old 07-15-2008, 10:39 PM   #2
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey there,

It will be next to impossible if you actually did a format, since it's already written 1's and 0's across the entire partition.

If that's not the case, google for "dos boot disk" or "dos boot cd" and use the fdisk that comes on there - once on the correct drive letter:

fdisk /mbr

will wipe the mbr and then you should be able to use a Linux rescue CD to get back.

Alternately, grab a copy of Linux Defender (It's Knoppix CD-Linux - runs right off of your CD/DVD drive if you can boot from that - with NTFS support). That way you can boot off of cd and mount your hard drive and begin data retrieval efforts there.

Whatever you do, don't boot into windows. Probably best to remove the hard drive completely until you're ready to attempt recovery.

Check out this site and The Coroner's Toolkit (spelling may be wrong on coroner). TCT comes with a program to scour a Unix or Linux disk and attempt file retrieval:

http://www.porcupine.org/wietse/ (Main site - lots of good tools - he wrote tcp wrappers)
http://www.porcupine.org/forensics/ (The TCT page)

Best of luck to you,

Mike
 
Old 07-15-2008, 10:51 PM   #3
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Actually, formatting does not permanently delete anything. To get rid of something entirely, you must use a program called "shred".

But, since you are trying to recover data, look at the programs "testdisk" and "photorec", usually included in the same install.
 
Old 07-15-2008, 10:54 PM   #4
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Just meant that it will make it harder since NTFS format is like mkfs on Linux/Unix - Greatly reduces chances of getting anything back. Still recoverable per my suggestions above.

Yours are also equally valid - just trying to be more clear about my response

Best wishes,

Mike
 
Old 07-15-2008, 11:07 PM   #5
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by eggixyz View Post
Just meant that it will make it harder since NTFS format is like mkfs on Linux/Unix - Greatly reduces chances of getting anything back. Still recoverable per my suggestions above.

Yours are also equally valid - just trying to be more clear about my response

Best wishes,

Mike
mkfs? Umm. Not to be mean or anything, but mkfs is the program that MaKes the File System, not the filesystem itself. For example, to make a ext2 filesystem, you use

Code:
mkfs.ext2 /path/to/location
Linux filesystems are like: ext2, ext3, reiserfs, unionfs, etc.

The fact that the hard drive uses NTFS will not hinder anything.
 
Old 07-15-2008, 11:31 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

'Test-disk' is probably the way to go with this. But you could use a disk editor if all else fails.

You can find the 'Test-disk' on 'SystemRescueCd', 'UBCD Ultimate Boot CD' and '(R)ecovery (I)s (P)ossible' to name a few LiveCD recovery tools.

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 07-16-2008, 11:47 AM   #7
tommy2706
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks all of you, I will try tomorrow!
 
Old 07-16-2008, 01:58 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
so next time pay more attention to the MS windows( Borg) installer .There is a check box you must uncheck to stop the win.install cd from assimilating the linux drive.
 
Old 07-16-2008, 08:45 PM   #9
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
No offense taken,

I have always been under the assumption that an NTFS format would overwrite the already formatted hard drive and cause damage. Although, I may be wrong. I understand the mkfs command, but am not very well versed in NT. Thanks for the correction

, Mike

Quote:
Originally Posted by phantom_cyph View Post
mkfs? Umm. Not to be mean or anything, but mkfs is the program that MaKes the File System, not the filesystem itself. For example, to make a ext2 filesystem, you use

Code:
mkfs.ext2 /path/to/location
Linux filesystems are like: ext2, ext3, reiserfs, unionfs, etc.

The fact that the hard drive uses NTFS will not hinder anything.
 
  


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
Best Live/Rescue CD for ext3 data recovery? branvu Linux - Distributions 12 07-02-2010 08:37 AM
Recovery formatted data with ext3 disk? amaj1407 Linux - Hardware 6 07-22-2008 11:24 AM
Recover formatted EXT3 partition designator Linux - Software 10 03-29-2008 08:30 PM
Recovering a deleted and formatted over ext3 partition? Soniku Linux - General 4 04-02-2007 07:12 PM
Data rescue on ext3 e-Gandalf Linux - Software 7 03-27-2007 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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