burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & Marketing icon chevron
    • Streaming icon chevron

      ksuiteCollaborative suite

      Discover the collaborative suite → Discover →
    • kSuite Professional email, sovereign cloud and AI for sustainable performance
    • kSuite The suite for secure communication, storage and sharing
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Mail Service Create your email addresses with your domain
    • kChat
      kChat Communicate live with your teams
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
    • kChat
      Chk Link reducer & QR code generator
      Find the web hosting solution you need
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with over 100 CMS
    • web hosting
      Wordpress Hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your site access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution

      Cloud services

    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • Cloud Server
      VPS Cloud Create a Windows / Linux server
    • Kubernetes service Deploy your containerised apps on a large scale.
    • VPS Lite
      VPS Lite Create a Windows/Linux server at a low cost
    • Database Service Manage your databases with a managed solution
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • Other services

    • llm api
      AI Tools Boost your productivity with our sovereign AI
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      NAS Synology Rent a NAS in our secure data centers
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • Housing
      Housing Install your servers in our data centers
    • Auth Add a privacy-friendly login method to your apps
      Infomaniak Events, the independent local events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets
    • kdrive
      Access Control Control access to your events with ease
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live radio station online
    • streaming video
      Video-Streaming Create and broadcast live events and TV online
    • VOD and AOD
      VOD & AOD service Host and broadcast your recordings without limits
  • Resources
    documentation icon Documentation
    Guides & tutorials
    API documentation
    special offers icon Special offers
    Get started for free
    Student programme
    Become an affiliate
    partner program icon Partner programme
    Find a partner
    Become a partner
    support icon Support & contact
    Contact Support
    Premium support - 24/7
    Contact our sales department
    Hiring an expert
    Migrate to Infomaniak
  • About us
    forest
    icon Ecological commitment
    We pollute. But we are taking action to reduce the footprint of our services and infrastructure
    Discover our commitment →
    icon About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    icon Security
    Data confidentiality
    Bug Bounty Programme
  • Get started for free
    Sign in
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • Get started for free
    Sign in
Price Price
Knowledge base

1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

Knowledge base Mount a Linux Volume on VPS Cloud

    Mount a Linux Volume on VPS Cloud

    This guide explains how to format then mount the volume dedicated to storing your data on VPS Cloud Linux/Unix.

     

    Disk and partition names

    The VPS Cloud come with two volumes:

    • 1 volume for the operating system of your choice
    • 1 volume for storing your data

    The volume for data storage must be formatted and then mounted by the client.

    In Linux systems, disks and partitions are referenced by names, which vary depending on the Linux distribution, such as:

    • /dev/sda, /dev/sdb, …
    • /dev/vda, /dev/vdb, …
    • /dev/sda1, /dev/sda2, …

    These names are not static and can change depending on various factors, such as the driver used (e.g. virtio-scsi or virtio-blk) or updates to the kernel and udev.

    Therefore, it is recommended to use the UUID (Universal Unique Identifier - read more below) of a partition rather than its name when referencing it in the filesystem configuration file (/etc/fstab).
     

     

    Formatting the storage volume

    If you choose XFS, for example, it is necessary to install the appropriate tools (if they are not already present):

    sudo apt install xfsprogs

    Then format the volume with the following SSH commands:

    sudo mkfs.xfs -f /dev/[device]

    And if you choose EXT4:

    sudo mkfs.ext4 /dev/[device]

    If necessary, it is possible to format the volume with another file system supported by your distribution.

     

    Mounting the storage volume

    Warning: if you mount your data volume in /home, you will no longer be able to connect to your server via your private key on the next reboot (because SSH looks for the keys in the .ssh folder in the home directory of the user and if the data volume is mounted on this folder, the keys are lost). Therefore, it is necessary to copy the data to be preserved in advance. Help for SSH connection

    For example, as root:

    mkdir /mnt/home
    mount /dev/[device] /mnt/home
    rsync -rlptgoDHAX /home/ /mnt/home/
    umount /mnt/home
    mount /dev/[device] /home
    rmdir /mnt/home

    Here's what happens in order:

    • we create a temporary folder
    • we mount the volume on the temporary folder
    • copy the contents of the original folder /home to the root of the volume while preserving permissions, owner, group, etc. (note that you may need to install the rsync package depending on the chosen Linux distribution)
    • we unmount the volume from the temporary folder
    • mount the volume on the /home folder
    • we delete the temporary folder

    This way, you should be able to mount the volume on /home while preserving the initial configuration that will be installed. However, it is recommended to always set a password for root to avoid losing control in case of an error. The password can be removed later.

     

    Alternative solution: do not mount in /home...

    This is a standard location to mount the data volume as it is generally in /home that users will work and especially store their data. A user without special rights will normally be limited to their /home/user directory. It is possible to specify another default directory for a user (but the configuration will no longer be "standard").

     

    Another alternative solution: automatic mounting of the volume at startup...

    A mount does not survive a reboot. If you want to make the change persistent, you can add your volume to the file /etc/fstab (Debian documentation on this topic) for example:

    /dev/md0 / ext4 errors=remount-ro 0 1
    UUID=181A-4B53 /boot/efi vfat errors=remount-ro,nofail 0 0
    UUID=181B-AED3 /boot/efi2 vfat errors=remount-ro,nofail 0 0
    UUID=[UUID1] /srv/node/sda xfs noatime,nodiratime,nofail,logbufs=8 0 0
    UUID=[UUID2] /srv/node/sdb xfs noatime,nodiratime,nofail,logbufs=8 0 0

    After formatting the disk, find the UUID and add it to the fstab.

     

    Getting the UUID of a partition

    To obtain the UUID of a partition after formatting it, use the blkid command. This command displays the UUID along with other information about all partitions detected by your system.

     

    Add the UUID to fstab

    Once you have obtained the UUID of the partition you want to mount automatically at startup, you can add it to your fstab file. To do this, open the fstab file with a command-line text editor (e.g., nano or vi) and add a new line for your partition using the example above as a template. Replace [device], [UUID1] and [UUID2] with the appropriate values for your configuration.



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display all FAQs for this product
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse WHOIS

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    ©2025 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Products and offers Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse WHOIS

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    ©2025 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map - Manage your cookies

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.