Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions pages/file-storage/how-to/mount-file-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,32 @@ This page explains how to mount a file system to one or several Scaleway Instanc

4. Open a terminal and [connect via SSH to the Instances](/instances/how-to/connect-to-instance/) you have [attached to your file system](/file-storage/how-to/attach-file-system/).

5. Run the previously copied mount command to mount your file system at the specified mount point (`/mnt` by default):
5. Create a dedicated directory at the desired location (e.g. `/mnt/my_fs`) to use as a mount point.

5. Run the previously copied mount command to mount your file system. Make sure to specify the appropriate mount point:

```sh
mount -t virtiofs <file_system_id> /mnt
mount -t virtiofs <file_system_id> /mnt/my_fs
```

<Message type="note">
You can specify a different mount point by replacing `/mnt` by the desired directory.
<Message type="important">
For safety reasons, we do not recommend mounting your file system directly to the `/mnt` directory, but rather to a dedicated sub-folder (such as `/mnt/my_fs`).
</Message>

6. Run the following command to display the file systems of your Instance:

```sh
df -h
```

A list of your file systems displays, containing the one you just mounted:

```sh
Filesystem Size Used Avail Use% Mounted on
tmpfs 794M 992K 793M 1% /run
/dev/sda1 8.0G 2.1G 6.0G 26% /
/dev/sda2 881M 61M 758M 8% /boot
2933ea63-example-file-system-c05fe2 94G 0 94G 0% /mnt/my_fs
```

Your file system is now mounted and accessible from the specified mount point in your Instance.
2 changes: 1 addition & 1 deletion pages/file-storage/how-to/unmount-file-system.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This page explains how to unmount a file system from one or several Scaleway Ins
5. Run the following command. Make sure to replace the placeholder and mount point with the appropriate values:

```sh
unmount <file_system_id> /mnt
umount /mnt/my_fs
```

Your file system is now unmounted from the specified Instance.
2 changes: 1 addition & 1 deletion pages/file-storage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ description: Explore Scaleway File Storage with quickstart guides, how-tos, and
productLogo="cli"
title="File Storage API"
description="Manage File Storage using the Scaleway API."
url="https://www.scaleway.com/en/developers/api/file/"
url="https://www.scaleway.com/en/developers/api/file-storage/"
label="Go to File Storage API"
/>

Expand Down
17 changes: 10 additions & 7 deletions pages/file-storage/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,18 @@ To mount a file system to an Instance, you must have [attached your file system
mount -t virtiofs <file_system_id> /mnt
```

4. Open a terminal and [connect via SSH to the Instances](/instances/how-to/connect-to-instance/) you previously [attached to your file system](/file-storage/how-to/attach-file-system/).
4. Open a terminal and [connect via SSH to the Instances](/instances/how-to/connect-to-instance/) you have [attached to your file system](/file-storage/how-to/attach-file-system/).

5. Create a dedicated directory at the desired location (e.g. `/mnt/my_fs`) to use as a mount point.

5. Run the previously copied mount command to mount your file system at the specified mount point (`/mnt` by default):
5. Run the previously copied mount command to mount your file system. Make sure to specify the appropriate mount point:

```sh
mount -t virtiofs <file_system_id> /mnt
mount -t virtiofs <file_system_id> /mnt/my_fs
```

<Message type="note">
You can specify a different mount point by replacing `/mnt` by the desired directory.
<Message type="important">
For safety reasons, we do not recommend mounting your file system directly to the `/mnt` directory, but rather to a dedicated sub-folder (such as `/mnt/my_fs`).
</Message>

6. Run the following command to display the file systems of your Instance:
Expand All @@ -117,7 +119,8 @@ To mount a file system to an Instance, you must have [attached your file system
tmpfs 794M 992K 793M 1% /run
/dev/sda1 8.0G 2.1G 6.0G 26% /
/dev/sda2 881M 61M 758M 8% /boot
2933ea63-example-file-system-c05fe2 94G 0 94G 0% /mnt
2933ea63-example-file-system-c05fe2 94G 0 94G 0% /mnt/my_fs
```

Your file system is now mounted and accessible from the specified mount point in your Instance.

Expand All @@ -134,7 +137,7 @@ Your file system is now mounted and accessible from the specified mount point in
5. Run the following command. Make sure to replace the placeholder and mount point with the appropriate values:

```sh
unmount <file_system_id> /mnt
umount /mnt/my_fs
```

Your file system is now unmounted from the specified Instance.
Expand Down
Loading