[SOLVED] USB hard drive not seen by file managers after flub. Need to save or copy data from it....
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.
Testdisk can be run interactively, and can test every sector of the disk.
Simply issuing the command as "testdisk" with no arguments will start the interactive mode, then you can select the device to test, etc.
I don't know what you have done so far, nor what results you have seen, but I thought you said testdisk was running. At least that was your statement in post 4.
I would recommend you start it in interactive mode. By default it creates a log, and you can let it run overnight, or until it finishes, then you will have the log to look at and hopefully get good info about the partitions.
If you have successfully recovered your data from the drive and simply want to use it again, the first step would be to use GParted since you are familiar with it and create a partition table by clicking the Device tab and selecting the type partition table then create partitions of the type and size you want. The link below is to the GParted online manual which explains everything in detail.
If the data was recovered as you said above and is stored someplace else then go ahead and use gparted to create the new partition. If it was only one partition then the new partition should be aligned as the original was and the format may give you back the data since it does not overwrite everything. Even if the data is not still accessible the recovered data can be restored.
There will be a difference if it was originally ntfs and you switch it to ext4 or vice versa, but as long as the new partition is done in the same format as the original you should be OK.
One thing to consider is that windows cannot use a drive that is ext4 so if you used it on windows previously then it had to be ntfs. That means you should use the windows disk manager to configure the unallocated space and you should be good to go. If you did not use it in windows then it likely was ext4 and should be partitioned in linux.
There is never a guarantee the data will be there when you are recovering a partition, but it usually is.
Testdisk can also be used to recover data, but will not necessarily give you back the original file names.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.