Fix a Windows Partition Linux Refuses to Mount (ntfsfix)
Clear the NTFS dirty flag left behind by an unclean Windows shutdown so dual-boot partitions mount again.
01Command
$ sudo ntfsfix -d /dev/sdb202What it does
When Windows hibernates or crashes, it leaves the 'dirty' bit set on the NTFS volume, and Linux's ntfs-3g driver then refuses to mount the filesystem read-write to protect your data. ntfsfix repairs a handful of common inconsistencies, schedules a real chkdsk for the next Windows boot, and with -d clears the dirty flag so the volume mounts. It is not a full fsck replacement — for deep corruption you must run chkdsk from Windows itself.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- ntfsfix(8) — fix common errors and force Windows to check NTFSEvidence: Page documents the -d/--clear-dirty option ('Clear the dirty bit on the filesystem') and the 'dirty' flag concept; confirms ntfsfix and 'dirty' appear in the text.
- ntfsfix(8) — Ubuntu man page (ntfs-3g)Evidence: Man page text includes '-d' and '--clear-dirty' along with the warning that ntfsfix is not a Linux fsck for NTFS, confirming the flag and semantics.
Last verified: 2026-09-19 · Category: Files & Folders
06Related solutions
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.
ncdu scans a directory tree, then lets you browse sizes, navigate, and delete space hogs with one keypress.
Check how much space the binary journal consumes and permanently trim it by size, age, or file count.