Users will need this information when configuring access to OneDrive from a Linux Centos 8 VDI session.
Step-by-step guide
Configure
- Select "n" for "New remote
- Name your drive "OneDrive"
- Select "23" for type of storage
Then follow the instructions. Default answers can be accepted safely for every question that has one.
Mount
$ rclone mount --vfs-cache-mode full OneDrive: ~/OneDrive & |
For more detailed information, please visit: https://rclone.org/commands/rclone_mount/
Unmount
$ fusermount -u ~/OneDrive |
Refresh token
Edit OneDrive, answer yes to the first question. Answer all defaults until rclone says that the token already exists, refresh? Say yes.
- The drive will stay mounted as long as the session is kept alive
- Even if the empty destination mount point is readable for group/all users, it won't be accessible by anyone but the user while it is mounted
- NEVER mount without the "--vfs-cache-mode full" command-line parameter to avoid risk of data corruption
|
Autostart
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:
[Desktop Entry]
Name=Onedrive
Type=Application
Exec=sh -c "rclone mount --vfs-cache-mode full OneDrive: ~/OneDrive &" |
You may need to allow .desktop file to be trusted in order to make it work. |
Related articles
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
