What happens if you mount to a non-empty mount point with fuse?

后端 未结 5 1475
小鲜肉
小鲜肉 2020-12-28 13:54

I am new to fuse. When I try to run a FUSE client program I get this error:

fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the \'nonem         


        
5条回答
  •  再見小時候
    2020-12-28 14:25

    For me the error message goes away if I unmount the old mount before mounting it again:

    fusermount -u /mnt/point
    

    If it's not already mounted you get a non-critical error:

    $ fusermount -u /mnt/point
    
    fusermount: entry for /mnt/point not found in /etc/mtab
    

    So in my script I just put unmount it before mounting it.

提交回复
热议问题