How can I create hardlinks for a file on an NTFS partition using Windows?
NTFS can obviously handle hardlinks, since creating them with NTFS-3g works – the links even work in Windows. Is this the only way to create hardlinks on NTFS?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
cmd includes the
mklink command which can create hardlinks:
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/DCreates a directory symbolic link. Default is a file symbolic link.
/HCreates a hard link instead of a symbolic link.
/JCreates a Directory Junction.
Linkspecifies the new symbolic link name.
Targetspecifies the path (relative or absolute) that the new link refers to.
Furthermore, the excellent Far Manager has support for creating them (Alt+F6).
There are also a number of shell extensions that allow for doing so.
You can use Link Shell Extension to easily do what you want
fsutil hardlink create new_file old_file_name
You will need to run this from an elevated command prompt.