• EN
    • FR
    • DE
    • IT
    • ES
  • Resellers
  • Affiliate program
  • About us
  • Green hosting
  • Job 9
  • News
  • Support
Infomaniak
infomaniak infomaniak
Infomaniak
  • I want to...
    • Create a website
      • Create a site with WordPress Design a professional site in a few clicks.
      • Create a site with a CMS Create a Joomla, Drupal, PrestaShop, etc., site.
      • Create a site with a Web agency Find your ideal webmaster close to you.
    • Create an email address
      • 1 email free with 1 domain Create a personal email address in Switzerland with the domain of your choice.
      • 5 or more email addresses Create your professional email addresses in Switzerland with the domain of your choice.
    • Store data online
      • kDrive Synchronise, share and work on your Word, Excel and PowerPoint documents online.
      • Swiss Backup Back up your PC, Mac, servers and mobile devices on a secure cloud.
      • NAS Synology Rent a Synology in our secure data centres to manage your data freely.
    • Transfer a domain name
    • Pay an invoice
    Quick actions
    • Compare hosting offers
    • Renew
  • Domains
    • Order Purchase your domain name at the best price.
    • Domain Privacy Protect the private data of your domains in Whois and block spam.
    • Transfer Relocate your domain to Infomaniak.
    • Renewal Warranty Secure your domains against loss and theft.
    • SSL certificates Secure your sites with a Sectigo or Let's Encrypt EV or DV certificate.
    • Fast Anycast DNS New Speed up access to your site from anywhere in the world with just 1 click.
    • DynDNS New Access your connected devices remotely via your domain name.
    Quick actions
    • Renew
    • Prices
    • Whois
    • Our tips
  • Hostings
    • Web & Mail
      • Web + Mail Hosting Create your sites and professional email addresses with our flagship offer.
      • Mail Hosting Create your professional email addresses and sync your contacts and calendars.
      • Web Hosting Create your internet sites (without email).
      • WorkSpace Discover the Swiss webmail for SMEs which synchronises your emails, calendars and contacts.
    • Dedicated and Cloud servers
      • Managed Cloud Server Create your sites with 100% dedicated resources.
      • Unmanaged Cloud Server Create your Linux/Windows server with 100% dedicated resources.
      • Jelastic Cloud Create your bespoke Cloud infrastructure (Java, Node.js, Ruby, Docker, etc.).
      • Very High Availability Hosting Use the same technology as the world's most visited sites (custom SLA).
    • Housing / Datacenter
    Quick actions
    • Compare hosting offers
    • Renew
  • Infomaniak Suite
    • kDrive Infomaniak kDrive Collaborate and share your files wherever you are.
      With Docs, Grids & Points
      docs grids points
    • swisstransfer SwissTransfer.com Send files up to 50 GB free of charge.
    • mail Infomaniak Mail The email service that respects your privacy.
      With Calendar, Contacts & SMS
      calendar contacts sms
    • kMeet Infomaniak kMeet Create online meetings. 100% free and secure.
    • myksuite Infomaniak My kSuite Master the branding of your tools with your domain and logo.
    • kPaste Infomaniak kPaste Share your passwords and private messages with complete security.
    Quick actions
    • Renew
  • Backup and storage
    • Swiss Backup Back up your servers, workstations and files in a datacenter in Switzerland.
    • kDrive Infomaniak kDrive New Collaborate and share your files wherever you are.
    • Synology NAS Rent a NAS in a secure datacenter in Switzerland.
    • swisstransfer SwissTransfer.com Share large files up to 50 GB for free.
    Quick actions
    • Renew
  • Marketing & Events
    • Newsletter Send your newsletters and manage your email marketing with an easy-to-use tool with no subscription.
    • Guest manager Efficiently manage the invitations to your events.
    • E-ticket box office Create your online box office for your professional events (festivals, seminars, etc.).
    Quick actions
    • Renew
  • Multimedia
    • Audio streaming (web radio) Create your online radio and freely monetise your live podcasts, etc.
    • Video streaming (web TV) Create your online TV and freely monetise your live broadcasts.
    • VOD/AOD Easily host and integrate your videos, podcasts, etc. on your site.
    Quick actions
    • Renew
  • Support
    • Knowledge base
    • Contact us
    • Pay a bill
  • Subscription
Sign in
  • Manager login
  • EN
    • FR
    • DE
    • IT
    • ES
  • Subscription
  • Sign in
    • Workspace

      Webmail, contacts, calendar

    • Manager

      Managing Infomaniak products

Knowledge base

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

Knowledge base Unmanaged Cloud server: mounting the volume for data storage

    Unmanaged Cloud server: mounting the volume for data storage

    By default, unmanaged Cloud Servers are supplied with two volumes:

    • 1 volume for the operating system of your choice (/dev/vda)
    • 1 volume for storing your data (/dev /vdb)

    The volume for data storage (/dev/vdb) must be formatted, then mounted by the client.

    1. SSH commands to format the storage volume

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

    sudo apt install xfsprogs

    Then it is necessary to format the volume using the following SSH command:

    sudo mkfs.xfs -f /dev/vdb

    And if you choose EXT4:

    sudo mkfs.ext4 /dev/vdb

    If necessary, you can format the volume with a different file system supported by your distribution.

    2. Mounting the storage volume

    if you mount your data volume in /home, you will no longer be able to log in to your home server via your private key the next time you restart (becuse SSH will look for the keys in the ".ssh" file in the home (home folder) of the user and if the data volume is mounted on this folder, the keys are lost). As a result, it is necessary to copy the data to be kept first. For example, in root:



    mkdir /mnt/home
    mount /dev/vdb /mnt/home
    rsync -rlptgoDHAX /home/ /mnt/home/
    umount /mnt/home
    mount /dev/vdb /home
    rmdir /mnt/home

    What that means in order:

    • you create a temporary folder
    • you mount the volume on the temporary folder
    • you copy the contents of the original "/home" folder to the root of the volume keeping the same rights, owner, group, etc.(warning: you might need to install the "rsync" bundle depending on the Linux distribution chosen)
    • you dismount the volume from the temporary folder
    • you mount the volume on the "/home" folder
    • you delete the temporary folder


    This way you should be able to mount the volume on "/home" while keeping the initial configuration which is installed. We recommend that you create a password for "root" in any case so that you do not lose your way if you should make a mistake. The password can be removed afterwards.




    Alternative solution: not mounting in "/home"...
    This is a standard place to mount the data volume because it is generally in "/home" that users will work and particularly store their data. A user without special rights will usually be limited to their "/home/user" directory. It is possible to indicate another default directory for a user (but the configuration will no longer be "standard").



    Another alternative solution: Automatically mounting the volume on startup
    A mount does not effectively withstand a restart. If you do not want to make the change permanent, you can add your volume to the file "/etc/fstab". Debian documents about this:https://wiki.debian.org/fr/fstab



    3. SSH commands for mounting the storage volume

    sudo mount /dev/vdb point_de_montage


    Help for the SSH connection


    For example, to mount the data volume in the /home folder of your Cloud server, the command to perform is the following:

    sudo mount /dev/vdb /home



    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

    Infomaniak

    Blog About us Support Knowledge base Site map General Sales Conditions & Data Policy

    Swiss hosting provider

    Wordpress hosting Web Hosting Mail Hosting Cloud Server / VPS SSL certificates

    Domains

    Register a domain Transfer a domain Whois domain Renewal Warranty Domain Privacy Fast Anycast DNS Report an abuse

    Professional tools

    Synology NAS Newsletter tool Video streaming live Live Audio Streaming Housing and colocation Guest manager

    Green hosting

    Certificates and rewards Environmental commitments
    • swissmade
    • swiss hosting
    • ISO 50001 – Energy Management
    • ISO 14001 - Environmental Management
    • ISO 14001 - Environmental Management
    • Infomaniak
    • Support
    • Knowledge base
    • Unmanaged Cloud server: mounting the volume for data storage
    News
    About us
    Ecological charter
    Join us!
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.