LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 09-17-2010, 04:13 PM   #1
Mandarim
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Rep: Reputation: 0
NTFS File Sytem Recovery after mke2fs


Hello guys, first Time posting and I didnt find any better category..

PLEASE HELP

By mistake I did mke2fs to my Windows NTFS Particion
To my understanding It has Modified the inodes only,
Can I recover somehow the NTFS inodes?, I lost everything and I know the things are there.

I've tryed particion recover, but that's not the problem, the particion is there, and it's NTFS, but the filesystem isnt

Does anyone know how to undo this!!!

Thank you!
 
Old 09-17-2010, 10:12 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 248Reputation: 248Reputation: 248
Greetingz!

There's only one way I can think of that *might* work;

1) First make sure the partition type is set correctly. Use 'fdisk' to check/set the "ID".
You should have something that looks like this;
Code:
[root@linuxbox ~]# fdisk -l /dev/hda

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      102400    7  HPFS/NTFS
/dev/hda2              13       24322   195256320    7  HPFS/NTFS
[root@linuxbox ~]#
2) Then try to use a data recovery tool (like Media Recovery) to get any data out of the partition(s).
After that, reformat the drive and reinstall the Windows Operating system.

NOTE: Notice how I said "data", not "Programs" or "Registry Settings" or "The Operating System". The drive is effectively trashed, nothing short of a full format and restore from backups will restore it to "like new" status.

Last edited by xeleema; 09-17-2010 at 11:33 PM. Reason: I can't live w/o spellcheck
 
Old 09-17-2010, 11:10 PM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,229

Rep: Reputation: 286Reputation: 286Reputation: 286
A System Rescue CD could also possibly recover your data. It could also reformat your Windows partition for you after you recover your data:
http://www.sysresccd.org/Main_Page
 
Old 09-17-2010, 11:16 PM   #4
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

Try some recovery softwares like power data recovery.It helped me few months back.
 
Old 09-18-2010, 04:46 AM   #5
Mandarim
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Unhappy

Here's my output from fdisk:

Disk /dev/sda: 300.1 GB, 300090728448 bytes
255 heads, 63 sectors/track, 36483 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeb9deb9d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 33911 272384000 7 HPFS/NTFS
/dev/sda2 33912 36483 20659590 5 Extended
/dev/sda5 33912 35253 10779583+ 83 Linux
/dev/sda6 35254 35399 1172713+ 82 Linux swap / Solaris
/dev/sda7 35400 36483 8707198+ 83 Linux


And now here's the output from testdisk:
Disk /dev/sda - 300 GB / 279 GiB - CHS 36483 255 63
Partition Start End Size in sectors
1 * HPFS - NTFS 0 32 33 33910 93 39 544768000

Boot sector
Status: Bad

Backup boot sector
Status: Bad

Sectors are identical.

A valid NTFS Boot sector must be present in order to access
any data; even if the partition is not bootable.

Big problem, I've tried Active @ Boot cd which have Active @ partition recover, Active @ Undelete, etc... And I thinking of delete the partition and try to recover, not sure though...

Thanks for your quick reply, I Will keep posting results
More ideas anyone?
 
Old 09-18-2010, 05:07 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,201

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Quote:
Originally Posted by Mandarim View Post
By mistake I did mke2fs to my Windows NTFS Particion
To my understanding It has Modified the inodes only,
Can I recover somehow the NTFS inodes?, I lost everything and I know the things are there.
It isn't simply a matter of "inodes only".
The people who make testdisk also do photorec - a file scraper (not just photos). Supports NTFS, but in truth I've never had a lot of luck with NTFS recovery.
I hope you do better.

Need I mention my sigline ... ?.
 
Old 09-18-2010, 08:56 AM   #7
Mandarim
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Ok, I'm recovering all data with photorec, it's going to take a while and so long directory structure and file names...
After this I'll give more shots on recovering i-nodes, seems imposible though since I've no image or log of any kind.

Thank you for reply, I'll keep you posted

Is there anymore I can do?
I feel terrible, It took 2 min to ruin all my data, witch it's steel there, AGHRRRRRR

Peculiar problem
Does some know if NTFS keep a file on disk with that structure (MFT)?

Last edited by Mandarim; 09-18-2010 at 11:03 AM.
 
Old 09-18-2010, 11:48 PM   #8
Mandarim
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
With a windows live cd and GETDATABACK for NTSF I manage to recover almost everything, with directory structure and proper names. I'm so happy

Thank you all
 
Old 09-19-2010, 02:15 AM   #9
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 987
Blog Entries: 4

Rep: Reputation: 248Reputation: 248Reputation: 248
Really?
That's *awesome*! Any links you could provide would be really appreciated!
Also, if you could mark this as [SOLVED] that would let others know there's a fix for this.
Have a good one!
 
Old 09-19-2010, 08:07 AM   #10
Mandarim
LQ Newbie
 
Registered: Jan 2010
Posts: 8

Original Poster
Rep: Reputation: 0
OK so I used a winXP Live CD I had at home, I think VistaEP work as well
Then I used GETDATABACK NTSF PORTABLE, here is the torrent link:

http://dl.btjunkie.org/torrent/GetDa...wnload.torrent

Use this apliccation on your external hard drive, if you use a pen drive your external hdd will not read, at least my didnt.
And through options setect extended search (or something like that), a matching partition size and START - END will appear after you scan.

And that's it!

Got all my data!!!! weeeeeee

From format you cant run though...

Last edited by Mandarim; 09-19-2010 at 08:14 AM.
 
Old 05-09-2011, 06:17 AM   #11
rozen
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
recover data after corruption in file system

Data loss is the normal problem for computer user. But if you want to restore deleted files and folders then you have to recover all data. Now you can recover data either by manual methods or by using recovery software. But manual methods are for those who are technically sound person so if you are not technically skilled then you must use recovery software to recover data from fat or ntfs file system without any loss. For more information visit: keep spam away from LQ!

Last edited by colucix; 05-09-2011 at 07:20 AM. Reason: Removed commercial link. No spam allowed.
 
  


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
mke2fs -t vfat created an ext2 file system catkin Slackware 7 03-23-2010 07:58 AM
Memory Card performance, and file-sytem qwijibow Linux - General 1 10-09-2005 08:15 PM
file sytem question stickygreen Linux - Newbie 3 02-02-2005 10:37 PM
ntfs corrupted file recovery? evilop Linux - Newbie 5 09-21-2004 02:50 PM
Knoppix & NTFS file recovery Incanus Linux - General 1 06-06-2004 11:39 AM


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