LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ntfsfix

fixes common NTFS problems that prevent the filesystem from being mounted

TLDR

Repair an NTFS filesystem on a block device
$ sudo ntfsfix [/dev/sdXN]
copy

SYNOPSIS

ntfsfix [options] device

DESCRIPTION

ntfsfix fixes common NTFS problems that prevent the filesystem from being mounted. It resets the NTFS journal, clears the dirty flag, and repairs some structural issues without performing a full filesystem check.This tool is useful when Windows was not shut down properly and the NTFS partition is marked as needing a check (dirty). It allows Linux to mount the partition in read-write mode without booting into Windows first.For comprehensive NTFS repair, Windows' built-in chkdsk should be used, as ntfsfix only handles basic issues that prevent mounting.

PARAMETERS

-b, --clear-bad-sectors

Clear the list of bad sectors
-d, --clear-dirty
Clear the dirty flag on the volume
-n, --no-action
Perform a dry run; don't actually write changes

INSTALL

sudo apt install ntfs-3g
copy
sudo dnf install ntfs-3g
copy
sudo pacman -S ntfs-3g
copy
sudo apk add ntfs-3g-progs
copy
sudo zypper install ntfs-3g
copy
brew install ntfs-3g
copy

CAVEATS

Not a full repair tool; use Windows chkdsk for comprehensive repairs. The partition must be unmounted. Does not fix all NTFS corruption—serious issues still require Windows. Part of the ntfs-3g package.

SEE ALSO

ntfs-3g(8), mount(8), fsck(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid