How can you unmount or unjoin a unionfs path?

Dan Mandle asked:

I was able to set up a unionfs path but realized I wanted to change it. I can’t seem to overwrite, unmount, or move the unionfs target directory. Is there a command that a non-root user (who set up the union) to change it?

[email protected] ~ $ unionfs \
   -o cow \
   -o statfs_omit_ro \
   /home/myuser/files/pre-upload:/home/myuser/gd-media=RO \
   /home/myuser/union-media

fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option

[email protected] ~ $ umount /home/myuser/union-media
umount: /home/myuser/union-media: Permission denied

[email protected] ~ $ mv union-media OLD-union-media
mv: cannot move 'union-media' to 'OLD-union-media': Device or resource busy

My answer:


I would try fusermount -u mountpoint. This is the direct command to unmount a FUSE filesystem.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.