logo
search
OneDrive File Issues

How to Fix OneDrive Constant Disk Activity Caused by a Junction

Guest WriterGuest Writer Sep 27, 2026 869 views

Question details

The user needs to stop OneDrive from continuously writing data to the disk when no files are actively synchronizing.

How to Fix OneDrive Constant Disk Activity Caused by a Junction
Product
Microsoft OneDrive
Device & OS
not provided
Scenario
Synchronizing a large volume of data (e.g., over a terabyte across millions of files) where a directory junction has been created to link an external drive into the OneDrive folder.
Observed behavior
OneDrive continuously writes approximately 5 MB per second to its database in a background loop, severely impacting SSD lifespan, because it repeatedly tries to process a junction that points to an unavailable external drive.
Before you start

Ensure you have administrator privileges on your computer to manage system junctions and verify whether the external drive linked to your OneDrive folder is currently disconnected.

Solution 1Recommended

Remove the Unavailable Directory Junction

Deleting the junction point that references the disconnected drive prevents OneDrive from getting stuck in an indexing loop, immediately stopping the high disk usage.

When OneDrive encounters a directory junction pointing to an unavailable disk, a bug in the synchronization engine causes it to repeatedly process the path and update its database. This loop leads to continuous disk writes (often around 5 MB/s) even when no files are changing.

To resolve this, you must remove the junction point from your OneDrive folder. Doing this safely via the Command Prompt ensures you are only deleting the link, not the actual files.

1
Open Command Prompt as Administrator

Click the Start menu, type 'cmd' into the search bar, right-click on 'Command Prompt', and select 'Run as administrator'.

2
Navigate to Your OneDrive Directory

Use the 'cd' command to navigate to the specific OneDrive folder containing the junction. For example, type 'cd C:\Users\YourUsername\OneDrive' and press Enter.

3
Identify the Junction Point

Type 'dir /al' and press Enter. This command lists all directory links and junctions in the current folder, helping you identify the exact name of the problematic junction.

4
Remove the Junction

Type 'rmdir "YourJunctionFolderName"' (replacing the placeholder with the actual folder name) and press Enter. This removes the junction link without touching the files on your external drive.

5
Restart OneDrive

Right-click the OneDrive icon in your system tray, select 'Quit OneDrive', and then reopen the application from the Start menu. Open Task Manager to confirm the disk usage has dropped to normal levels.

Remove the Unavailable Directory Junction
Safe Link Removal: Using the 'rmdir' command on a junction point is entirely safe. It only removes the reference shortcut from the OneDrive folder and leaves your original files on the external drive completely intact.
Free Microsoft Office alternative

Switch to WPS Office for Reliable File Syncing

Tired of troubleshooting OneDrive synchronization bugs and high disk usage? WPS Office is a robust, free Microsoft Office alternative that includes stable, built-in cloud storage. Enjoy seamless document backup and synchronization without the background indexing loops that drain your SSD lifespan.

  1. 1. Download the Installer: Visit the official WPS website and download the free WPS Office installation package for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the quick installation prompts to complete the setup process.
  3. 3. Enable Cloud Backup: Sign in to your free WPS account to activate WPS Cloud, ensuring your documents are safely and efficiently synced in the background.
Lightweight suite with optimal system resource managementBuilt-in WPS Cloud for stable, bug-free document synchronization100% format compatibility with Microsoft Word, Excel, and PowerPointFamiliar, intuitive user interface requires no learning curve
microsoft office alternative - wps office

Frequently Asked Questions

Why is OneDrive constantly writing to my SSD without syncing any files?

This happens due to an indexing loop. If you have created a directory junction inside your OneDrive folder that points to an external drive, and that drive is disconnected, OneDrive repeatedly tries to process the unavailable path, writing errors or indexing attempts to its database continuously.

Will 5 MB/s continuous disk writing damage my solid-state drive (SSD)?

Yes, over time. A continuous write speed of 5 MB/s equates to over 400 GB of data written per day. This rapidly consumes the Terabytes Written (TBW) endurance rating of an SSD, which can significantly shorten its lifespan and lead to premature hardware failure.

Does deleting a directory junction in Windows delete the target files?

No. A directory junction acts as a soft link or shortcut. When you remove it using the 'rmdir' command in the Command Prompt, Windows only deletes the link itself. The original files on the destination drive remain completely safe and untouched.

Can I keep the junction point and stop the constant disk usage?

If you need to keep the junction, the only way to stop the constant disk usage is to ensure the external drive it points to is always connected and accessible when OneDrive is running. Alternatively, you can pause OneDrive syncing before disconnecting the external drive.