Easiest Way to Mount an Image File
The following command works:
sudo losetup /dev/loop0 /home/pgmaudio/2016-11-25-raspbian-jessie-lite.img
When one does
fdisk -l /dev/loop0 the result is sensable:
Device Boot Start End Blocks Id System
/dev/loop0p1 8192 137215 64512 c W95 FAT32 (LBA)
/dev/loop0p2 137216 2715647 1289216 83 Linux
If you try something like
sudo mount /dev/loop0 p2 /mnt
The report is that it doesn't exist and ls /dev/loop0* only shows
the original loop0 loopback device. I looked through all of /dev
such as /dev/mapper and there seems to be nothing else pertaining
to loop0 so what am I missing?
I have tried this on the debian raspbian image above plus
some images I created with dd from the sd card of a working
raspberry pi and both images showed up with fdisk -l but nothing
else.
Thanks for any constructive ideas.
Martin McCormick
Reply to: