必ずアンマウントしておくこと。
$ sudo fsck /dev/sdbX
-p オプションをつければ、安全に修復できる場合は自動で修復してくれる。
-y オプションは修復するかどうかにすべて yes を答えたことになる。
NTFS を修復したい場合、fsck.ntsf は Linux Mint 17.2 に標準で入っていないようだ。「fsck: fsck.ntfs: not found」というメッセージが出る。
というか、/bin/ntfsfix がそれなのだそうである。
だから
$ sudo ln -s /bin/ntfsfix /sbin/fsck.ntfs
$ sudo ln -s /bin/ntfsfix /sbin/fsck.ntfs-3g
とシンボリックリンクを張っておけとのこと。
※参考
fsck can't find fsck.ntfs - Ask Ubuntu
ということでシンボリックリンクを張ろうとしたら、「ln: シンボリックリンク `/sbin/fsck.ntfs' の作成に失敗しました: ファイルが存在します」と出た。何だかよくわからないな。どうもそんなことをしなくても、
$ sudo ntfsfix /dev/sdbX
としておけばいいようだ。もちろんこれもアンマウントが必要。
$ man ntfsfix
NTFSFIX(8) System Manager's Manual NTFSFIX(8)
NAME
ntfsfix - fix common errors and force Windows to check NTFS
SYNOPSIS
ntfsfix [options] device
DESCRIPTION
ntfsfix is a utility that fixes some common NTFS problems. ntfsfix is
NOT a Linux version of chkdsk. It only repairs some fundamental NTFS
inconsistencies, resets the NTFS journal file and schedules an NTFS
consistency check for the first boot into Windows.
You may run ntfsfix on an NTFS volume if you think it was damaged by
Windows or some other way and it cannot be mounted.
OPTIONS
Below is a summary of all the options that ntfsfix accepts. Nearly
all options have two equivalent names. The short name is preceded by
- and the long name is preceded by --. Any single letter options,
that don't take an argument, can be combined into a single command,
e.g. -fv is equivalent to -f -v. Long named options can be abbrevi‐
ated to any unique prefix of their name.
-b, --clear-bad-sectors
Clear the list of bad sectors. This is useful after cloning an
old disk with bad sectors to a new disk.
-d, --clear-dirty
Clear the volume dirty flag if the volume can be fixed and
mounted. If the option is not present or the volume cannot be
fixed, the dirty volume flag is set to request a volume check‐
ing at next mount.
-h, --help
Show a list of options with a brief description of each one.
-n, --no-action
Do not write anything, just show what would have been done.
-V, --version
Show the version number, copyright and license
BUGS
There are no known problems with ntfsfix. If you find a bug please
send an email describing the problem to the development team:
ntfs-3g-devel@lists.sf.net
AUTHORS
ntfsfix was written by Anton Altaparmakov, with contributions from Sz‐
abolcs Szakacsits. It was ported to ntfs-3g by Erik Larsson and Jean-
Pierre Andre.
AVAILABILITY
ntfsfix is part of the ntfs-3g package and is available from:
http://www.tuxera.com/community/
SEE ALSO
mkntfs(8), ntfsprogs(8)
ntfs-3g 2013.1.13AR.1 January 2006 NTFSFIX(8)