diff --git a/pages/file-storage/how-to/mount-file-system.mdx b/pages/file-storage/how-to/mount-file-system.mdx index 2650817114..89d99a2807 100644 --- a/pages/file-storage/how-to/mount-file-system.mdx +++ b/pages/file-storage/how-to/mount-file-system.mdx @@ -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 /mnt + mount -t virtiofs /mnt/my_fs ``` - - You can specify a different mount point by replacing `/mnt` by the desired directory. + + 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`). +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. diff --git a/pages/file-storage/how-to/unmount-file-system.mdx b/pages/file-storage/how-to/unmount-file-system.mdx index df8aee23ac..aeb78002be 100644 --- a/pages/file-storage/how-to/unmount-file-system.mdx +++ b/pages/file-storage/how-to/unmount-file-system.mdx @@ -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 /mnt + umount /mnt/my_fs ``` Your file system is now unmounted from the specified Instance. diff --git a/pages/file-storage/index.mdx b/pages/file-storage/index.mdx index 367174dde8..2d70d98175 100644 --- a/pages/file-storage/index.mdx +++ b/pages/file-storage/index.mdx @@ -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" /> diff --git a/pages/file-storage/quickstart.mdx b/pages/file-storage/quickstart.mdx index 82b039f303..22a614eb9b 100644 --- a/pages/file-storage/quickstart.mdx +++ b/pages/file-storage/quickstart.mdx @@ -92,16 +92,18 @@ To mount a file system to an Instance, you must have [attached your file system mount -t virtiofs /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 /mnt + mount -t virtiofs /mnt/my_fs ``` - - You can specify a different mount point by replacing `/mnt` by the desired directory. + + 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`). 6. Run the following command to display the file systems of your Instance: @@ -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. @@ -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 /mnt + umount /mnt/my_fs ``` Your file system is now unmounted from the specified Instance.