Linux

如何解除安裝或取消加入 unionfs 路徑?

  • January 10, 2019

我能夠設置一個 unionfs 路徑,但意識到我想改變它。我似乎無法覆蓋、解除安裝或移動 unionfs 目標目錄。是否有一個非 root 使用者(誰設置了聯合)來更改它的命令?

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

我會嘗試fusermount -u mountpoint。這是解除安裝 FUSE 文件系統的直接命令。

引用自:https://serverfault.com/questions/948368