So unfortunately my A1 mSD card died and I’m pissed. Its a 128GB.
Symptoms: Card is readable momentarily, but files cannot be moved. What files that are moved are only partially there, or if lucky, 2 or 3 things are copied over, along with the folder structure. But if you keep remounting it you can keep pulling data off of it.
How to fix: DDRescue.
DDRescue allows you to DD a mount point into an image file and if the device is skipping like mine, no problem, it just remounts and immediately goes back to the memory address it was polling.
While overkill, heres what I did, and what it looks like.
[dommer@d4rk and-sd]$ sudo ddrescue -d -r300 /dev/sdd recovery.img recovery.logfile
GNU ddrescue 1.25
Press Ctrl-C to interrupt
ipos: 61286 MB, non-trimmed: 0 B, current rate: 0 B/s
opos: 61286 MB, non-scraped: 0 B, average rate: 12698 kB/s
non-tried: 0 B, bad-sector: 30720 B, error rate: 5473 kB/s
rescued: 127865 MB, bad areas: 1, run time: 2h 47m 48s
pct rescued: 99.99%, read errors: 671775, remaining time: n/a
time since last successful read: 1s
Finished
D tells the program to use direct disk access and ignore the cache in kernel
r300 tells the program to retry up to 300 times
and it dumps to an img I can shoot back into another SD card. I even get a handy dandy log file to read. This is what was in it:
# Mapfile. Created by GNU ddrescue version 1.25
# Command line: ddrescue -d -r300 /dev/sdd recovery.img recovery.logfile
# Start time: 2020-06-15 04:32:43
# Current time: 2020-06-15 07:20:31
# Finished
# current_pos current_status current_pass
0xE44F08A00 + 300
# pos size status
0x00000000 0xE44F08800 +
0xE44F08800 0x00007800 -
0xE44F10000 0xF806F0000 +
Only thing is I wish I could open the img file but engrampa doesn’t seem to want to. Maybe another program would, but honestly ATP I just have to hope all my data is there as I need a new SD card anyways. I think the one I have is completely fried, which really pisses me off. I don’t want to buy another dumbass shitty storage medium that’ll just die in another 2 years.
So I ask yall, now after a small tutorial and rant, whats a good SD card thats like 128-256GB that won’t die from a flipped bit?
Alternatively, is there any way I can fix my skipping SD card that I currently have?