Hi,
I have been trying to rescue the files from a SD card that is connected to a USB adapter,
and that can not mount in the usual way because I guess it is corrupt (complains of no
read-write permission even though the SD card is unlocked).
Following the instructions here:
https://blog.tinned-software.net/rescue-data-from-corrupt-sd-card/
I get:
$ sudo ddrescue -f /dev/sda SD_card_rescue.log
GNU ddrescue 1.23
Press Ctrl-C to interrupt
ipos: 322563 kB, non-trimmed: 0 B, current rate: 64000 B/s
opos: 322563 kB, non-scraped: 0 B, average rate: 1178 kB/s
non-tried: 0 B, bad-sector: 19968 B, error rate: 0 B/s
rescued: 8270 MB, bad areas: 26, run time: 1h 56m 58s
pct rescued: 99.99%, read errors: 78, remaining time: 0s
time since last successful read: n/a
Finished
However, when I try:
$ sudo losetup -f -P SD_card_rescue.img
losetup: SD_card_rescue.img: failed to set up loop device: No such file or directory
Adding the full path name for the SD_card_rescue.img does not change the error.
I looked around a bit and tried the following:
https://askubuntu.com/questions/634501/cant-mount-iso-file-as-loop-device...
It does not per se use losetup but I still get the same error.
Any suggestions? I am on an updated F30.
Many thanks and best wishes,
Ranjan