# S3FS Fuse and MinIO

s3fs fuse is an S3 object compatible file system which allows you to mount an S3 compatible bucket (AWS, MinIO etc) as a local mount point.

Using the previous guide on setting up MinIO, we'll install s3fs, mount a MinIO bucket, and image a local drive to it. We first need to create a file which will store your service keys/credentials. This also must have the correct permissions otherwise s3fs won't mount it if they're too permissive.

To set a service account; MinIO Console > Identity > Service Accounts

To set a user account with an associated service account; MinIO Console > Users > Select User > Service Accounts > Create Service Account

```
$ echo "SERVICE_ID:SERVICE_KEY" > /home/user/.s3creds
$ chmod 600 .s3creds

$ sudo apt install s3fs-fuse
$ sudo mkdir /mnt/mynewbucket
$ sudo s3fs my-bucket-name /mnt/mynewbucket -o passwd_file=/home/user/.s3creds,use_path_request_style,url=https://FQDN-hostname:9000
```

If you were using this in a test environment and needed to ignore a self-signed or otherwise invalid SSL cert, just append **'-o no\_check\_certificate'**

Now you can use your preferred imaging and set **/mnt/mynewbucket** as your destination.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.iblue.team/general-notes-1/s3fs-fuse-and-minio.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
