Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Hard Links

Direct answer

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.

When to use this

Use this when one file needs several names on the same volume.

First 30 seconds

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.

Operational verification

multiple names → same file record on one volume

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows
Scope / prerequisiteUse this when one file needs several names on the same volume.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Hard links work only on the same volume.
  • The file data stays until the last link is deleted.
  • Space is counted once.
Key checks
  • Get-Volume — volumes, filesystem type, health and free space
  • fsutil fsinfo volumeinfo C: — filesystem features
  • chkdsk C: /scan — online scan
  • Get-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
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

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%
Confirmation

Confirm action

Continue?