losetup failed to set up loop device while rescuing a SD card that does not mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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-error-failed-to-setup-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






_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux