[SOLVED] accidentally overwrote 1TB partition... any way to recover data? :(
Linux - NewbieThis 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.
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.
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?
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.