How to fix ERROR_NOT_SAME_DEVICE (17)
Description
The system cannot move the file to a different disk drive. This error occurs when a move or rename operation is requested between two different volumes. Windows can only move a file instantly (by renaming it) when the source and destination are on the same volume; between volumes the file must be copied and then deleted.
Causes
- Moving between drives with a rename operation — a program tried to move a file to another drive, partition, or network share using a simple rename instead of a copy-and-delete.
- Paths that look the same but are different volumes — a folder that is actually a mounted volume, junction, symbolic link, or mapped drive pointing to another disk.
- Network shares — moving between two different shares, or between a mapped drive letter and a UNC path that point to different servers.
- Cloud and virtual drives — folders backed by a different file system driver (cloud drives, RAM disks, VHDs) that are mounted inside a normal drive.
Solutions
-
Use copy instead of move — copy the files to the destination, verify them, and then delete the originals. TeraCopy's Copy operation followed by deletion of the source achieves the same result.
-
Check for junctions and mount points — if the source and destination appear to be on the same drive, check whether one of the folders is a junction or mounted volume (run
dir /ALin the parent folder in Command Prompt). -
Use consistent paths — use either the mapped drive letter or the UNC path for both source and destination, not a mix of both.
-
Update the application — if the error comes from another program or script performing the move, make sure it supports moving between volumes, or contact its developer.