I have a file with an ext4 file system in it and want to mount it without using sudo every time (the script should run with user rights). The file I want to mount and the folder which I want to mount it too both are in my home directory which is encrypted, so I can't put the file location into /etc/fstab
.
I tried fusermount
but I always get error messages like "fusermount: extra arguments after the mountpoint".
Best Answer
You can use
udiskctl
:Now, your file is mapped to a
block device
, and you can mount it as:when you're done, unmount is using:
finally, delete it by:
Have fun!