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 04-29-2006, 02:43 PM   #1
hergadawn
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
Help! Deleted an ext3 partition.


I need your help.
Yesterday I tried to install Windows XP on my hard drive, and it complained and wouldn't do it. When I booted back in to Windows I found that my 62GB logical ext3 partition with all my important files on had gone. I'd had a similar problem with a friend's computer before and I managed to fix it using all the useful information available on the internet, so I opened up GParted (should have used the command line ...) and created a partition approximately where the other would have been, but forgot that by default, GParted automatically formats the partition. So the partition has a ext2 filesystem written over it. Is the data still recoverable? No files were saved to the new partition, and it is unmounted. When a partition is formatted, is data just written at the beginning of the partition or al the way through? I know ext3 is just ext2 with journalling. Can anyone help me please?
I've Googled and searched the forums, but haven't been able to find any info on my specific situation.
This is on a laptop with partition layout as follows:
1 ext3 10GB Debian
2 swap 1GB
3 hfs+ 6GB Mac OSX x86
4 extended 83GB
Unformatted 19GB
5 ext3 62GB files (DELETED)
6 Unformatted 2GB (reserved for suspend to disk)
 
Old 04-29-2006, 03:40 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
maybe you can look at this program
 
Old 04-29-2006, 03:41 PM   #3
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Quote:
Originally Posted by hergadawn
I need your help.
Yesterday I tried to install Windows XP on my hard drive, and it complained and wouldn't do it. When I booted back in to Windows I found that my 62GB logical ext3 partition with all my important files on had gone.
You said it wouldn't install, so how did you "boot back in to Windows?"

Quote:
Originally Posted by hergadawn
I'd had a similar problem with a friend's computer before and I managed to fix it using all the useful information available on the internet, so I opened up GParted (should have used the command line ...) and created a partition approximately where the other would have been, but forgot that by default, GParted automatically formats the partition.
I can't say you're wrong but I find it difficult to believe that gparted formats partitions by default. That sounds like it would make a lot of very unhappy people.

Quote:
Originally Posted by hergadawn
So the partition has a ext2 filesystem written over it. Is the data still recoverable?
Probably not, if it was really reformatted. Try mounting it r/o from your Debian system or a linux live CD like Kanotix, Slax, or other and see if you can read it.

Quote:
Originally Posted by hergadawn
This is on a laptop with partition layout as follows:
1 ext3 10GB Debian
2 swap 1GB
3 hfs+ 6GB Mac OSX x86
4 extended 83GB
Unformatted 19GB
5 ext3 62GB files (DELETED)
6 Unformatted 2GB (reserved for suspend to disk)
Where is Windows on this list? You say you rebooted into Windows, but it's not on this list.

What would be better is the output from fdisk -l instead of what you have here, because stuff like (DELETED) doesn't tell us anything.

Last edited by Randux; 04-29-2006 at 03:45 PM.
 
Old 04-29-2006, 04:05 PM   #4
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
i dident know they made laptops with 183gb hard drives.

if the parttion was just removed and not formatted persay then you could just recreate the parttion with the same begining byte count and end byte count.


then mount it to recover data.

I do this alot when resizeing parttions with no data loss.

This of course if you remeber where the parttion started at
 
Old 04-29-2006, 05:05 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,251

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Don't like your chances for a simple recovery - the mke2fs will probably have used the same set of superblocks (BTW, I'm quite prepared to believe gparted would do this - expect it to in fact. That's why the GUIs are invented - to save people having to know what to do {next}).
Testdisk is designed for recovery after partition deletion - different issue.
Best bet might be to try some forensic software - I've seen good reports about foremost (on sourceforge), although I haven't tried it myself.
(exvor do the maths again - you've "double counted" the extended/logicals)
 
  


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
recoverying deleted data from ext3 partitions Thorrn4 Linux - Software 2 01-18-2006 04:50 PM
How to recover a deleted file from ext3 filesystem ? Honor Linux - Software 1 12-21-2005 12:36 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM
how to convert ext3 to ntfs? cannot even see ext3 partition parv Linux - Hardware 1 12-31-2004 02:56 PM
Frontend for recovering deleted files from ext3 filesystem jayakrishnan Linux - General 3 12-16-2004 02:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 PM.

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