Comment goes here
You should log in and post some comments! The link is up there in the toolbar. Go nuts!
 

Mount your box.net (box.com) account in linux

« Back to Linux Other Articles

Box.net (box.com actually now) is a service that enables you to have a place to put files that you want to access from anywhere. Some people (ehem) use it to back up their workstations..

Did your box.net mount start failing recently? They've changed a couple things.. use this guide to set it up again.

First, install davfs
Red Hat based:
# yum install davfs2


Debian based:
# apt-get install davfs2


Now, add the mount point:
# mkdir /box


Add this line to your /etc/fstab:

https://www.box.com/dav /box davfs rw,user,noauto 0 0



Add this line to the bottom of the /etc/davfs2/secrets file (replace with your email address and password)

https://www.box.com/dav user@email.com password



Edit the /etc/davfs2/davfs2.conf
Change:
# use_locks 1

to
use_locks 0


Now mount it!
# mount /box


Show that it's there with 'mount' or with 'df'

Now.. rsync something to it. Here, i'm rsyncing a 1gb tgz file:

[root@station-222 home]# rsync -avz --progress rob-test.tgz /box/
sending incremental file list
rob-test.tgz
1154875454 100% 61.06MB/s 0:00:18 (xfer#1, to-check=0/1)
sent 1155263231 bytes received 31 bytes 59244269.85 bytes/sec
total size is 1154875454 speedup is 1.00
[root@station-222 home]#


It took hardly any time at all over a fios connection - 18 seconds @ 61mb/sec