Originally Posted by david_8274
It is possible to select the loop device to use by giving the option ”-o loop=/dev/loop0”.
After creating the filesystem for the file called output
, create or use a loop device like so. In this example I will be using using loop1. Must be root
losetup /dev/loop1 output
To mount the filesystem, type
mount /dev/loop1 /mnt
/mnt is use here as an example of the mount point.
When done using the filesystem, unmount it and unmap the loop device.
losetup -d /dev/loop1
I use this method myself but I use an encrypted file to mount with a loop device.
Hope this helps