Skip to content

OneDrive

Mount your personal OneDrive on Linux with the RaiDrive CLI. Mount My Files or Shared, or any folder by the URL copied from your browser.

To get the account, keys or IDs this needs, see Before you begin in the OneDrive guide for the Windows app.

A default web browser is required for Microsoft authentication.

raidrivecli add onedrive

If you execute command without options, it will mount My Files. Shared can be chosen with the --subtype <files|shared> option.

raidrivecli add onedrive --subtype shared

If a mount directory is not specified, it will be mounted to a directory such as /mnt/onedrive under /mnt. To specify the mount directory, use the --mount-path option.

raidrivecli add onedrive --mount-path /myservices/onedrive

You can mount OneDrive using the URL copied from your browser. It's especially useful for mounting a special folder.

raidrivecli add onedrive --remote-url https://onedrive.live.com/?id=...

Additional options

--subtype <files|shared>                My Files, Shared
--remote-url <url>                      folder URL in browser

See also