Can not unmount an S3 directory mounted with s3fs-fuse
14,470
Solution 1
You can use lsof
to figure out which files are still open.
Solution 2
The command that worked was:
umount -l /mnt/s3
Related videos on Youtube
Author by
AKWF
I have been developing in Ruby on Rails for over 10 years. I'm focusing on developing reusable APIs with Grape API in Ruby. I have 25 years of experience with relational databases including Oracle, MySQL, and Postgres. I have been programming computers since I received a Commodore 64 in the early 1980s.
Updated on September 18, 2022Comments
-
AKWF over 1 year
I have an s3fs-fuse "device" mounted at
/mnt/s3
. I want to unmount it so that I can remount it with themp_umask
flag so thatchroot
will work properly.The command should be:
fusermount -u /mnt/s3
Unfortunately the result is:
fusermount: failed to unmount /mnt/s3: Device or resource busy
That's not helpful. Shouldn't be this hard!
-
Andrew Gaul over 5 yearsThis might not unmount the filesystem if one of the opens is long-lived; it is better to actually close the open files.
-
Aftab Naveed almost 5 yearsIn my case there were no open files, unmounting using that command did work for me.