On September 22, 2019 8:07:21 AM PDT, Ranjan Maitra <maitra@xxxxxxxxx> wrote: >$ sudo losetup -f -P /home/maitra/SD_card_rescue.img >losetup: /home/maitra/SD_card_rescue.img: failed to set up loop device: >No such file or directory That file didn't exist like it says. >$ sudo mount -o loop /home/maitra/SD_card_rescue.log /mnt/test > >But now I get: > >mount: /mnt/test: wrong fs type, bad option, bad superblock on >/dev/loop0, missing codepage or helper program, or other error. > >So, I looked at (as per >https://askubuntu.com/questions/634501/cant-mount-iso-file-as-loop-device-error-failed-to-setup-loop-device): > >$file /home/maitra/SD_card_rescue.log > >and I got: > >/home/maitra/SD_card_rescue.log: DOS/MBR boot sector; partition 1 : >ID=0x83, start-CHS (0x0,32,33), end-CHS (0x3ec,254,63), startsector >2048, 16143277 sectors You wrote the image to that file. Losetup on that file should work like you expect. _______________________________________________ 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