NTFS
Wikipedia より:
- NTFS (New Technology File System) は、Microsoft が開発した独自のジャーナリングファイルシステムです。 Windows NT 3.1以降、これは WindowsNT ファミリのデフォルトのファイルシステムです。
Linux 5.15 以降、ntfs3 はファイルシステムの読み取りと書き込みをサポートしています。バージョン 5.15 以降の公式サポートカーネルはすべて CONFIG_NTFS3_FS=m でビルドされているため、これをサポートしています。
5.15 未満のカーネルでは、NTFS の読み取りと書き込みのサポートは NTFS-3G FUSE ファイルシステムによって提供されます。あるいは、ntfs3-dkms を使ってバックポートされた NTFS3 を使うこともできます。
目次
ヒントとテクニック
パフォーマンスの向上
パフォーマンスを向上のために、 いくつかの mount(8) オプションを有効にすることができます。
noatime– ファイルシステムの操作を高速化できます。prealloc– 並列書き込み操作の場合の断片化を減らします(HDD に最も役立ちます)。
Known issues
Explicit file system type required to mount
ntfs3 requires explicit file system type to mount.
To be able to mount the file system, specify its type as ntfs3. For example, using mount(8)'s -t/--types option:
# mount -t ntfs3 /dev/sdxY /mnt
トラブルシューティング
知のファイルシステムタイプ 'ntfs' です
NTFS をマウントする際に、以下のようなエラーが発生することがあります。
mount: /mnt: 未知のファイルシステムタイプ 'ntfs' です.
#Explicit file system type required to mount を参照してください。
ntfs パーティションのデフォルトドライバとして、ntfs3 を使用したい場合、このような udev ルールが役立ちます。
/etc/udev/rules.d/ntfs3_by_default.rules
SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="ntfs", ENV{ID_FS_TYPE}="ntfs3"
ただし、この方法は推奨されず、一部のサードパーティツールを混乱させるがあります。
udisks support
udisks supports NTFS3, but has some issues at the moment. See udisks ntfs3 PR and issue 932.
As a workaround, add a such option to /etc/udisks2/mount_options.conf in [defaults] section:
ntfs_defaults=uid=$UID,gid=$GID,noatime,prealloc
ntfs3: Unknown parameter 'windows_names'
See #udisks support.
See also
- NTFS3 kernel documentation
- NTFS3 Driver FAQ – Paragon Software Group
- NTFS3 performance comparison