FileSystem > NTFS
Translation(s): English Русский
NTFS (Windows NT FileSystem) is a proprietary filesystem, used as the default in every version of Microsoft Windows since NT 3.1. Accessing NTFS partitions is a common necessity in dual-boot setups, where exchanging files between drives is a need.
NTFS Drivers
Three NTFS filesystem drivers are currently available:
- Recommended driver, actively maintained and supported in Debian.
- Userspace NTFS driver via FUSE, provides read and write access.
Based on, and a major improvement to ntfsmount and libntfs.
Available in the ntfs-3g package.
- Included in the upstream kernel starting from version 2.6, provides read-only access and limited write support. Not actively developed.
- In kernel 6.9 was removed and if still enabled in config ntfs3 will be used.
Not currently built with Debian's kernel packages, "ntfs" has been symlinked to "ntfs-3g" as it relates to fstab and mount commands.
It has been added upstream in kernel 5.15 in 2021.
Driver developed by Paragon Software, concerning development of the driver see the ntfs3 kernel mailing list.
Debian kernels are built without because was not actively maintained, so Debian maintainers prefer to keep it disabled, see the bug #998627
To check its availability execute: grep CONFIG_NTFS3_FS /boot/config-*
Obsolete
Requires Wine and the Microsoft Windows ntfs.sys driver.
No longer maintained and not recommended for use.
Usage Examples
mount
See ntfs-3g(8) for available options
# mkdir /mnt/windows # mount -t ntfs-3g /dev/sda1 /mnt/windows
As a regular user to a /media subdirectory
$ udisksctl mount -b /dev/sdc1
/etc/fstab
ntfs and ntfs-3g
The original tool used to mount ntfs partitions was /sbin/mount.ntfs. However, in Debian Squeeze this is symlink-ed to /sbin/mount.ntfs-3g, which is in turn symlink-ed to /usr/bin/ntfs-3g. So an entry in /etc/fstab that mounts an NTFS partition can specify either ntfs or ntfs-3g as its filesystem type, and both of these specifications will use the new NTFS filesystem driver ntfs-3g to mount the partition. ntfs-3g might be the preferred choice as it provides both read and write access to NTFS partitions.
Permissions for mounted partition(s)
For filesystem access by other users and groups on the system, refer to the mount(8) and fstab(5) man pages; note the umask, dmask, fmask, uid and gid options.
mount(8) § Mount options for ntfs
/dev/sda1 /mnt/windows ntfs ro,user,uid=1000,gid=1000,dmask=0222,fmask=0333 0 0
/dev/sda1 /mnt/windows ntfs-3g rw,uid=1000,gid=1000,dmask=0002,fmask=0003 0 0
External Links
https://github.com/tuxera/ntfs-3g/wiki - NTFS-3G Project Wiki
http://www.tuxera.com/community/ntfs-3g-download/ - NTFS-3G homepage;
https://github.com/tuxera/ntfs-3g/wiki/NTFS-3G-FAQ - "Why can't unprivileged users mount block devices?" (NTFS 3G FAQ)
http://www.jankratochvil.net/project/captive/ - Captive NTFS homepage
CategoryStorage | CategorySystemAdministration | CategoryProprietarySoftware