OneDrive File Issues

Fix OneDrive Incorrect Storage Space with Hard Links or Junctions

Nimra MalikNimra Malik Nov 2, 2026 868 views

Question details

The user needs to fix an issue where OneDrive displays a negative or incorrect amount of remaining storage space and fails to sync correctly after linking an external folder to the OneDrive directory.

Fix OneDrive Showing Negative Storage Caused by Hard Links or Junctions
Product
Microsoft OneDrive
Device & OS
Windows
Scenario
Attempting to synchronize an external work folder by creating a directory junction (mklink /j) or hard link inside the OneDrive folder without physically moving the original folder.
Observed behavior
After synchronization begins, the OneDrive Settings under Account > Choose folders show a negative value for remaining space, and the syncing process may stop or behave unexpectedly.
Before you start

Before modifying your folder structures, right-click the OneDrive icon in your system tray and pause syncing to prevent any data conflicts or further calculation errors.

Solution 1Recommended

Remove the Directory Junction and Move the Folder Physically

OneDrive's sync engine is not designed to support hard links or junctions, which causes the storage calculation to fail. You must remove the link and place the actual files into the OneDrive folder.

Because OneDrive relies on standard file system paths to calculate storage and monitor file changes, directory junctions (created via mklink) confuse its indexing process. Removing the junction and moving the actual folder is the only officially supported method.

1
Delete the junction link

Open File Explorer and navigate to your OneDrive directory. Delete the folder shortcut (junction) you created. Do not delete the original external work folder.

2
Move the original folder

Navigate to your original external work folder, cut or copy the entire folder, and paste it directly into your OneDrive directory.

3
Resume syncing

Open OneDrive from the system tray, resume syncing, and allow the application to process the newly moved files natively.

4
Verify storage space

Go to OneDrive Settings > Account > Choose folders. Verify that the 'Remaining space' value is now displaying a correct, positive number.

Remove the Directory Junction and Move the Folder Physically
Data Safety: Deleting the junction link inside the OneDrive folder will only remove the redirect pointer; your original files in the external drive remain perfectly safe.
Free Microsoft Office alternative

Switch to WPS Office for Seamless Built-in Cloud Sync

If complex OneDrive sync errors and storage miscalculations are slowing down your productivity, consider trying WPS Office. It provides an intuitive, lightweight office suite equipped with its own dedicated cloud storage, allowing you to save and sync documents effortlessly without struggling with complicated directory setups.

  1. 1. Visit the website: Go to the official WPS Office website to find the free installer.
  2. 2. Download and install: Click the download button and run the lightweight installation file on your computer.
  3. 3. Sign in for cloud sync: Open WPS Office and sign in to activate your free WPS Cloud storage for hassle-free syncing.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats (.docx, .xlsx, .pptx).Built-in WPS Cloud automatically syncs your files seamlessly across all your devices.Lightweight application design ensures fast performance even on older PCs.Free to use for everyday document creation and editing tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does OneDrive show negative storage space when using a directory junction?

OneDrive calculates available storage by indexing the physical size of files within its directory. When a directory junction (mklink) points to an external location, the sync engine's space calculation malfunctions, often resulting in incorrect or negative values for remaining space.

Can I sync folders outside the OneDrive folder officially?

No, Microsoft explicitly states that OneDrive is not designed to synchronize folders using hard links or junctions. All files and folders must be physically located within the designated OneDrive directory to sync properly.

Will deleting the directory junction in OneDrive delete my original files?

As long as you only delete the junction link (the shortcut) from within the OneDrive folder via File Explorer or Command Prompt, your original source files located on your external drive will not be deleted or affected.