[SOLVED] Is there hope? Trying to rescue some files from damaged NTFS harddrive that doesn't mount.
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
[166630.289845] sd 7:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK
[166630.289854] sd 7:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 00 5b e7 00 00 00 f0 00
[166630.289858] blk_update_request: I/O error, dev sdc, sector 6022912
[166630.289861] buffer_io_error: 230 callbacks suppressed
[166630.289864] Buffer I/O error on dev sdc1, logical block 6020864, lost async page write
[166630.289869] Buffer I/O error on dev sdc1, logical block 6020865, lost async page write
[166630.289872] Buffer I/O error on dev sdc1, logical block 6020866, lost async page write
[166630.289874] Buffer I/O error on dev sdc1, logical block 6020867, lost async page write
[166630.289877] Buffer I/O error on dev sdc1, logical block 6020868, lost async page write
[166630.289880] Buffer I/O error on dev sdc1, logical block 6020869, lost async page write
[166630.289883] Buffer I/O error on dev sdc1, logical block 6020870, lost async page write
[166630.289885] Buffer I/O error on dev sdc1, logical block 6020871, lost async page write
[166630.289894] Buffer I/O error on dev sdc1, logical block 6020872, lost async page write
[166630.289897] Buffer I/O error on dev sdc1, logical block 6020873, lost async page write
[166661.204065] usb 3-1: reset high-speed USB device number 4 using ehci-pci
"smartctl -a /dev/sdc" and
"fdisk -l /dev/sdc" both non-responding.
I've started mirroring the device using "ddrescue", which will take days. Is there any chance the copy will mount or a least give access to some files? (Sending the drive to a data rescue service isn't an option)
Make certain that you have ONE OR MORE good backups first. I would try ntfsfix (it is linked to fsck.ntfs on some systems). Then, if there are still issues, you might try something like photorec to recover files.
If you have a Windows machine where it can be checked using the Microsoft tools, that is also a valid option. I assume you do else why have an NTFS drive.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
From your output above, it looks like at best the drive has bad sectors, at worst, it's failing altogether.
So trying to "fix" the filesystem might actually be making things worse, and lesson the chances of recovering the data on it.
Your first step should be to verify whether the drive itself is healthy or not, before trying to "fix" the filesystem on it. In any case, and as said above, use Windows itself to fix NTFS, not Linux.
Try checking it's SMART status before doing anything else;
Code:
smartctl -a /dev/sdX
Replace "sdX" with the correct device node for that drive. If you get a "command not found" or similar error message from the shell when trying to run the above command, install the smartmontools package. Also, you'll need to run the above command either as the root user, or with "sudo" in front of the above command, depending on your distribution.
NTFS?
Stop right there, and use Windows tools to rescue your data.
Because NTFS is Windows' baby, and Linux support will always be sub-optimal.
meh,
I've recovered data from many dead ntfs drives using linux
( but this one looks very pooched )
you could try to ddrescue partitions instead of the whole drive
But sometimes drives are just dead
it could be the PCB , which you could replace with a matching PCB, but this is complicated by the fact that you may have to replace fw chip on the new pcb with one from the old.
If the data is valuable consider a professional service.
if the expense can not be justified then wait for ddrescue, then clone the image and work with the clone
Thanks so far!
* I've tried "smartctl -a /dev/sdX", but this leads to a hanging, unkillable process, same as "fdisk -l".
* My main question is: Is it worth the time to run ddrescue for 2 weeks, or will the resulting filesystem most likely be broken anyway?
* Unfortunately I had stopped the ddrescue-process today to make more attempts to mount the drive, but this didn't work and now ddrescue only reads errors. Could it be that "mount" damaged the drive more than 3 days of "ddrescue"?
* I'm surprise to hear that windows-tools are so much better at dealing with this. Thanks for the advice
Thanks so far!
* I've tried "smartctl -a /dev/sdX", but this leads to a hanging, unkillable process, same as "fdisk -l".
* My main question is: Is it worth the time to run ddrescue for 2 weeks, or will the resulting filesystem most likely be broken anyway?
* Unfortunately I had stopped the ddrescue-process today to make more attempts to mount the drive, but this didn't work and now ddrescue only reads errors. Could it be that "mount" damaged the drive more than 3 days of "ddrescue"?
* I'm surprise to hear that windows-tools are so much better at dealing with this. Thanks for the advice
ddrescue skips past the good that it has already recovered
so you may be just seeing the bad, if that is lots my guess is that drive is very broken
not much you can do, sorry
you could try to ddrescue partitions instead of the whole drive
There's only one partition. It'd be great to rescue a few files - but I suppose this isn't happening as the drive can't even be mounted, right?
Quote:
it could be the PCB , which you could replace with a matching PCB, but this is complicated by the fact that you may have to replace fw chip on the new pcb with one from the old.
The drive has been running smoothly during the ddrescue-attempt, wouldn't a hardware problem seem unlikely then?
Quote:
if the expense can not be justified then wait for ddrescue, then clone the image and work with the clone
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
If smartctl is hanging, then that's a bad sign. IMO it sounds like the drive is on it's way out, and is indeed failing altogether. smartctl gets the drive's SMART status from the drive itself, as SMART is built into the drive itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.