Search code examples
linuxubuntufilesystemsfuse

Mount loop device with FUSE


So let's say I have a file attached to a loop device /dev/loop1 how could I mount that using fuse (filesystem in user space) ?


Solution

  • If you're using fuse, you don't need a loop device at all, and can directly mount the file itself. So, you can do either this:

    $ sudo ext4fuse test.ext4 /mnt
    

    Or, if for some bizarre reason you really want to use a loop device, this:

    $ sudo losetup /dev/loop0 test.ext4
    $ sudo ext4fuse /dev/loop0 /mnt