I've been googling at this all night and have found multiple conflicting methods of recovering/formatting/saving corrupt SD cards but i'm a complete n00b with both Raspberry Pi and Linux.
Basically my son was playing games in retropie and accidentally yanked out the power cable and corrupted the SD card. I don't mind replacing the SD card, i don't mind reinstalling retropie and setting the whole thing up again. The only thing that is annoying me is that i've spent quite a few months playing FFVII with my daughter and we're on disk 3 trying to 100% everything as i did once upon a time. I'd very much like to retrieve the SRM save file so we can continue. Yes should have backed up etc. I know....
My understanding so far is that the best way to attempt this is from terminal commands in Linux so i've created a bootable Linux USB and i can run this on my Macbook (it has an SD card slot, my PC does not). I'll try and type up as much of what i've done so far to help outline where i am with this.
When i put the SD card in, nothing happens (when i put in a known good SD card, it pops up on the desktop right away). I know mine is corrupt and i don't expect it to work as the known good one does but i'm hoping that somehow there is a way to get a single file off it if possible.
When i run
sudo fdisk -l with the known good card in, it shows up as
/dev/sdc (/sda is my internal SSD, /sdb is my memory stick with ubuntu) so i'm assuming the bad card with be sdc also.
I've seen people on forums tell people to use
dmesg to look for something but i'm not sure what i'm supposed to be looking for and they weren't clear. Is this relevant:
[ 8.001985] scsi 0:0:0:0: Direct-Access APPLE SD Card Reader 3.00 PQ: 0 ANSI: 6 [ 8.002209] sd 0:0:0:0: Attached scsi generic sg1 type 0 [ 8.128452] scsi 2:0:0:0: Direct-Access TDK LoR TF10 1.00 PQ: 0 ANSI: 2 [ 8.128696] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 8.128892] sd 2:0:0:0: [sdc] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB) [ 8.129087] sd 2:0:0:0: [sdc] Write Protect is off [ 8.129089] sd 2:0:0:0: [sdc] Mode Sense: 03 00 00 00 [ 8.129288] sd 2:0:0:0: [sdc] No Caching mode page found [ 8.129290] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 8.131211] sdc: sdc1 sdc2 [ 8.132065] sd 2:0:0:0: [sdc] Attached SCSI removable disk
Can somebody please guide me on what to do next in my attempt to read data from the SD card? How to first test if it is even possible then what to do next etc. I'd greatly appreciate it!