Skip to content

Commit 0c91664

Browse files
fix(obj): fix s3fs install command in tutorial MTA-5863 (#4759)
1 parent 82aa9dd commit 0c91664

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

tutorials/object-storage-s3fs/index.mdx

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ sudo dnf install -y s3fs-fuse
4040

4141
#### macOS (via Homebrew)
4242
```bash
43-
brew install s3fs
43+
brew install --cask macfuse
44+
brew install gromgit/fuse/s3fs-mac
4445
```
4546

4647
### Option 2: Compile from source
@@ -76,41 +77,41 @@ sudo make install
7677
## Configuring s3fs
7778

7879
1. Create a credentials file:
79-
```bash
80-
echo ACCESS_KEY:SECRET_KEY > $HOME/.passwd-s3fs
81-
chmod 600 $HOME/.passwd-s3fs
82-
```
83-
<Message type="note">
84-
Replace `ACCESS_KEY` and `SECRET_KEY` with your Scaleway credentials.
85-
</Message>
80+
```bash
81+
echo ACCESS_KEY:SECRET_KEY > $HOME/.passwd-s3fs
82+
chmod 600 $HOME/.passwd-s3fs
83+
```
84+
<Message type="note">
85+
Replace `ACCESS_KEY` and `SECRET_KEY` with your Scaleway credentials.
86+
</Message>
8687

8788
2. Create a mount point directory:
88-
```bash
89-
mkdir -p /path/to/mountpoint
90-
```
89+
```bash
90+
mkdir -p /path/to/mountpoint
91+
```
9192

9293
3. Mount the bucket:
93-
```bash
94-
s3fs BUCKET_NAME /path/to/mountpoint \
95-
-o allow_other \
96-
-o passwd_file=$HOME/.passwd-s3fs \
97-
-o use_path_request_style \
98-
-o endpoint=fr-par \
99-
-o parallel_count=15 \
100-
-o multipart_size=128 \
101-
-o nocopyapi \
102-
-o url=https://s3.fr-par.scw.cloud
103-
```
104-
Replace:
105-
- `BUCKET_NAME`: Your bucket name.
106-
- `/path/to/mountpoint`: Path to mount the bucket.
107-
- `fr-par`: Replace with your bucket's region (`nl-ams`, `pl-waw`).
108-
- `s3.fr-par.scw.cloud`: Replace with the endpoint URL matching the region of your buckket.
94+
```bash
95+
s3fs BUCKET_NAME /path/to/mountpoint \
96+
-o allow_other \
97+
-o passwd_file=$HOME/.passwd-s3fs \
98+
-o use_path_request_style \
99+
-o endpoint=fr-par \
100+
-o parallel_count=15 \
101+
-o multipart_size=128 \
102+
-o nocopyapi \
103+
-o url=https://s3.fr-par.scw.cloud
104+
```
105+
Replace:
106+
- `BUCKET_NAME`: Your bucket name.
107+
- `/path/to/mountpoint`: Path to mount the bucket.
108+
- `fr-par`: Replace with your bucket's region (`nl-ams`, `pl-waw`).
109+
- `s3.fr-par.scw.cloud`: Replace with the endpoint URL matching the region of your bucket.
109110

110111
4. Configure automount on boot by adding the following line to `/etc/fstab`:
111-
```fstab
112-
s3fs#BUCKET_NAME /path/to/mountpoint fuse _netdev,allow_other,use_path_request_style,url=https://s3.fr-par.scw.cloud 0 0
113-
```
112+
```fstab
113+
s3fs#BUCKET_NAME /path/to/mountpoint fuse _netdev,allow_other,use_path_request_style,url=https://s3.fr-par.scw.cloud 0 0
114+
```
114115

115116
Once mounted, the bucket behaves like a local filesystem. You can copy, move, and manage files directly.
116117

0 commit comments

Comments
 (0)