Re: 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]

 



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



[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