Use this when one file needs several names on the same volume.
Hard Links
A hard link is an extra directory entry for the same file on the same NTFS volume; the file stays until all links are removed. Create one with mklink /H link target or fsutil hardlink create.
1. fsutil hardlink list <file> — all names.
2. Create: New-Item -ItemType HardLink.
3. Same volume only.
4. Deleting one name leaves the data.
5. WinSxS uses hard links — size reports overcount.
multiple names → same file record on one volume
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Expecting hard links across volumes.
Step 2 Where it fails Narrow the fault
Failure analysis for Filesystem → Hard Links follows the Windows chain of components: target identity/version → persistent configuration/source of truth → provider/service/control plane → runtime/effective state → user/workload-visible result → event/log evidence.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Hard links work only on the same volume.
- The file data stays until the last link is deleted.
- Space is counted once.
Get-Volume— volumes, filesystem type, health and free spacefsutil fsinfo volumeinfo C:— filesystem featureschkdsk C: /scan— online scanGet-WinEvent -FilterHashtable @{LogName='System';ProviderName='Ntfs'} -MaxEvents 20— NTFS events
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Hard links are additional directory entries for the same NTFS file (same volume only, files only). The data is deleted when the last link is removed. Windows' component store relies on them: files in C:\Windows\System32 are often hard links to C:\Windows\WinSxS, which is why Explorer overstates WinSxS size.
mklink /H C:\Data\b.txt C:\Data\a.txt
fsutil hardlink list C:\Windows\System32\notepad.exe
ReferenceConfiguration & state1 section · depth on demand
Commands
mklink /H copy.txt original.txt
fsutil hardlink list original.txt
Documented example, not captured output. Hard links work only for files on the same NTFS volume. Deleting one name keeps the data until the last link is removed. WinSxS uses hard links heavily, which is why it looks larger in Explorer than it really is.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystem → Hard Links. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/ntfs-overview · confidence 94%