Mount OneDrive in Windows with Rclone

Mount OneDrive as a drive in Windows with Rclone.

Rclone allows us to mount cloud storage in our system, either as a drive or in a folder. This way we can access the cloud storage like a network drive, without the official client and without synchronisation. Rclone is available for different operating systems, so for example OneDrive can be used in Linux.

In this article, we will look at how we can use Rclone on Windows as well.

Video description

Download Rclone

Let’s start with the download. The Windows version comes as a ZIP archive, which we simply have to unpack. In the folder we then find the “rclone.exe”.

Configuring cloud storage in Rclone

We type “cmd” in the Explorer address bar. This opens a command prompt, using “rclone.exe” we start Rclone. A text menu appears. Here we select “n” for “New remote”.

In the first step we enter a name, e.g. “onedrive”. We will need this name later for access and integration into the system.

A long list of supported cloud storages follows. In principle, we can access all cloud storages with rank and name, also Google Drive, Seafile, HiDrive and other cloud services are supported. The basic procedure is the same.

We enter “31”, for “Microsoft OneDrive”.

This is followed by a query for the “client_id” and the “client_secret”. Good for us, we don’t have to enter anything here and confirm both with Enter.

We are then asked where our data is clouded. Here, we simply enter “1” for the region.

Fortunately, we can also simply answer the query for the advanced configuration with “n”, i.e. No. Then the authentication takes place, here we confirm with “Yes”. This opens a browser window. Here we may have to log in to OneDrive to authorise Rclone access.

Once this is done, we enter a “1” for “OneDrive Personal or Business” in “config_type”.

Rclone now suggests the “drives” it has found. Only one entry should appear here, which we confirm with “1”.

Two more confirmations follow, which we confirm twice with “Yes”.

Done! The configuration is now created and appears under “Current remotes” when “rclone.exe” is started.

Integrating OneDrive into Windows with Rclone

The configuration is now created, for access we now need to mount OneDrive. This can be done with one of the following commands:

rclone --vfs-cache-mode writes mount onedrive: *
rclone --vfs-cache-mode writes mount onedrive: X:

The first variant mounts the cloud storage under a free drive letter. The second variant under the default. In this case, “onedrive” is the name we assigned in the configuration.

OneDrive is then available in the new drive. With CTRL-C we can cancel the command in the command prompt, the drive is then disconnected.

It is best to put the command in a batch file so that the long command does not have to be entered each time.

Mount OneDrive in folder

Besides mounting it as a drive, we can also specify a folder:

rclone --vfs-cache-mode writes mount onedrive: C:\_temp\

In this case, OneDrive is mounted below the specified folder.


As we have seen, Rclone is a perfect way to integrate cloud storage into the system. In principle, we don’t need a client. Local storage is also not used, as no files are synchronised locally. Of course, this only works if we also have internet.

The method also works with other cloud systems, only the configuration steps differ slightly.

Leave a Reply

Your email address will not be published. Required fields are marked *