bindfs, inverse operation?
Asked Answered
H

2

9

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.

Historical answered 12/10, 2013 at 15:52 Comment(0)
D
14

you can use umount

sudo umount ~/$1
Diazole answered 15/12, 2013 at 2:54 Comment(0)
B
8

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

Beichner answered 1/12, 2015 at 20:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.