How to save this Flash drive?

New to Debian (Or Linux in general)? Ask your questions here!

How to save this Flash drive?

Postby hack3rcon » 2020-08-01 08:45

Hello,
I have a flash drive that I can't copy files from it because it detached suddenly. How can I solve it?
I tried and got below result:
Code: Select all
$ sudo ddrescue -n -v -T 30 --min-read-rate=50k /dev/sdc1 image.dd
GNU ddrescue 1.23
About to copy 32237 MBytes from '/dev/sdc1' to 'image.dd'
    Starting positions: infile = 0 B,  outfile = 0 B
    Copy block size: 128 sectors       Initial skip size: 1954 sectors
Sector size: 512 Bytes

Press Ctrl-C to interrupt
     ipos:    2798 MB, non-trimmed:    7595 kB,  current rate:    147 kB/s
     opos:    2798 MB, non-scraped:        0 B,  average rate:    287 kB/s
non-tried:   32213 MB,  bad-sector:        0 B,    error rate:   7595 kB/s
  rescued:   15810 kB,   bad areas:        0,        run time:         54s
pct rescued:    0.04%, read errors:      281,  remaining time:  1d 16h 54m
 slow reads:        0,        time since last successful read:         n/a
Copying non-tried blocks... Pass 1 (forwards)
ddrescue: Input file disappeared: No such file or directory

And:
Code: Select all
$ sudo safecopy /dev/sdc1 out -M CoRrUpTeD
Low level device calls enabled mode: 1
Reported hw blocksize: 4096
Reported low level blocksize: 4096
Filesize not reported by stat(), trying seek().
File size: 32237420544
Blocksize: 4096
Fault skip blocksize: 65536
Resolution: 4096
Min read attempts: 3
Head moves on read error: 1
Marker string: CoRrUpTeD
Starting block: 0
Source: /dev/sdc
Destination: out
......!*** buffer overflow detected ***: safecopy terminated
Aborted

https://imgur.com/dTAfVHa
Thank you.
hack3rcon
 
Posts: 396
Joined: 2015-02-16 09:54

Re: How to save this Flash drive?

Postby pylkko » 2020-08-07 05:13

What does the kernel log say when it detaches?
User avatar
pylkko
 
Posts: 1779
Joined: 2014-11-06 19:02

Re: How to save this Flash drive?

Postby hack3rcon » 2020-08-12 13:07

pylkko wrote:What does the kernel log say when it detaches?

Is you mean the output of "dmsg" command?
hack3rcon
 
Posts: 396
Joined: 2015-02-16 09:54

Re: How to save this Flash drive?

Postby pylkko » 2020-08-12 14:04

yes, but logs in general might contain something useful
User avatar
pylkko
 
Posts: 1779
Joined: 2014-11-06 19:02


Return to Beginners Questions

Who is online

Users browsing this forum: Bulkley and 6 guests

fashionable