Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Then follow the instructions. Default answers can be accepted safely for every question that has one. 

When prompted, choose to use automatic config. This will open your browser and you will have to authenticate to receive a token.

After this, you will be asked to:

Code Block
titleType of storage
Choose a number from below, or type in an existing value
 1 / OneDrive Personal or Business
   \ "onedrive"
 2 / Root Sharepoint site
   \ "sharepoint"
 3 / Type in driveID
   \ "driveid"
 4 / Type in SiteID
   \ "siteid"
 5 / Search a Sharepoint site
   \ "search"
Your choice>

Answer "1" (OneDrive Personal or Business).

All done. You can exit now.

Code Block
titleCreate your OneDrive folder
$ mkdir ~/OneDrive

Mount

Code Block
titleAlways mount using "full" VFS cache mode
$ rclone mount --vfs-cache-mode full OneDrive: ~/OneDrive &

For more detailed information, please visit: https://rclone.org/commands/rclone_mount/

Unmount

Code Block
titleUnmount using fusermount
$ fusermount -u ~/OneDrive

Refresh token

Code Block
titleRefresh token if it no longer works
$ rclone config

Edit OneDrive, answer yes to the first question. Answer all defaults until rclone says that the token already exists, refresh? Say yes.

...

In order to get the mount added on login, you need to create a file named onedrive.desktop in ~/.config/autostart with the following lines:

Code Block
title~/.config/autostart/onedrive.desktop
[Desktop Entry]
Name=Onedrive
Type=Application
Exec=sh -c "rclone mount --vfs-cache-mode full OneDrive: ~/OneDrive &"

...