Sync USB Drive to OneDrive – Simple Step‑by‑Step Guide
In this article
Yes, you can sync a USB flash drive with OneDrive by copying its contents into a OneDrive‑synced folder or by creating a symbolic link that lets OneDrive treat the USB folder as part of its cloud library.
What You'll Need
- A Windows 10 or Windows 11 PC with the OneDrive desktop client installed and signed in.
- A USB flash drive or external hard drive that you want to keep backed up.
- Enough free space in your OneDrive account to hold the files you plan to sync.
- Optional: a free third‑party sync utility such as FreeFileSync if you prefer an automated two‑way sync.
Step‑By‑Step
- Insert the USB drive into an available USB port. Windows should assign it a drive letter (for example,
E:) and display a notification. - Open File Explorer (Windows + E) and locate the OneDrive folder. By default it lives at
C:\Users\YourUserName\OneDrive. If you have changed the location, navigate to the custom path. - Create a dedicated sub‑folder inside OneDrive for the USB content. Right‑click inside the OneDrive folder, choose New > Folder, and name it something clear, such as
USB_Backup. - Open the USB drive in a second File Explorer window. Select the files or folders you want to keep in the cloud, right‑click and choose Copy (or press Ctrl +C).
- Return to the OneDrive
USB_Backupfolder, right‑click inside the pane and choose Paste (or press Ctrl + V). The files will begin uploading automatically; you can watch progress in the OneDrive task‑bar icon. - If you want the USB drive to stay in sync automatically whenever you plug it in, use a symbolic link instead of a one‑time copy. Open an elevated Command Prompt (search “cmd”, right‑click, Run as administrator).
- In the Command Prompt, type the following command, replacing
E:\with your USB drive letter andC:\Users\YourUserName\OneDrive\USB_Backupwith the OneDrive sub‑folder you created:mklink /D "C:\Users\YourUserName\OneDrive\USB_Backup" "E:\"
Press Enter. Windows will create a directory junction that points the OneDrive folder directly at the USB drive. - Leave the USB drive plugged in and open OneDrive. The client will treat the linked folder as any other OneDrive folder and begin syncing its contents to the cloud. Any changes you make on the USB drive will be uploaded, and any changes made on another device will be downloaded to the USB drive the next time it is connected.
- If you prefer a graphical tool, download and install FreeFileSync (official website). Launch the program, set the left panel to the USB drive and the right panel to the OneDrive
USB_Backupfolder, then click the Synchronize button. Choose the “Mirror” or “Two‑Way” mode depending on whether you want changes to flow in both directions. - Configure the sync schedule in FreeFileSync (menu Tools > Scheduler) if you want the sync to run automatically at set intervals. Save the batch job and enable Windows Task Scheduler to launch it when the USB drive is detected.
- Verify that the files appear in the OneDrive web portal (login at onedrive.com). If the upload completed successfully, you now have a cloud backup that updates whenever the USB drive is connected.
Common Mistakes
- Leaving the USB drive unplugged after creating a symbolic link. The link points to a location that no longer exists, causing OneDrive to report “File not found” and halt sync.
- Exceeding OneDrive storage limits. OneDrive will stop uploading once the quota is reached, and the task‑bar icon turns red.
- Using a drive letter that changes. If Windows assigns a different letter on subsequent connections, the symbolic link points to the wrong path. Assign a permanent drive letter via Disk Management (right‑click Start > Disk Management > Change Drive Letter).
- Copying files larger than 100 GB. OneDrive imposes a file‑size limit; such files will be skipped and listed in the sync error report.
- Relying on “Make available offline” for a USB folder. That option works only for items already inside OneDrive, not for external drives.
Tips
- Give the OneDrive sub‑folder a clear name and keep the USB drive’s root folder tidy – OneDrive treats every sub‑folder as a separate sync unit.
- Enable “Files On‑Demand” in OneDrive settings (Settings > Preferences) to save local disk space while still keeping the cloud copy.
- If you frequently move the USB drive between computers, store the symbolic‑link command in a .bat file and run it each time you connect the drive.
- Turn on battery‑saver exceptions for OneDrive (Settings > System > Power & battery > Battery saver > Allow apps to run in the background) so syncing continues on laptops.
- Regularly check the OneDrive sync status by hovering over the cloud icon in the task‑bar; a green check means everything is up‑to‑date.
Troubleshooting
If your USB drive does not appear to sync, follow these steps in order of increasing complexity.
- Restart OneDrive. Right‑click the OneDrive cloud icon, select Close OneDrive**, then reopen it from the Start menu. This often clears temporary glitches.
- Check internet connectivity. OneDrive requires an active connection; a brief outage will pause sync and show a “Waiting for network” notice.
- Verify that you are signed in. Click the OneDrive icon, choose Help & Settings > Settings, and confirm your account email is displayed.
- Confirm storage availability. In OneDrive settings, go to the Account tab and view the “Storage” bar. If you are near the limit, delete or move files to free space.
- Make sure the symbolic link points to the correct drive. Open Command Prompt and run
dir "C:\Users\YourUserName\OneDrive\USB_Backup". If the path shows “The system cannot find the path specified”, delete the link (rmdir) and recreate it with the current drive letter. - Check for file‑type restrictions. OneDrive blocks certain executable extensions (e.g.,
.exe,.bat) by default. Rename or move those files to a separate folder if you need them backed up. - Look for path‑length issues. Windows limits paths to 260 characters. If a file inside the USB drive has a very deep folder hierarchy, OneDrive will skip it and list an error. Shorten folder names or move the file higher in the tree.
- Update the OneDrive client. Open Settings > About and click Version. If a newer version is available, download it from Microsoft’s website.
- Re‑install OneDrive. As a last resort, uninstall via Settings > Apps > Apps & features, then reinstall from the Microsoft Store. This will not delete your cloud files, but local copies will be re‑downloaded.
Frequently Asked Questions
Can I sync a USB drive without copying the files to my PC?
Yes. By creating a directory junction (symbolic link) that points a OneDrive folder directly at the USB drive, OneDrive treats the external folder as part of its library and syncs it while the drive is attached.
Will OneDrive sync hidden or system files on the USB drive?
OneDrive ignores files marked as system or hidden by default. To back up such files, remove the hidden attribute (right‑click > Properties > uncheck “Hidden”) before syncing.
Do I need a paid OneDrive plan to sync large USB drives?
The free plan provides 5 GB of storage. If the total size of the USB content exceeds that amount, you’ll need a paid plan with more space or you must selectively sync only essential folders.
Can I sync the USB drive on a Mac?
macOS includes a OneDrive client, but the Windows‑style mklink command does not exist. On a Mac you would need to copy the files into the OneDrive folder or use a third‑party sync app that supports macOS.
What happens if I disconnect the USB drive while OneDrive is uploading?
OneDrive pauses the upload and marks the files as “pending”. When you reconnect the drive, the client resumes syncing automatically.
Is there a way to schedule automatic sync without keeping the drive plugged in?
OneDrive sync occurs only when the source folder is reachable. To achieve scheduled sync, you must keep the USB drive connected or use a background sync tool that copies the data to a local OneDrive folder before the cloud upload runs.