Bad NTFS or FAT32 drive, badblocks and fsck to the rescue?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Bad NTFS or FAT32 drive, badblocks and fsck to the rescue?
Have a bad hard drive, was used on a Windows machine so probably NTFS or maybe FAT32. I think it may have been throwing CRC errors previously. Is there any combination of badblocks, fsck, or anything else I could use to try to rescue the data on there?
Right now on sdc, it easily mounts and shows data on 2 of the 3 partitions, and of course the third partition is the one with the data this person needs. blkid doesn't even show the partition either I don't believe, so it must be in real bad shape.
Before you attempt any data recovery, I would suggest that you first clone the disk so that you can revert to it if any of the data recovery attempts cause more damage.
ddrescue has begun. i couldn't find a gddrescue command anywhere, so i'm must be missing something or misunderstanding even though it installed right. but i'll see where this gets me and post back when it finishes, or if it ever does
It's useful to remember that a package name is not necessarily reflected in the name(s) of the command(s) provided by that package. In this case, the package is gddrescue but the principal command supplied is ddrescue.
Just to muddy the waters (purely for info - skip this bit if you don't want to get confused), there are actually two parallel but separately-developed packages - dd_rescue and GNU ddrescue (gddrescue) - see https://askubuntu.com/questions/2115...-and-dd-rescue
Perhaps you could go and watch some flowers grow while the cloning is taking place.
to give an update, ddrescue is now on the "splitting failed blocks" phase. of the 500GB drive it says it rescued about 499.5GB with about half a GB of errors. It's going on 16 hours since time of last successful read though. I guess I can keep letting it run, but what should my next steps be once it finishes?
to give an update, ddrescue is now on the "splitting failed blocks" phase. of the 500GB drive it says it rescued about 499.5GB with about half a GB of errors. It's going on 16 hours since time of last successful read though. I guess I can keep letting it run, but what should my next steps be once it finishes?
I would say back up the recovered data to another device asap. Then check the data to determine what has actually been recovered, randomly checking that files are valid by opening them. If you feel that there are any missing files which are absolutely crucial then you can try other recovery procedures on the original disk but you may not be successful. After you've gone as far as you can go, throw the old hard disk away and take some photos of the tree you planted in a previous post.
The first thing that I would do with any modern device is to check the SMART logs. This is firmware on-board the device itself which is constantly watching for problems, and which can perform various operations such as swapping-out bad sectors (invisibly to the host).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.