[SOLVED] How to recover formatted external USB drive?
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.
Well, I guess today was the Day of the Dodo for me. I have an external 1TB USB drive attached to my computer running Linux Mint. Lots of files on this external drive. I placed a RW CD in my CD drive, right clicked and chose "format." By the time I noticed that the volume label during format was labeled "USB Stick" it was too late - I had formatted my external TB drive.
I don't understand how I could click on the CD drive icon to format and end up with another disc being formatted. I suppose it's my punishment for not using command line tools more often.
In any case, is there a way to recover the formatted drive - or at least the data that was on there? Unfortunately I do not remember the file system I used on the external drive. I know there are a lot of data recovery tools out there - not sure which one would be best in this situation.
Any assistance will be greatly appreciated. Thanks.
Thanks Jefro. I tried installing using Synaptic but I can't find it anywhere in the start menu. Also downloaded and extracted manually but can't figure out how to run it. Is this a GUI tool?
I prefer its stablemate photorec - more user-friendly when you need to get back a lot of files. Formatting typically doesn't over-write a lot of the disk, just enough to lay down the required meta-data. Still screws the previous meta-data of course - but a (very) large proportion of your data should be recoverable.
You will need another terabyte somewhere to recover to - and all the filenames will be lost. And it will take a while (maybe weeks) for you to sift through it all.
@syg00 All filenames lost? I may have to just chalk this up to experience and move on. <sigh> Not sure it will be worth the time and effort. Mostly mp3 files that I could possibly get back over time. In the words of that great blues-rock guitarist, Johnny Winters: "Serve me right to suffer."
Phhht - give it a go.
For the mp3 you should be able to pull enough data out of the internal tags to get something workable. Fair bet someone has already posted a script to do it all for you. I don't use mp3, but I'd be mighty surprised if not.
@syg00 Okay, that's a little more encouraging news. As soon as I have the time I'll give it a try. At least it's good to know there are tools out there for this scenario. Thanks again.
The photorec wiki has some tutorials - go to the bottom of this page for a exiftool one-liner to loop over a dir that will have recovered files in. Tagged files like that are a god-send for this sort of thing - lots of other formats, you have to scan the data itself.
One more thing regarding formatting a RW CD. When I right click on the CD icon on the desktop and choose Format there is no option to choose the CD drive. My mistake was assuming that it would default to the CD drive because that's the icon I was clicking - which would have been the case if I were doing this on a Windows machine. Upon closer inspection, the only options are external USB drives connected to the computer. This makes no sense to me. Can anyone explain? Thanks.
I've never seen an instance where testdisk returned no information. It usually has quite a bit of things it can recover. A format ought to return almost every file.
I can't replicate what you have on the CD. A CD ought to be a CD (optical drive). One may find it easier to use CD/DVD disc program that may help over a file manager.
If one booted to a live usb I guess it could see it's on usb as a cd??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.