Skip to navigationSkip to main contentSkip to footerScaleway DocsAsk our AI
Ask our AI

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:

  1. Click File Storage in the Storage section of the side menu. A list of your file systems displays.

  2. Click the name of the file system you want to mount. The Overview page displays.

  3. From the Mount section of the Overview page, copy the mounting command:

    mount -t virtiofs <file_system_id> /mnt
  4. Open a terminal and connect via SSH to the Instances you have attached to your file system.

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

  6. 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
    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).

  7. 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.

Still need help?

Create a support ticket
No Results