How to uninstall s3fs package in Linux system

In this post we will learn, how to uninstall s3fs package in Linux system.The method is simple and require some attention before executing the command.

What is s3fs

s3fs is a FUSE-based file system.It is primarily used for mounting Amazon S3 bucket into the Unix based system.
Note : Upper case characters are not supported by s3fs (whereas Amazon supports the Upper case characters ) .It is one of the limitation.

We always recommend our readers to use the latest s3fs package

uninstall s3fs package in Linux system

Step 1 : Before uninstalling the s3fs. Unmount the s3bucket from the linux system

You can use any of the two commands,which work for you


umount /Mounted/directory/Of/s3bucket

Alternate command

fusermount -u /Mounted/directory/Of/s3bucket

In some cases,I also found that it shows resource is busy.You have to cross check,if really any resouce is using the s3fs at that time.
We can use lsof command for this. The below given command output will show process id. Kill the process id of s3fs

lsof |grep s3fs
kill -9 Process-id-s3fs

And try again the command

umount /Mounted/directory/Of/s3bucket

“OR”

fusermount -u /Mounted/directory/Of/s3bucket

Step 2 : After successful unmounting. We will uninstall s3fs package in Linux system.

Note : You must have same version of s3fs extracted package in your system.

Change to s3fs extracted directory. Here, I installed s3fs version 1.74 and I have extracted s3fs directory in system.

cd ~/s3fs-1.74

Now for uninstalling,run below given command

make uninstall

Given below is the reference from our Server

root@cloudserver:~/s3fs-1.74# make uninstall
Making uninstall in src
make[1]: Entering directory `/root/s3fs-1.74/src'
 ( cd '/usr/bin' && rm -f s3fs )
make[1]: Leaving directory `/root/s3fs-1.74/src'
Making uninstall in test
make[1]: Entering directory `/root/s3fs-1.74/test'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/root/s3fs-1.74/test'
Making uninstall in doc
make[1]: Entering directory `/root/s3fs-1.74/doc'
 ( cd '/usr/share/man/man1' && rm -f s3fs.1 )
make[1]: Leaving directory `/root/s3fs-1.74/doc'
make[1]: Entering directory `/root/s3fs-1.74'
make[1]: Nothing to be done for `uninstall-am'.
make[1]: Leaving directory `/root/s3fs-1.74'
root@cloudserver:~/s3fs-1.74#

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.