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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-13-2009, 12:19 PM
|
#1
|
Member
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159
Rep:
|
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 
|
|
|
09-13-2009, 12:35 PM
|
#2
|
Member
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121
Rep:
|
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.
|
09-13-2009, 12:43 PM
|
#3
|
Member
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159
Original Poster
Rep:
|
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?
|
|
|
09-13-2009, 12:49 PM
|
#4
|
Member
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121
Rep:
|
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.
|
09-13-2009, 12:59 PM
|
#5
|
Member
Registered: Nov 2008
Location: USA
Distribution: Arch 64-bit
Posts: 159
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|