Mount Minio to Local Directory: Quick Guide
To mount MinIO to a local directory, you can use Fuse along with MinIO’s S3 Gateway.
Here are the steps to mount MinIO to a local directory using Fuse:
- To install Fuse and s3fs on Linux, use the following commands:
sudo apt-get install fuse
sudo apt-get install s3fs - To install Fuse and s3fs on Mac, use Homebrew:
brew install –cask osxfuse
brew install s3fs - The file location for the password file for connecting to an S3 file system is ~/.passwd-s3fs.
- SECRET_KEY with ACCESS_KEY
- Create a file called ‘.passwd-s3fs’ in your home directory with the text “ACCESS_KEY:SECRET_KEY”, then change its permissions to 600.
- Create a directory called “minio-mount” in your home directory.
- The address for the Minio server.
- Name of the bucket
- Mount the bucket named “BUCKET_NAME” from Minio to the directory “~/minio-mount” using the password file “~/.passwd-s3fs” and the URL “https://MINIO_ENDPOINT” with s3fs.
- -to grant permission to others
The MinIO bucket should now be successfully mounted to the local directory ~/minio-mount. You can access this directory to read and write objects on MinIO.