Aakash Howlader
All writing

NTFS repair on Linux: a guide for drives that won't mount

NTFS drive won't mount on Linux? Diagnose dirty flags, hibernation and disk errors, then choose ntfsfix, Mount Medic or Windows chkdsk.

An external hard drive and USB cable under a magnifying glass, with a yellow-threaded inspection tag.

TL;DR: A drive that won’t mount needs a diagnosis before a repair. Check which partition you’re looking at, read the error, and separate an unclean shutdown from Windows hibernation or hardware trouble. Linux has limited NTFS repair tools; some problems still need Windows.

I wrote Mount Medic after a power cut left my NTFS drives refusing to mount. My code, games, and other files were on those drives, so that was a pretty effective way to ruin the day. I covered that in the original project post.

This is the troubleshooting guide I wanted at the time: what to check, which commands do what, and when to stop.

First, work out which problem you have

An NTFS mount failure can have several causes. The next step depends on the evidence:

What you see What to do next
A dirty-volume message after a crash or power cut Check the partition and its state before considering a limited repair.
Hibernation, Fast Startup, or cached Windows metadata Resume the original Windows installation and shut it down fully.
I/O errors, repeated disconnects, or a drive that keeps disappearing Stop repair attempts and prioritize imaging or recovery.
An MFT mirror mismatch or invalid NTFS structures Investigate the exact damage; a generic repair command is not enough evidence.
Missing driver support, a missing utility, or insufficient permissions Resolve that specific problem before deciding the filesystem needs repair.

If readable files matter, copy them to a different drive before authorizing repairs. If the device is failing, preserve it through an appropriate image or clone first and work on the copy. Repeated filesystem repair is the wrong first step for failing hardware. The Mount Medic Windows recovery guide explains that boundary too.

The steps below assume a normal NTFS data partition. If the layout involves BitLocker, RAID, device-mapper, or another storage layer you don’t understand, identify the actual filesystem device before proceeding. Never accept a prompt to initialize or format a drive just to make it accessible.

Identify the NTFS partition and check whether it’s mounted

Start with an inventory. This command lists devices; it does not repair them:

lsblk --paths --output NAME,TYPE,SIZE,FSTYPE,LABEL,UUID,MOUNTPOINTS,MODEL,SERIAL

Match the partition using its size, filesystem, UUID, and parent drive’s model and serial. A label such as Games is useful context, but it isn’t a unique identity. Also distinguish a partition such as /dev/nvme0n1p2 from the whole disk /dev/nvme0n1.

Find a matching partition link under /dev/disk/by-id/:

ls -l /dev/disk/by-id/

Replace the placeholder below with the verified partition link. Partition links commonly end in -partN. Recheck the resolved path against your inventory, especially after reconnecting a drive:

device='/dev/disk/by-id/REPLACE-WITH-VERIFIED-NTFS-PARTITION'
readlink -f "$device"
lsblk --paths --output NAME,TYPE,SIZE,FSTYPE,LABEL,UUID,MOUNTPOINTS "$device"
findmnt --source "$device" --output SOURCE,TARGET,FSTYPE,OPTIONS

lsblk shows block-device information; findmnt shows matching mounts. Neither is an NTFS integrity check. See their maintained manuals for lsblk and findmnt.

If it is mounted, don’t run filesystem repair against it. Close programs using it and unmount it normally before considering a write. If unmounting reports that it is busy, investigate the users of the drive. Avoid forced or lazy unmounts here. Stop background watchers and automounters as well; in Mount Medic, use Quit, since closing its window leaves it running.

An empty findmnt result only describes the current mount namespace. Containers, VMs, or other disk tools may still be using the device. If you cannot establish that it is unused, stop before repair.

Read the mount error before changing anything

Look at the kernel messages around the failed mount:

sudo journalctl --kernel --boot --no-pager

Match the messages to the selected device and the time of the failure. A desktop’s generic mount-error dialog often leaves out the useful part.

“volume is dirty and ‘force’ flag is not set”

With the kernel’s ntfs3 driver, this means the dirty state is preventing a normal mount. It is a reason to investigate the unfinished filesystem state. It does not establish how much damage exists or whether every file is intact.

Adding force bypasses that refusal. The NTFS3 documentation explicitly discourages this mount option. Don’t add it to fstab as a repair strategy.

Hibernation or cached Windows state

Windows hibernation and Fast Startup can leave state that makes Linux write access unsafe, even without ordinary filesystem corruption. Resume the original Windows installation, save your work, and perform a full shutdown. If it keeps happening, disable Fast Startup in Windows Power Options. The NTFS-3G manual explains the Windows shutdown requirement.

After saving and closing your work, Windows’ command-line shutdown is:

shutdown /s /t 0

This shuts Windows down without requesting its /hybrid Fast Startup mode. Microsoft documents these shutdown options.

Return to Linux and check again. Hibernation by itself doesn’t mean you should run a filesystem repair. Don’t remove the hibernation file from Linux to get around the refusal.

I/O errors or repeated resets

These can indicate a device, connection, or controller problem. Stop writes and investigate recovery before repair. A tool reporting success cannot make an unreliable drive safe to keep using.

How to check an NTFS disk on Linux without repairing it

If the NTFS-3G utilities are available, use their read-only mountability probe on the selected partition:

sudo ntfs-3g.probe --readonly "$device"
probe_status=$?
printf 'NTFS probe exit status: %s\n' "$probe_status"

The exit status matters, including when the command prints very little:

Status Meaning
0 The volume is mountable in the requested read-only mode.
12 A valid NTFS filesystem was not found.
13 Inconsistent NTFS, a hardware/driver problem, or an unconfigured RAID setup.
14 Hibernation was detected.
15 The volume was not cleanly unmounted.
16 The device is already exclusively in use.
19 Insufficient privilege.

Other statuses need investigation too; the upstream probe manual lists all of them.

Read-only mountability is not a full disk check or permission to write. A successful read-only result can coexist with dirty state or a condition that prevents safe write access. If the utility is missing, install the appropriate NTFS-3G tools for your distribution or use the app workflow below; a missing command tells you nothing about the drive’s health.

You may also see ntfsfix -n recommended. Its documented no-action mode reports proposed work, but it is not a comprehensive NTFS validator or a substitute for the app’s read-only probe and repair eligibility checks. The ntfsfix manual describes its deliberately limited scope.

When a limited ntfsfix repair makes sense

ntfsfix can address some basic NTFS inconsistencies, reset the journal, and request a Windows consistency check. Its scope is much smaller than Windows chkdsk.

Before a manual repair, establish all of these:

  • The target is the freshly verified NTFS partition, unmounted and unused.
  • Readable important files are backed up elsewhere; there is no evidence of failing hardware.
  • Hibernation and cached Windows state have been ruled out.
  • You understand the reported problem and have decided to allow writes. An unexplained error or a previous safety refusal needs review first.

If those conditions hold and you choose a limited Linux repair, run this once:

sudo ntfsfix "$device"
repair_status=$?
printf 'ntfsfix exit status: %s\n' "$repair_status"

Keep the output and let it finish. Standalone ntfsfix does not provide Mount Medic’s complete checks, exclusive device claim, or recorded repair-attempt tracking.

Ordinary ntfsfix retains or sets the dirty flag to request a subsequent Windows check. The -d option can clear that flag and its check request; -b clears bad-sector records. Neither is a generic next step to add when the first attempt fails. See the upstream option definitions.

Exit status 0 means the tool completed its limited work. It doesn’t certify every file, and the remaining dirty state may still prevent an NTFS3 mount. Arrange the Windows check rather than repeatedly rerunning repair or adding force options. After a failed or interrupted operation, preserve the evidence and establish what finished before trying anything else.

When you need Windows chkdsk

Use Windows when the damage exceeds the Linux tool’s scope, the diagnosis is uncertain, or the limited repair hasn’t resolved the problem. Address hibernation through the original Windows session first. If the hardware is failing, recovery or imaging still comes before filesystem repair.

In Windows Disk Management, match the correct disk and partition by identity, size, and layout. Its Windows drive letter is separate from the Linux device path. If it appears as RAW or unallocated, stop and investigate; don’t format it.

Close applications using the volume and open Command Prompt → Run as administrator. Replace X: with the verified drive letter. First request a report:

chkdsk X:

Read the result before choosing repair. A report on an active, unlocked volume can be misleading. To repair logical filesystem errors:

chkdsk X: /f

Windows needs to lock the volume. If it cannot, close whatever is using it; a system volume may need a scheduled check at restart. Let the repair finish, read its final report, and verify important files. /r adds a bad-sector scan and /x forces a dismount, so avoid copying a bundle of flags without understanding why you need them. Microsoft’s chkdsk reference explains the checks and options.

Fully shut Windows down before returning to Linux. For a separate data drive, an existing Windows VM with exclusive device passthrough is another route, covered in the manual Windows repair guide. A shared folder doesn’t give chkdsk access to the underlying block device.

Where Mount Medic helps

I built Mount Medic to put drive identification, read-only diagnosis, safety checks, and limited repair in one place. It has a native Linux desktop app and a CLI; the limited repair still uses ntfsfix. The manual steps above are useful without installing it.

In the desktop app, More → Diagnostics shows the selected drive’s report and next steps. The CLI workflow below makes each action explicit.

For setup, follow the Mount Medic installation instructions. The guided installer runs as your normal user, previews dependency and system changes, and requests administrator access when needed. On Arch, installing missing dependencies can include a full system upgrade.

Check one drive without enabling automatic actions

With the app installed, inspect its capabilities and discover drives:

mount-medic doctor --json
mount-medic list --json

Match the intended drive, then replace VOLUME_ID with its current ID from list:

mount-medic check VOLUME_ID --json

That explicit check is read-only and doesn’t enroll the drive. A bare mount-medic check checks enrolled drives only. For checks, exit 0 means no attention is needed, 1 means a finding needs attention, and 2 means the check couldn’t complete. Read the result before moving on. The released CLI documentation covers the commands.

Review a repair separately

You can preview a proposed action:

mount-medic repair VOLUME_ID --dry-run --json

This preview performs discovery only. It doesn’t certify eligibility. At execution, Mount Medic rechecks the selected drive and requires exclusive access. Hibernation, cached Windows state, I/O errors, a busy device, and incomplete checks block repair.

If the diagnosis is eligible and you choose to proceed:

mount-medic repair VOLUME_ID

The default repair clears the dirty flag and its request for a Windows check. To retain or set that request instead, choose mount-medic repair VOLUME_ID --keep-dirty. Keeping the request can leave normal mounting blocked until Windows checks the volume. Review the confirmation and use normal administrator authentication. Repair and mounting are separate actions; after reviewing a successful result, a normal mount can be requested with mount-medic mount VOLUME_ID.

Monitoring, automatic repair, and automatic mounting are separate permissions for each drive. You don’t need to enable them for a one-time check or repair. If the app refuses an operation, investigate its reason before reaching for another tool.

The specific mirror case it can recover

Since 1.4.0, Mount Medic can handle a narrowly defined mismatch where the primary volume metadata has a dirty flag that its otherwise valid mirrored copy hasn’t caught up with. Its probe validates that pattern and completes the remaining checks without writing during diagnosis.

There is a recorded recovery case with the checks and observed result. This isn’t general MFT reconstruction: other mirror differences, malformed records, and incomplete checks still stop repair. It doesn’t turn every “MFT mirror mismatch” into an automatically repairable problem.

After repair, check your files

Read the final report, confirm the device’s identity again, and try a normal mount only after resolving the reported condition. Open important files and check your working repositories or backups. Being able to list a directory is useful evidence, but it doesn’t establish that every file survived.

If the same problem returns, investigate the cause: unsafe disconnects, power interruptions, Windows shutdown state, the connection, or the drive itself. Stop repeating repairs when errors persist. Keep a backup on a different device.

For the dirty-flag and unclean-journal cases its checks accept, Mount Medic can save some of the back-and-forth. For everything else, the diagnosis should tell you why a different recovery path is needed.

Keep reading

All writing

Software. Football. Heavy metal.

Aakash HowladerSame person. Different playgrounds.