Mount NTFS partitions on CentOS

NTFS-3G is a stable, full-featured, read/write NTFS driver for Linux, Android, macOS, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku, and other operating systems. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008, Windows 7, Windows 8 and Windows 10 NTFS file systems. NTFS-3G uses the FUSE file system interface.

Enable the EPEL repository

Install

# dnf -y install ntfs-3g

General syntax

ntfs-3g ntfs-partition access-point [-o options[,...]]]

Mount a ntfs partition, read only

# ntfs-3g -o ro /dev/sda1 /mnt/win-sys/

Mount a ntfs partition ntfs, read/write mode

# ntfs-3g -o rw,umask=0000 /dev/sda5 /mnt/win-data/

Mounting ntfs partitions when the operating system starts

Add the following lines to the /etc/fstab:

/dev/sda1  /mnt/win-sys  ntfs-3g ro,defaults 0 0
/dev/sda5  /mnt/win-data  ntfs-3g rw,umask=0000,defaults 0 0

Unmount

# umount access-point
About the Author

Leave a Reply

%d bloggers like this: