user decided to reboot his pc during copy from usb stick and it corrupted his precious data. I'm trying to diagnose what's wrong but unfortunately i hit a wall and can't understand the issue with the stick.
I can see this disk in Disk Utility, but seems like all it has is unallocated space.
sudo fsck /dev/sdc
fsck from util-linux 2.27.1
e2fsck 1.42.13 (17-May-2015)
fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/sdc
Could this be a zero-length partition?
fdisk -l /dev/sdc
fdisk: cannot open /dev/sdc: Input/output error
Any help would be greatly appreciated.
dmesg /syslog
:
[ 6073.351716] sd 6:0:0:0: [sdc] tag#0 Sense Key : Not Ready [current]
[ 6073.351719] sd 6:0:0:0: [sdc] tag#0 Add. Sense: Medium not present
[ 6073.351722] sd 6:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 00 76 c6 80 00 00 08 00
[ 6073.351724] blk_update_request: I/O error, dev sdc, sector 7784064
[ 6073.351726] Buffer I/O error on dev sdc, logical block 973008, async page read
He tried to copy around 500mb of work files from that stick, it froze and he rebooted "Just in case". As far I know that was the only copy of those files. Is there any way to try to restore data?
It's getting weirder and weirder. I gave up with restoring data and tried to wipe this stick with shred or dd. Outputs:
shred: /dev/sdd: error writing at offset 19218807296: Input/output error
shred: /dev/sdd: error writing at offset 19218807808: Input/output error
dd: error writing '/dev/sdc': Input/output error
1+0 records in
0+0 records out
0 bytes copied, 0,00123257 s, 0,0 kB/s
Tried to format on Win workstation, cant even plug it in or access through cli, got over hundred "Wrong folder name errors" in a few seconds.
cannot open /dev/sdc: Input/output error
- it's broken. Try a different USB controller/port/hub/cable/computer. If still nothing, it's garbage. Unless it's a hard drive in a USB enclosure, in that case take it out & try it directly. – Xen2050 Nov 21 '17 at 09:36dmesg
/syslog to confirm more error messages, but if nothing reads then it really sounds broken. Maybe the user rebooted because the copying was already frozen, and it was already broken... at least the original data's still on the main hard drive – Xen2050 Nov 21 '17 at 10:45How can i close this question?
– Qqqq Nov 23 '17 at 07:56