How can you unmount or unjoin a unionfs path?

Posted on

How can you unmount or unjoin a unionfs path? – A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about How can you unmount or unjoin a unionfs path? was one problem in server stack that need for a solution. Below are some tips in manage your linux server when you find problem about linux, unionfs, , , .

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?

myuser@maven ~ $ 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

myuser@maven ~ $ umount /home/myuser/union-media
umount: /home/myuser/union-media: Permission denied

myuser@maven ~ $ mv union-media OLD-union-media
mv: cannot move 'union-media' to 'OLD-union-media': Device or resource busy

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

Leave a Reply

Your email address will not be published.