Is there a way to mount loop device without sudo? Some kind of FUSE option?<p>It's useful as a workaround for 32-bit applications which aren't built with LFS (Large File Support) enabled, and because of that fail on large XFS partitions. It's a very common bug in games which come out in 32-bit only. Making a loop device is a workaround, but using sudo for it all the time is annoying.<p>Also, there is probably no need to explicitly create a loop device, unless you already used up all existing ones (see man mount):<p><pre><code> if no explicit loop device is mentioned (but just an
option `-o loop' is given), then mount will try to find
some unused loop device and use that, for example
mount /tmp/disk.img /mnt -o loop
</code></pre>
I.e. in such case I simply create an empty file of certain size, then format it with some filesystem, and then mount it as a loop.<p>For example:<p><pre><code> dd if=/dev/zero of="$image" bs=1024K count="$img_size"
mkfs.xfs "$image"
sudo mount -o loop "$image" "$mount_path"
sudo chown $USER:$USER "$mount_path"</code></pre>