How I mounted on Linux

Some of you may remember when was giving away 50GB of storage if you downloaded their app to your iOS or Android device. I was one who took advantage of this promotion. Once I got it though, I never really figured out what I would use it for. I did upload a few documents, gave people access to a couple of folders, but that was about it. I started to wish there was a way to access this storage as if it was a network drive instead of through their web interface. This is the method that I ended up using to mount on my Linux machine.

  1. Login to your Linux shell and install davfs2
    sudo apt-get install davfs2
  2. Edit /etc/davfs2/davfs2.conf Make sure the following entry is uncommented and set to these values:
    use_locks            0
  3. Edit /etc/davfs2/secrets and at the end of the file, add the following line: <your email> <your password>
  4. Change the permissions of the secrets file
    sudo chmod 600 /etc/davfs2/secrets
  5. Create a mount point for Box. I used /mnt/box
    sudo mkdir /mnt/box
  6. Edit /etc/fstab and add the following line: /mnt/box   davfsrw,user,noauto    0 0
  7. Now test it is mountable
    sudo mount /mnt/box 
    cd /mnt/box 
  8. If you see files from Box, Success!
  9. Now test read, write, and delete functionality
    echo “Hello, world” > /mnt/box/text.txt cd /mnt/box
    cat test.txt
  10. Verify the file does say “Hello, world”
  11. Login to your account and verify the file is listed in the web interface
  12. Click on the file to preview the contents of the file
  13. Back in the terminal run these commands to test delete:
    rm /mnt/box/test.txt
    ls /mnt/box/test.txt
  14. You should see “No such file or directory”
    ls: cannot access /mnt/box/test.txt: No such file or directory
  15. Verify the file is now gone from the web interface.
  16. That’s all there is to it. Now when you start up your Linux box, will automatically be mounted and you will be able to access as any other drive.

Leave a Reply

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