OneDrive (Business)¶
Mount the OneDrive that comes with a Microsoft 365 work or school account on Linux with the RaiDrive CLI. Mount My Files or Shared, or any folder by its browser URL.
To get the account, keys or IDs this needs, see Before you begin in the OneDrive (Business) guide for the Windows app.
A default web browser is required for Microsoft authentication.
raidrivecli add onedrivebusiness
If you execute command without options, it will mount My Files. Shared can be chosen with the --subtype option.
raidrivecli add onedrivebusiness --subtype shared
If a mount directory is not specified, it will be mounted to a directory such as /mnt/onedrivebusiness under /mnt. To specify the mount directory, use the --mount-path option.
raidrivecli add onedrivebusiness --mount-path /myservices/onedrivebusiness
You can mount OneDrive using the URL copied from your browser. It's especially useful for mounting a special folder.
raidrivecli add onedrivebusiness --remote-url \
https://company-my.sharepoint.com/my?id=...
Info
OneDrive Business China storage uses onedrivebusinesschina instead of onedrivebusiness.
Additional options¶
--subtype <files|shared> My Files, Shared
--remote-url <url> folder URL in browser