How to mount cloud storage on Linux (previously is an online cloud storage provider targeting both individual users and enterprise customers. users can access its cloud storage via web interface or multi-platform mobile client software.

As of writing, does not offer a native Linux client. Thankfully, however, they make available WebDAV servers which export your account as a WebDAV share, so you can mount your account and access it via WebDAV over HTTP/HTTPS. Here are two different ways to mount account on Linux via WebDAV.

Mount storage account by Nautilus

You can mount and access your storage account via Nautilus -- file manager for the GNOME desktop. Open up Nautilus, and click on "Connect to Server" under "File" on its menu.

Then type in the following server and user details.

After you are successfully connected to a's WebDAV server, your account will be accessible on Nautilus as follows.

If you want to have account mounted automatically on Nautilus, you can use the "bookmark" feature of Nautilus. That is, right-click on the mount on Nautilus, and select "Add Bookmark" menu.

After bookmarking, you will see the saved bookmark on the left top corner of Nautilus. In order to re-mount your account later, simply click on this bookmark.

Mount storage account via davfs2

The second method is to use davfs2 (WebDAV Linux File System) which enables you to access a remote WebDAV share via traditional file system interfaces.

To install davfs2 on Ubuntu, Debian or Mint:

$ sudo apt-get install davfs2

To install davfs2 on CentOS, RHEL or Fedora:

$ sudo yum install davfs2

Next, create a local mount point.

$ mkdir ~/

The WebDAV share exported by does not support file locks. Thus you need to disable file locks in the davfs2 configuration file located at /etc/davfs2/davfs2.conf. Otherwise, you will encounter "Input/output error" while attempting to create a file.

$ sudo vi /etc/davfs2/davfs2.conf
use_locks      	0

In addition, if you want to be able to mount's WebDAV share as a non-root regular user, follow the distro-specific procedure below.

Mount as a non-root user on Debian, Ubuntu or Mint

Reconfigure davfs2 by using dpkg-reconfigure as follows.

$ sudo dpkg-reconfigure davfs2

At the dpkg-reconfigure screen (as shown below), click on "Yes" button.

After this, add yourself to a Linux group called "davfs2".

$ sudo usermod -a -G davfs2 xmodulo

Mount as a non-root user on CentOS, RHEL or Fedora

Simply run the following command.

$ sudo usermod -a -G davfs2 xmodulo

Once you have followed the above distro-specific instruction, add the following to /etc/fstab. The "user" option allows you to mount as an unprivileged non-root user. Replace "/home/xmodulo/" with your own mount point. /home/xmodulo/ davfs rw,user,noauto 0 0

Now you can go ahead and mount your account by running mount command as a regular user. When asked for username and password, enter your account username/password.

$ mount
Please enter the username to authenticate with server or hit enter for none.
Please enter the password to authenticate user with server or hit enter for none.

If you do not want to type in username/password every time you mount, put your login credential information in the following file.

$ chmod 600 ~/.davfs2/secrets
$ vi ~/.davfs2/secrets my_box_com_password

To verify that mount was successful, run these:

$ mount on /home/xmodulo/ type davfs (rw,nosuid,noexec,nodev,_netdev,user=xmodulo)
$ df
Filesystem              1K-blocks      Used Available Use% Mounted on
/dev/mapper/ubuntu-root 953024420 131576980 773036612  15% /
udev                      4008844         4   4008840   1% /dev
tmpfs                     1607344       908   1606436   1% /run
none                         5120         0      5120   0% /run/lock
none                      4018352      1408   4016944   1% /run/shm
none                       102400        28    102372   1% /run/user
/dev/sda1                  233191     53518    167232  25% /boot  26666664  13333332  13333332  50% /home/xmodulo/
$ ls ~/
Documents lost+found Photos Videos

To umount account:

$ umount
/sbin/umount.davfs: waiting while mount.davfs (pid 6824) synchronizes the cache .. OK

If you find this article useful, share this article on your social network.

Subscribe to Xmodulo

Do you want to receive Linux FAQs, detailed tutorials and tips published at Xmodulo? Enter your email address below, and we will deliver our Linux posts straight to your email box, for free. Delivery powered by Google Feedburner.

Support Xmodulo

Did you find this tutorial helpful? Then please be generous and support Xmodulo!

The following two tabs change content below.
Dan Nanni is the founder and also a regular contributor of He is a Linux/FOSS enthusiast who loves to get his hands dirty with his Linux box. He likes to procrastinate when he is supposed to be busy and productive. When he is otherwise free, he likes to watch movies and shop for the coolest gadgets.

42 thoughts on “How to mount cloud storage on Linux

  1. Hi,

    I've followed these instructions and everything is working fine. Anyway I've your same problem when I execute df: 26666664 13333332 13333332 50% /home/andrea/

    I really do NOT have 50% space taken :)
    If I go on my dashboard I still have all 25Gb available.

    How can I fix that?

    • It is because df is getting fake space info from davfs2.

      In order for davfs2 to report available space correctly, WebDAV server must export "used bytes" and "available bytes" properties (e.g., see RFC4331). WebDAV server probably does not implement that feature.

      From davfs2 README:
      "If the server does not support RFC 4331 (most servers don't), davfs2 cannot calculate the free disk space on the server. But some applications (e.g. nautilus) insist on this. So davfs can't help but lie. I tried to make the numbers look funny, so you will notice they are faked."

  2. Hi,

    So I have followed your instructions. However I cannot open any files or copy any file from the mounted folder. Either get a no such file or directory or permission denied error.

    How can I gain full access?

    Might be on boxes end?


    • You might not be connected to's WebDAV server properly. Can you at least browse the mounted folder? Also please check if the following command give you something like the following.

      $ sudo netstat -nap | grep davfs

      tcp        0      0      ESTABLISHED 2861/mount.davfs
  3. I used your 1st method to access my box account, and it worked fine untill I rebooted. then it was gone. Do I need to remount it everytime I reboot?

    • What you can do is to "bookmark" the mount on Nautilus, so that you can re-mount easily via the bookmark. Please refer to the updated post above for more detail.

  4. at first glance it works like a charm. I manged to write a file inside. I'll test how sync works as I have a copy of all the files locally. Well, at worst I'll do a rsync -- delete on the two directories.

  5. Contents of new upstart style init file for ubuntu 13.04 that will automount the above config if password and username saved in ~/.davfs2/secrets

    cat /etc/init/box.conf
    ---------------------Contents Below---------------------------
    start on runlevel [2345]
    stop on shutdown

    exec sudo -H -n -u xmodulo /bin/mount /home/xmodulo/

  6. FYI, in gnome-3 the "connect to server" screen changed a lot. use "davs://", you will be prompted for credentials, and how long to cache them.

    • If you are trying to mount for the first time, ~/.davfs2 may not exist yet. So first try mounting without setting username/password. Once ~/.davfs2/secrets is generated, then go ahead and modify ~/.davfs2/secrets.

  7. Ubuntu 12.04 64-bit
    I had followed these directions several months ago, and was able to get this to work flawlessly. Now in trying to look at something on my mount, I find it will not mount. When I try to mount ( mount, after entering creds, I get:
    /sbin/mount.davfs: Mounting failed.
    404 not found.

    I have re-traced the steps, and found 2 things that appear to be different, but I am reluctant to change (as I'm not sure where they came from):
    1. I have a ~/.davfs2/davfs2.conf file (e.g., user-level). I don't see that referenced here, and it had a system-wide setting (user_locks) that I had to comment out due to a different error (system-wide setting in user config file)
    2. in the /etc/davfs2/davfs2.conf (e.g., system-wide), I see that the setting for user_locks has been placed in a 'section' apparently specific to - I may have done this but I don't see it in the instructions here, and I doubt I was enterprising enough to look specifically for how to limit this to a specific mount point. The section is:
    use_locks 0 # from

    So I'm not sure why/where it is failing, or what changed to make it not work - it's been a few months since I've tried to access anything through it (though I did verify that my account creds w/ are the same).

    Thanks in advance!

  8. Thanks for the instructions. Working perfectly on Ubuntu 13.10. FWIW it seems like they are now reporting usage properly:

    graeme@graeme-laptop:~$ df -h
    Filesystem Size Used Avail Use% Mounted on 50G 17M 50G 1% /home/graeme/

  9. I am glad I found this post. Indeed the new point is important: instead of the previous which lead to the 404 Not found error.
    My question is how can I connect more than one accounts in the same computer?
    I would like to provide the account for every user. How to have multiple entries in /etc/fstab and /etc/davfs2/secrets to perform this action?
    Great thread :)
    Thank you.

  10. I think you can simply repeat the process for every user on the host.

    Allow them to mount:

    $ sudo usermod -a -G davfs2 user1
    $ sudo usermod -a -G davfs2 user2

    Edit /etc/fstab: /home/user1/ davfs rw,user,noauto 0 0 /home/user1/ davfs rw,user,noauto 0 0

    Then have each user store their Box password in his/her own home directory:

    $ vi ~/.davfs2/secrets

    • Any idea how to connect multiple accounts to the *same* Ubuntu user?

      For each of my accts I've added a " my_box_com_password" line to ~/.davfs2/secrets and a " davfs rw,user,noauto 0 0" line to fstab.

      I don't know a way to tell davfs2 which mounted folder from fstab corresponds to which line in secrets, though. For every mounted folder, davfs2 just mounts it to the box acct whose login info is the last (furthest down) entry on the secrets list.

      Thanks in advance for any ideas you might have

      • I can't take credit for this answer. Credit goes to Arch Linux.

        I found the information here:

        If you want to mount several disks from same server, you need specify mount points of this disks instead of server address in file ~/.davfs2/secrets

        /home/username/disk1 webdavuser1 webdavpassword1
        /home/username/disk2 webdavuser1 webdavpassword2
        /home/username/diskN webdavuserN webdavpasswordN

  11. Thanks for posting this. I managed to connect my box account in KDE over kubuntu 12.04 without any issue. I followed your first solution and configured my box account in dolphin file manager without any issues!

  12. Excellent description that worked seamlessly, first time.
    I notice that you can mount subdirectories of your account by adding their path to the mount source path, e.g. This allows you to mount different folders on you account, maybe to allow different users to access different folders or to limit access to the files stored on

    I also noticed that copying large amounts of data appears to complete (much) sooner than it actually does, e.g.
    cp ~/pictures/* ~/
    returned to a command line prompt in a few minutes but the 12GB of files are continuing to be copied (sync'd) in the background. Useful but something to be aware of. I don't know what happens if the local host is turned off part way through. Does it wait for the sync to complete whilst unmounting the path (which would be in about two days for me), hence delaying power-off? Does it stop copying (syncing)? Does it leave truncated (partially copied) files? Who knows - I don't want to try it on this sync!

  13. Thanks for the guide, it made setting up the command-line version a breeze.

    While it mounts like a charm and I can happily open/read files I have an odd issue with a keepass DB file.

    If I edit it, and save it it disappears after a while, and ends up in my "Trash" in the web-interface. I can reproduce the behaviour, but can't stop it from happening, which kind of makes it pointless :(

    Download via web-interface followed by uploading a new version works as expected - but that's so tedious. Mind you, so is losing the file, and the work that went into it. :)

    Has anyone experienced similar issues, or, even better, found a way to get around the issue?

  14. I went through these directions and made the changes to my server. Unfortunately, now when I restart the server I am prompted to enter my box username on the server terminal at startup but it won't let me enter anything. And pressing enter does nothing. So I am stuck and can't get to where I can edit my fstab file to remove that line. What can I do?

  15. At last! Thanks; after months of searching, your instr's have Nautilus connecting to Box. However it's quite slow just to display folder contents of my Box account. Is there anything I can do at Linux Mint/Nautilus end to speed downloads up?

    Thanks again.
    Chris A.

  16. I have set up using davfs2 per the instructions above. However, rsync or cp commands fail after a period of time with the following error:

    rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)

    Have others seen this and how would I address this?

  17. Using Nautilus in Ubuntu 14.04 I had to enter this:
    into the 'Connect to server' dialog.
    Afterwards I was asked for my credentials and everything worked fine.

  18. Thank you for posting these tips. They are quite helpful. However, I still got a problem after following the steps above: I cannot mount as a regular user. I am using RHEL6 (Or CentOS6). The error message is

    [user@server ~]$ mount
    /sbin/mount.davfs: file /home/user/.davfs2/secrets has wrong permissions

    I have changed the mod of "secrets" to 777 but it still did not work.

    Under another account, I managed to execute the mount command with "sudo", even if I setup the user name and password in the "secrets" file:
    [user@server ~]$ sudo mount
    Please enter the username to authenticate with server or hit enter for none.
    Please enter the password to authenticate user with server or hit enter for none.
    Now I can access to the content using "ls", but I cannot write into the directory
    [user@server Shared]$ mkdir backup
    mkdir: cannot create directory `backup': Permission denied
    I can only create the directory under root.

    What did I miss to mount as a regular user?

    • "file /home/user/.davfs2/secrets has wrong permissions" - To fix this, you must set chmod 600 /home/user/.davfs2/secrets
      And you are not supposed to mount as the root.

Leave a comment

Your email address will not be published. Required fields are marked *