OneDrive File Issues

Fix OneDrive Files On-Demand with a Mapped Samba Drive

Muhammad TalhaMuhammad Talha Nov 14, 2026 868 views

Question details

The user wants to use OneDrive Files On-Demand with a sync folder redirected to a mapped Samba drive and access the files from Windows and Linux.

OneDrive Files On-Demand Does Not Support Mapped Samba Drives
Product
Microsoft OneDrive Files On-Demand
Device & OS
Windows 10 and Linux
Scenario
The OneDrive sync location is redirected through a symbolic link to a mapped Samba directory to save local storage and enable access from both operating systems.
Observed behavior
OneDrive Files On-Demand may report that it cannot connect to Windows when the sync location points to the mapped Samba drive.
Before you start

Check that your files have finished syncing and are visible on the OneDrive website. Identify a local NTFS drive with enough space for the files you plan to keep available offline.

Solution 1Recommended

Move the OneDrive sync folder to a supported local drive

Use a local OneDrive folder instead of a symbolic link to a mapped Samba drive so Files On-Demand can work in a supported configuration.

Mapped network drives are not supported as OneDrive sync locations. Resetting OneDrive or starting the cldflt driver does not remove this limitation.

1
Unlink the current PC

Select the OneDrive cloud icon in the Windows notification area, open Help & Settings > Settings > Account, and select Unlink this PC.

2
Sign in again

Open OneDrive from the Start menu and sign in with the same Microsoft account.

3
Choose a local folder

On the OneDrive folder setup screen, select Change location and choose a folder on a local NTFS drive rather than the mapped Samba drive or a symbolic link to it.

4
Use Files On-Demand

Open the new OneDrive folder in File Explorer. Right-click files or folders and select Free up space to make them online-only, or Always keep on this device when you need offline access.

Move the OneDrive sync folder to a supported local drive
Access from Linux: You can access your OneDrive files from Linux through the OneDrive website. This does not make the Samba share a supported OneDrive sync location.
Free Microsoft Office alternative

Edit Office files with WPS Office

WPS Office is a free, lightweight alternative to Microsoft Office with a familiar interface and support for common Office formats, making it easy to work with existing documents. It does not change OneDrive's sync-location requirements.

Open and edit documents stored in an accessible local OneDrive folder.Compatible with Microsoft Office formats, including DOCX, XLSX, and PPTX.Use a familiar interface to move from Microsoft Office with less adjustment.Work with documents, spreadsheets, and presentations in one lightweight suite.
microsoft office alternative - wps office

Frequently Asked Questions

Can I put my OneDrive sync folder on a mapped Samba drive?

No. Mapped network drives are not supported as OneDrive sync locations. Choose a folder on a local NTFS drive during OneDrive setup instead.

Will a symbolic link make a Samba drive work with Files On-Demand?

No. Redirecting the sync folder through a symbolic link does not make the mapped network location supported and may cause a connection error.

Will resetting OneDrive or starting cldflt fix this problem?

Neither action removes the mapped-drive limitation. Use a supported local OneDrive folder instead.

How can I save local space after moving the OneDrive folder?

In File Explorer, right-click a file or folder in the local OneDrive folder and select Free up space. Online-only files require an internet connection when you open them.

How can I access my OneDrive files from Linux?

Open the OneDrive website in a Linux web browser and sign in to access your files. This is separate from using a mapped Samba drive as the Windows sync location.