Question: I am trying to create a hardlink on my C drive that points to a file on my D drive. I open up a terminal with Administrator privileges and try the following:

C:Userssandro>mklink /H _vimrc D:sandro-desktop.vimrc

The error that I get is: The system cannot move the file to a different disk drive.

When I try a softlink I get the issue that for some reason changes to the link contents aren’t reflected on the targeted file.

Thank you!

Answer: A hard link is a file system feature that cannot cross a file system boundary. You can’t hard link files on C: to D: because they are separate file systems. They might each contain the same type of file sytem (eg. NTFS) but they are separate file systems.