Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB crucial file recovery
Date: Mon, 29 Aug 2016 03:28:43
Message-Id: C3C3CCAC-6021-4619-89C2-D7D791B5153A@antarean.org
In Reply to: Re: [gentoo-user] USB crucial file recovery by Grant
1 On August 29, 2016 3:24:18 AM GMT+02:00, Grant <emailgrant@×××××.com> wrote:
2 >>> I have a USB stick with a crucial file on it (and only an old backup
3 >>> elsewhere). It's formatted NTFS because I wanted to be able to open
4 >>> the file on various Gentoo systems and my research indicated that
5 >NTFS
6 >>> was the best solution.
7 >>>
8 >>> I decided to copy a 10GB file from a USB hard disk directly to the
9 >USB
10 >>> stick this morning and I ran into errors so I canceled the operation
11 >>> and now the file manager (thunar) has been stuck for well over an
12 >hour
13 >>> and I'm getting errors like these over and over:
14 >>>
15 >>> [ 2794.535814] Buffer I/O error on dev sdc1, logical block 2134893,
16 >>> lost async page write
17 >>> [ 2794.535819] Buffer I/O error on dev sdc1, logical block 2134894,
18 >>> lost async page write
19 >>> [ 2794.535822] Buffer I/O error on dev sdc1, logical block 2134895,
20 >>> lost async page write
21 >>> [ 2794.535824] Buffer I/O error on dev sdc1, logical block 2134896,
22 >>> lost async page write
23 >>> [ 2794.535826] Buffer I/O error on dev sdc1, logical block 2134897,
24 >>> lost async page write
25 >>> [ 2794.535828] Buffer I/O error on dev sdc1, logical block 2134898,
26 >>> lost async page write
27 >>> [ 2794.535830] Buffer I/O error on dev sdc1, logical block 2134899,
28 >>> lost async page write
29 >>> [ 2794.535832] Buffer I/O error on dev sdc1, logical block 2134900,
30 >>> lost async page write
31 >>> [ 2794.535835] Buffer I/O error on dev sdc1, logical block 2134901,
32 >>> lost async page write
33 >>> [ 2794.535837] Buffer I/O error on dev sdc1, logical block 2134902,
34 >>> lost async page write
35 >>> [ 2842.568843] sd 9:0:0:0: [sdc] tag#0 FAILED Result:
36 >>> hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
37 >>> [ 2842.568849] sd 9:0:0:0: [sdc] tag#0 Sense Key : Hardware Error
38 >[current]
39 >>> [ 2842.568852] sd 9:0:0:0: [sdc] tag#0 Add. Sense: No additional
40 >sense
41 >>> information
42 >>> [ 2842.568857] sd 9:0:0:0: [sdc] tag#0 CDB: Write(10) 2a 00 01 04 a4
43 >>> 58 00 00 f0 00
44 >>> [ 2842.568859] blk_update_request: I/O error, dev sdc, sector
45 >17081432
46 >>> [ 2842.568862] buffer_io_error: 20 callbacks suppressed
47 >>>
48 >>> nmon says sdc is 100% busy but doesn't show any reading or writing.
49 >I
50 >>> once pulled the USB stick in a situation like this and I ended up
51 >>> having to reformat it which I need to avoid this time since the file
52 >>> is crucial. What should I do?
53 >>>
54 >>> - Grant
55 >>
56 >> Whatever you do, do NOT try to unplug the USB you were writing to
57 >unless you
58 >> first manage to successfully unmount it. If you do pull the USB
59 >stick
60 >> regardless of its current I/O state you will likely corrupt whatever
61 >file you
62 >> were writing onto, or potentially more.
63 >>
64 >> You could well have a hardware failure here, which manifested itself
65 >during
66 >> your copying operation. Things you could try:
67 >>
68 >> Run lsof to find out which process is trying to access the USB fs and
69 >kill it.
70 >> Then see if you can remount it read-only.
71 >>
72 >> Run dd, dcfldd, ddrescue to make an image of the complete USB stick
73 >on your
74 >> hard drive and then try to recover any lost files with testdisk.
75 >>
76 >> Use any low level recovery tools the manufacturer may offer - they
77 >will likely
78 >> require MSWindows.
79 >>
80 >> Shut down your OS and disconnect the USB stick, then reboot and try
81 >again to
82 >> access it, although I would first create an image of the device using
83 >any of
84 >> the above tools.
85 >
86 >
87 >dd errored and lsof returned no output at all so I tried to reboot but
88 >even that hung after the first 2 lines of output so I did a hard reset
89 >after waiting an hour or so. Once it came back up I tried to do 'dd
90 >if=/dev/sdb1 of=usbstick' but I got this after awhile:
91 >
92 >dd: error reading ‘/dev/sdb1’: Input/output error
93 >16937216+0 records in
94 >16937216+0 records out
95 >8671854592 bytes (8.7 GB) copied, 230.107 s, 37.7 MB/s
96 >
97 >It's a 64GB USB stick. dmesg says:
98 >
99 >[ 744.729873] sd 8:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK
100 >driverbyte=DRIVER_SENSE
101 >[ 744.729879] sd 8:0:0:0: [sdb] tag#0 Sense Key : Medium Error
102 >[current]
103 >[ 744.729883] sd 8:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read
104 >error
105 >[ 744.729886] sd 8:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 01 02 78 e0
106 >00 00 f0 00
107 >[ 744.729889] blk_update_request: critical medium error, dev sdb,
108 >sector 16939232
109 >[ 744.763468] sd 8:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK
110 >driverbyte=DRIVER_SENSE
111 >[ 744.763472] sd 8:0:0:0: [sdb] tag#0 Sense Key : Medium Error
112 >[current]
113 >[ 744.763474] sd 8:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read
114 >error
115 >[ 744.763478] sd 8:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 01 02 79 00
116 >00 00 04 00
117 >[ 744.763480] blk_update_request: critical medium error, dev sdb,
118 >sector 16939264
119 >[ 744.763482] Buffer I/O error on dev sdb1, logical block 4234304,
120 >async page read
121 >[ 744.786743] sd 8:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK
122 >driverbyte=DRIVER_SENSE
123 >[ 744.786747] sd 8:0:0:0: [sdb] tag#0 Sense Key : Medium Error
124 >[current]
125 >[ 744.786750] sd 8:0:0:0: [sdb] tag#0 Add. Sense: Unrecovered read
126 >error
127 >[ 744.786753] sd 8:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 01 02 79 04
128 >00 00 04 00
129 >[ 744.786755] blk_update_request: critical medium error, dev sdb,
130 >sector 16939268
131 >[ 744.786758] Buffer I/O error on dev sdb1, logical block 4234305,
132 >async page read
133 >
134 >I haven't tried to mount it yet. Any suggestions?
135 >
136 >- Grant
137
138 Try ddrescue.
139 It tries to skip the really bad parts.
140
141 Then try data recovery on copies of the resulting image file.
142
143 --
144 Joost
145 --
146 Sent from my Android device with K-9 Mail. Please excuse my brevity.

Replies

Subject Author
Re: [gentoo-user] USB crucial file recovery Grant <emailgrant@×××××.com>