LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2017, 02:30 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Question: Trying to pull data off a drive with hardware failures


I am trying to pull data off of a friend's hard drive. Looks like a hardware error. I pulled the drive out of his Windows 10 box (failed to boot there). Put it into an external enclosure and I'm now trying to pull data off it attached via USB3 to my Linux box. When I attempted to mount it, it complained that the drive was "hibernated" and refused to mount it, so I then mounted it read-only, and that worked.

mount -t ntfs-3g -o ro /dev/sdd3 /mnt/Windows

Data is copying VERY SLOWLY. I'm using the "cp" command on his "Pictures" directory currently, since that is his most important. It will probably take 25 years to transfer the data he has at this rate, if it doesn't just stall out completely and die first. e.g., 15 minutes so far to pull off only 20 JPG's, each about 1.5Mb.

Is there any hope for this drive, or should I just give up?

"dmesg" is showing this:

Code:
[1108890.623816] xhci_hcd 0000:02:00.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
[1108890.623835] xhci_hcd 0000:02:00.0: @000000012963d710 00000000 00000000 1b000000 01038001
[1108890.623929] sd 22:0:0:0: [sdd] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[1108890.623939] sd 22:0:0:0: [sdd] tag#0 Sense Key : Hardware Error [current] 
[1108890.623949] sd 22:0:0:0: [sdd] tag#0 Add. Sense: Internal target failure
[1108890.623958] sd 22:0:0:0: [sdd] tag#0 CDB: Read(10) 28 00 01 ad c9 18 00 00 20 00
[1108890.623965] blk_update_request: critical target error, dev sdd, sector 28166424
Now, cp is spitting out the following errors, one after the other mostly, but occasionally a file will successfully copy:

Code:
cp: cannot stat 'Pictures/2015-03-18/029.JPG': Input/output error
Once I killed the cp and tried to unmount the drive (no activity on it at this point), it took over a minute to finally unmount. I didn't try force, not yet anyway, I just let umount run it's course and it finally worked.

I have not tried a raw copy, like ddrescue, yet. Not sure if that would do any better. I was hoping to avoid a 1Tb raw copy when his whole computer - OS, apps and user data - is only using 75Gb. And most of that he doesn't care about. Just the pictures really. I haven't tried something like photorec either, since the directory structure on the disk, at least the parts I have seen, looks OK. I can go into and out of his directories, list files etc., and that all works fine. I just can't seem to pull those files off, after listing them.

Oh no ... I just now powered down the drive, then reconnected it, and now it's not even showing anything in dmesg, so I can't mount it or run smartctl on it.

Oh well, I guess it's dead.
 
Old 04-27-2017, 03:46 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
You can try the freezer trick on it:

https://www.pcmech.com/forum/threads.../#post-1078281
 
Old 04-27-2017, 08:36 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by haertig View Post
I am trying to pull data off of a friend's hard drive. Looks like a hardware error. I pulled the drive out of his Windows 10 box (failed to boot there). Put it into an external enclosure and I'm now trying to pull data off it attached via USB3 to my Linux box. When I attempted to mount it, it complained that the drive was "hibernated" and refused to mount it, so I then mounted it read-only, and that worked.
if that is a windows OS no longer in a computer to boot it?
if you can what I do with my dual boot - go into power setting advance and turn off everything that even looks like hibernate, the do a complete shut down --

I read it is because when it is in Hibernate something about their are files do not get closed properly, to be accessed in that state, so Linux will not allow it to be access so it not damage files due to that state windows was left in.
 
Old 04-27-2017, 10:02 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Original Poster
Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by BW-userx View Post
if that is a windows OS no longer in a computer to boot it?
The disk WAS in a Windows computer, but would not boot. Usually nothing but black screen attempting to boot (after you saw the POST messages go by). One time there was a screen saying bad things were happening (before boot). I can't remember the wording because it was only once, and went to black screen before I could read it. I was able to get into BIOS, and the disk was recognized there. It was non-bootable for several attempts, so we gave up and I took the HDD out of my friends computer and tried to do with it what I could over at my house. Which didn't amount to much.
 
Old 04-28-2017, 09:36 AM   #5
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
You're I take it using Linux to try and do this. I wonder if you plug it in to another windows PC as an external it'd accept it?

If it does then you have to play with the Windows permissions to over take it as Admin. like Linux Root gets everything.

Last edited by BW-userx; 04-28-2017 at 09:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compare files and pull out required data? ldapguy Linux - General 4 11-10-2010 06:14 AM
Detecting Hardware Failures numbers1thru9 Linux - Hardware 1 09-26-2007 11:24 PM
gnuplot, pull X data from file, specify Y data at cmd line? hedpe Programming 5 03-15-2007 11:32 PM
HARDWARE failures? read me: penguinlnx Linux - Hardware 2 04-22-2005 02:48 PM
using DD to pull records out of a data file fhinkle Linux - Newbie 6 02-24-2005 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration