Fix OneDrive Incorrect Storage Space with Hard Links or Junctions
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.

- 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 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.
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.
Open File Explorer and navigate to your OneDrive directory. Delete the folder shortcut (junction) you created. Do not delete the original external work folder.
Navigate to your original external work folder, cut or copy the entire folder, and paste it directly into your OneDrive directory.
Open OneDrive from the system tray, resume syncing, and allow the application to process the newly moved files natively.
Go to OneDrive Settings > Account > Choose folders. Verify that the 'Remaining space' value is now displaying a correct, positive number.

Use a Third-Party Tool to Mirror the External Folder
If you cannot move your work folder from its original drive location, use a file synchronization tool to duplicate its contents to OneDrive instead of using a hard link.
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. Visit the website: Go to the official WPS Office website to find the free installer.
- 2. Download and install: Click the download button and run the lightweight installation file on your computer.
- 3. Sign in for cloud sync: Open WPS Office and sign in to activate your free WPS Cloud storage for hassle-free syncing.

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.




