LinuxQuestions.org
Review your favorite Linux distribution.
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-13-2009, 12:19 PM   #1
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Rep: Reputation: 35
Unhappy accidentally overwrote 1TB partition... any way to recover data? :(


I was going to install linux onto my flash drive, and forgot I had my external 1TB drive plugged in... I didnt bother looking at the numbers, and I saw it was a FAT partition, so I deleted the partition in cfdisk, and made a new ext3 partition over it.

AFAIK the data is still there, but the references to the files are gone? Is there any way to recover it?

Should I go back into cfdisk, delete the ext3 partition, make a fat32 one and go from there?

Please help, somebody
 
Old 09-13-2009, 12:35 PM   #2
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Did you overwrite (ie. replace all the data) or simply do something like a reformat or the filesystem?

If you have only changed the fs type in cfdisk, then you have only altered the MBR. If you change the type back to FAT then you should have all the data still present. If you have done subsequent writes to the disc, after having changed the fs type then you will encounter problems with data loss.

--Sploot
 
1 members found this post helpful.
Old 09-13-2009, 12:43 PM   #3
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Original Poster
Rep: Reputation: 35
Thank you so much for replying. I am fairly certain I haven't replaced all the data, seeing as the process took only a second or two. I have not written anything to the partition since changing it.

Is there another way I should change it back, besides deleting the ext3 partition and creating a fat32 partition? Any certain command like mkfs or something?
 
Old 09-13-2009, 12:49 PM   #4
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Change it just like you did the first time. Delete the partition record, and replace it with the what was there to begin with.

Have you run mkfs.ext3 on it yet?

--Sploot
 
1 members found this post helpful.
Old 09-13-2009, 12:59 PM   #5
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159

Original Poster
Rep: Reputation: 35
I haven't run mkfs.ext3 myself but cfdisk might have used it when I overwrote it originally.

I just booted up into the livecd and ran cfdisk again, deleted the partition and rewrote it as fat32, booted up my OS and the files are all still here

Thank you again for your help. I don't know what kind of crazy things I would have done to try to recover the data otherwise :X
 
  


Reply

Tags
deleted, partition, recover


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
Oops, I accidentally deleted my NTFS partition!!! How to recover? WindowBreaker Linux - Newbie 1 07-03-2009 07:28 PM
Accidentally Formatted NTFS Partition... Looking to Recover Data Adam A Flynn Linux - Software 5 08-13-2006 11:59 AM
Accidentally overwrote /bin/sh roastedmnm Suse/Novell 5 07-26-2005 02:37 AM
Help needed to recover data from ext3 file system where mkfs was issued accidentally kapilsampath Linux - General 4 04-26-2005 07:52 AM
help: accidentally overwrote on crontab auden Slackware 1 02-14-2005 06:40 AM


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