How to Mount S3 Bucket on Local Disk

Why FUSE:

Install:

Ubuntu 16.04:

sudo apt-get install s3fs

Ubuntu/CentOS:

wget https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.77.tar.gz
mv v1.77.tar.gz s3fs-fuse-1.77.tar.gz
tar zxvf s3fs-fuse-1.77.tar.gz
cd s3fs-fuse-1.77/
./autogen.sh
./configure — prefix=/usr
make
make install

ArchLinux:

pacman -S s3fs

Credentials:

<your_aws_key_id>:<your_aws_secret_key>

Mount:

mkdir /tmp/cache
mkdir /s3mnt
chmod 777 /tmp/cache /s3mnt
chmod 600 ~/.passwd-s3fs

s3fs -o use_cache=/tmp/cache <your_bucket_name> /s3mnt

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store