Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bindfs, inverse operation?

In my .bashrc I have

function bindfs () {
  mkdir -p ~/$1
  sudo /usr/bin/bindfs -u $(id -u) -g $(id -g) $1 ~/$1
}

in order to be able, as a normal user, to read, write, execute files on ext3 file systems auto-mounted below /media/. This works fine.

However, I would like to know the inverse operation of bindfs. Otherwise I cannot umount the USB storage media before unplugging.

like image 1000
AlexG Avatar asked Oct 12 '13 15:10

AlexG


2 Answers

you can use umount

sudo umount ~/$1
like image 172
Yi Wang Avatar answered Oct 14 '22 12:10

Yi Wang


bindfs is FUSE filesystem and can be used from non-privileged users is

user_allow_other

is set in /etc/fuse.conf.

It's natural counter-part is

fusermount -u

that can be run by standard users, as well

like image 31
Ork Avatar answered Oct 14 '22 11:10

Ork