LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 09-13-2009, 01:19 PM   #1
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware64 13.0
Posts: 60
Thanked: 9
Unhappy accidentally overwrote 1TB partition... any way to recover data? :(


[Log in to get rid of this advertisement]
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
windows_xp_2003 zuzoa is offline  
Tag This Post , , ,
Reply With Quote
Old 09-13-2009, 01:35 PM   #2
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 91
Thanked: 15
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
linuxgentoo sploot is offline     Reply With Quote
Thanked by:
Old 09-13-2009, 01:43 PM   #3
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware64 13.0
Posts: 60
Thanked: 9

Original Poster
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?
windows_xp_2003 zuzoa is offline     Reply With Quote
Old 09-13-2009, 01:49 PM   #4
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 91
Thanked: 15
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
linuxgentoo sploot is offline     Reply With Quote
Old 09-13-2009, 01:59 PM   #5
zuzoa
Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware64 13.0
Posts: 60
Thanked: 9

Original Poster
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
linux zuzoa is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 08:26 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration