How to mount a file system to a Scaleway Instance
This page explains how to mount a file system to one or several Scaleway Instances.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created a file system
- Attached a file system to one or several Instances
-
Click File Storage in the Storage section of the side menu. A list of your file systems displays.
-
Click the name of the file system you want to mount. The Overview page displays.
-
From the Mount section of the Overview page, copy the mounting command:
mount -t virtiofs <file_system_id> /mnt
-
Open a terminal and connect via SSH to the Instances you have attached to your file system.
-
Create a dedicated directory at the desired location (e.g.
/mnt/my_fs
) to use as a mount point. -
Run the previously copied mount command to mount your file system. Make sure to specify the appropriate mount point:
mount -t virtiofs <file_system_id> /mnt/my_fs
-
Run the following command to display the file systems of your Instance:
df -h
A list of your file systems displays, containing the one you just mounted:
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.