LinuxQuestions.org
Visit Jeremy's Blog.
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 12-18-2005, 04:04 PM   #1
vladimir4
LQ Newbie
 
Registered: Dec 2005
Location: Arlon
Posts: 2

Rep: Reputation: 0
Unhappy All data on HD lost after convert NTFS to EXT3


Hi,

I've decided to convert my NTFS partition to ext3 and use it for backup of some important data
As a result of this operation - I'm no more able to access my data :-(

/dev/hda is primary "system" disk with Ubuntu on it, hdc is "home" disk : hdc1 NTFS (40GB), hdc2 ext2 (80GB) end hdc3 swap (500M).

hdc1 was not mounted so I executed:
# fdisk /dev/hdc1
delete partition 1, recreate new primary 1 using same sectors (1 to 5000), set it to 83
did "w"
got message with something like "kernel will use the old table since reboot" but haven't take care of it :-(
tried
# mkfs.ext3 -v /dev/hdc1 - with no problems
# mount -t ext3 /dev/hdc1 /home/backup
copied loads of important data from /dev/hdc2 into it (20GB)

a bit after problems started : unable to delete files from hdc2 partition (got strange message "can't delete, system is read-only") so I decided finally to reboot and - the catastrophe !!!

/dev/hdc1 is unrecognized
/dev/hdc2 was impossible to mount,

-> I can't find my important data, both hdc1 and hdc2 seems to be destroyed !

-> fsck problems on /dev/hdc2 .... try to run fsck manually, so i did
# fsck -y /dev/hdc2 .... lot of errors / corrections, ....
once system rebooted again, I've find only

drwx------ 18 root root 16384 2005-12-18 13:44 lost+found/

with lot of strange think in it :

....
c-wSrwS-wt 1 3748322825 752322315 113, 107 1914-05-22 04:02 #9925
br-S-w-rwt 1 2391552555 2042450954 47, 133 1960-04-06 04:47 #9930
c----w---- 1 2437318542 3325671714 121, 236 1988-04-06 10:49 #9974
brwxr-Sr-x 1 1648846991 2448306852 79, 64 2026-03-02 00:37 #9992
.....

when tried to redo fsck
# e2fsck -vf /dev/hdc2
the result looks friendly :



e2fsck 1.38 (30-Jun-2005)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

575595 inodes used (5%)
50943 non-contiguous inodes (8.9%)
# of inodes with ind/dind/tind blocks: 44798/2952/1017
14229853 blocks used (71%)
0 bad blocks
0 large files

494569 regular files
37713 directories
5814 character device files
23278 block device files
242 fifos
2931 links
13568 symbolic links (10919 fast symbolic links)
402 sockets
--------
578517 files


on the other side
# fsck.ext3 -f /dev/hdc1 gives me
e2fsck 1.38 (30-Jun-2005)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext3: Bad magic number in super-block while trying to open /dev/hdc1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>





Is there any hope to get back my data ?

Thanks in advance for any help,
Vladimir
 
Old 12-19-2005, 09:41 AM   #2
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
I really couldn't help if there was a way through linux to get your stuff back, but if you want you could try out steve gibsons Spin Rite program. You'll need access to a windows box to make the boot CD/disc and it will scan your hard drive (it supports almost all formats) and try to fix and recover your data.

Its 89 dollars though, so there is a price and no guarantee it works.
 
Old 12-19-2005, 09:58 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
So what made you think you could just reformat and convert your NTFS to EXT3 and expect no data loss? Windows by default doesn't or can't recognize EXT3 filesystems so depending on how you formmatted this partition and whatever tool you used, all of your data is most likely gone. You'd need some type of data recovery program to get your data back from the sounds of it.
 
Old 12-19-2005, 10:11 AM   #4
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Quote:
delete partition 1, recreate new primary 1 using same sectors (1 to 5000), set it to 83
You DELETED the partitions and then made new ones? Thats not converting. Thats formatting your hard drive.
 
Old 12-19-2005, 10:12 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by Pauli
You DELETED the partitions and then made new ones? Thats not converting. Thats formatting your hard drive.
Exactly why I posted my first response..
 
Old 12-19-2005, 10:15 AM   #6
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
Yeah I realized what he wrote after you posted I thought he had just corrupted a convert with patition magic or something
 
Old 12-19-2005, 03:27 PM   #7
vladimir4
LQ Newbie
 
Registered: Dec 2005
Location: Arlon
Posts: 2

Original Poster
Rep: Reputation: 0
Thank for responses.

Unfortunately I see that I've not explained correctly the problem (sorry for my english :-(

I expected that data on NTFS (hdc1) will be removed, that's fine.
What I've not expected is that this operation will corrupt my existing ext2 partition (hdc2) !

I will try to find s.one with steve gibsons Spin Rite program - thanks for that.

Could someone also help me repair it using linux ?
Thanks, V.
 
Old 12-19-2005, 03:44 PM   #8
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
There are a number of live distros that contain the tools necessary to attempt recovery of lost files..

http://www.frozentech.com/content/li...cue&sort=&sm=1

The coroners toolkit is one such set of tools.
http://www.fish2.com/tct/FAQ.html

Basincally you are looking at forensics work..
http://www.forinsect.de/forensics/forensics-links.html


and before you start any attempt at forensics you should get a blank HD (if the blank drive is not new, you should 'zero' out the drive before copying an image to it.. ) mount the damaged HD READ ONLY and make a bit for bit image (hint in Linux use dd for this) of the drive you are planning to work on. and then work on the copy or image you created, not the original drive.


good luck...
 
Old 12-19-2005, 04:07 PM   #9
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Well if you formatted the drive as ext(n) the data is toast. You may recover some files here and there but the vast majority are likely zeroed out. The MFT is definitely going to be toast so you may want to try R-Tools as that software will be your very best chance of recovering data. Check it out at http://www.r-tt.com/

It is the ONLY data recovery software I've had success with. Whatever you do stay away from Stellar Phoenix (I've posted about that piece of *&%@ company previously in other threads). It will not work and they WILL refuse to refund your money.
 
  


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
convert ntfs to ext3? supersucker Linux - Newbie 9 08-24-2009 06:36 PM
Convert from NTFS to Ext3 zillah Fedora - Installation 13 08-24-2005 11:44 PM
how to convert ext3 to ntfs? cannot even see ext3 partition parv Linux - Hardware 1 12-31-2004 02:56 PM
convert ext2 to ext3 without losing data andrewlkho Linux - General 4 10-24-2003 08:56 AM
Convert ext2 to ext3 or something else? coldfusion713 Linux - Software 3 08-03-2003 12:57 AM

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

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