Skip to content

rclone mount Sunet Drive folders in Linux

Info: Read here about how to configure rclone \ \ Use case: You want to mount a folder from Sunet Drive locally. This way you can copy files directly to Sunet Drive without having to use the sync client.

Tutorial Video: Rclone Linux - User Mount

rclone is a little handy tool that can be a good alternative to the Nextcloud command line client on Linux. Here are the instructions for mounting a local folder and map it to a folder in Sunet Drive.

  • Install the latest version of rclone (1.65 at the time of writing): https://rclone.org/install/
  • Create an application password for your Nextcloud user
  • Configure Nextcloud-folder as webdav in rclone (in my case named sunet-drive)
  • Enable user_allow_other in /etc/fuse.conf
  • Create a local folder, e.g.: mkdir -p /home/ubuntu/sunet-drive-mount
  • Mount Nextcloud folder into a local folder in daemon mode with allow-other: rclone mount sunet-drive: /home/ubuntu/sunet-drive-mount/ --daemon --allow-other

To unmount, simply use the umount command:\ umount /home/ubuntu/sunet-drive-mount

Note: To make sure that all files have been copied successfully, you should always cleanly unmount the folder after all file operations have finished. I.e., you should have closed all files and the files have been copied successfully.

Note 2: Read Nextcloud documentation for other/more advanced examples: https://docs.nextcloud.com/server/latest/user_manual/en/files/access_webdav.html