The NTFS file format is not supported by default on Linux systems, so NTFS-formatted hard drives cannot be mounted directly under Linux. However, it can be solved by installing ntfs-3g.
Download the source code address http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgz.
After downloading, unzip to the directory, you can perform the following command to install
./configure
Make
Make install
After the installation is complete, you can use the man ntfs-3g command to view the corresponding documentation.
Before mounting, use the fdisk-l command to look at the mounted hard disk partition name and set up the corresponding folder in the/mnt/directory to mount it.
If the hard disk partition name is/DEV/SDA5, the corresponding folder created is/mnt/window-d, you can use
ntfs-3g/dev/sda5/mnt/window-d or Mount-t ntfs-3g/dev/sda5/mnt/window-d to mount, later to view the files on the hard disk can be found in/mnt/windoow-d.
After use, you need to go to mount, use the following command
Umount/dev/sda5 can be.
In some cases, because the hard disk partition is being occupied by a process, after the command to download will be prompted "device is busy",
This can be resolved by the Fuser command, Fuser can show which program is currently using a file on disk, mount point, or even network port, and give the program process details.
For example Fuser-m-v-k/mnt/window-d
Fuser can be followed by many parameters,-m indicates that the path indicates a mount point,-V can list the details of the mount point occupied by the process,-K can directly end all processes that occupy the partition, and then execute the umount command to complete the mount.
You can use the man fuser to get more help on this command.
The above practice after reboot will need to mount again, can be configured by the configuration file to automatically mount the boot.
Change the/etc/fstab before you change the backup under Cp/etc/fstab/etc/fstab.bak.
Execute the following command
/dev/sda5/mnt/windows ntfs-3g Defaults 0 0 to complete the automatic mount.
CENTOS7 mounting NTFS-formatted hard disks