Andrew Baker

Quick Notes - Using Onedrive on Linux

If you want to use OneDrive on Linux as no native client is available yet :(

I’ve been using an free open source for a couple of days called OneDriver from Github written by Jeff Stafford and his Contributors.

It is available here OneDriver, it is a really good project and here is an extract from the readme if you are curious


onedriver is a native Linux filesystem for Microsoft OneDrive.

onedriver is a network filesystem that gives your computer direct access to your files on Microsoft OneDrive. This is not a sync client. Instead of syncing files, onedriver performs an on-demand download of files when your computer attempts to use them. onedriver allows you to use files on OneDrive as if they were files on your local computer.

onedriver is extremely straightforwards to use:

  • Install onedriver using your favorite installation method.
  • Click the “+” button in the app to setup one or more OneDrive accounts. (There’s a command-line workflow for those who prefer doing things that way too!)
  • Just start using your files on OneDrive as if they were normal files.

I’ve spent a lot of time trying to make onedriver fast, convenient, and easy to use. Though you can use it on servers, the goal here is to make it easy to work with OneDrive files on your Linux desktop. This allows you to easily sync files between any number of Windows, Mac, and Linux computers. You can setup your phone to auto-upload photos to OneDrive and edit and view them on your Linux computer. You can switch between LibreOffice on your local computer and the Microsoft 365 online apps as needed when working. Want to migrate from Windows to Linux? Just throw all your Windows files into OneDrive, add your OneDrive account to Linux with onedriver, and call it a day.

Microsoft OneDrive works on Linux.

Getting started with your files on OneDrive is as easy as running: onedriver /path/to/mount/onedrive/at (there’s also a helpful GUI!).

Key features

onedriver has several nice features that make it significantly more useful than other OneDrive clients:

  • Files are only downloaded when you use them. onedriver will only download a file if you (or a program on your computer) uses that file. You don’t need to wait hours for a sync client to sync your entire OneDrive account to your local computer or try to guess which files and folders you might need later while setting up a “selective sync”. onedriver gives you instant access to all of your files and only downloads the ones you use.

  • Bidirectional sync. Although onedriver doesn’t actually “sync” any files, any changes that occur on OneDrive will be automatically reflected on your local machine. onedriver will only redownload a file when you access a file that has been changed remotely on OneDrive. If you somehow simultaneously modify a file both locally on your computer and also remotely on OneDrive, your local copy will always take priority (to avoid you losing any local work).

  • Can be used offline. Files you’ve opened previously will be available even if your computer has no access to the internet. The filesystem becomes read-only if you lose internet access, and automatically enables write access again when you reconnect to the internet.

  • Fast. Great care has been taken to ensure that onedriver never makes a network request unless it actually needs to. onedriver caches both filesystem metadata and file contents both in memory and on-disk. Accessing your OneDrive files will be fast and snappy even if you’re engaged in a fight to the death for the last power outlet at a coffeeshop with bad wifi. (This has definitely never happened to me before, why do you ask?)

  • Has a user interface. You can add and remove your OneDrive accounts without ever using the command-line. Once you’ve added your OneDrive accounts, there’s no special interface beyond your normal file browser.

  • Free and open-source. They’re your files. Why should you have to pay to access them? onedriver is licensed under the GPLv3, which means you will always have access to use onedriver to access your files on OneDrive.