How to format NTFS partition under linux
By default, Linux cannot format NTFS partitions and needs to install a ntfsprogs tool.
[root@testserver ~]# yum install ntfsprogs
You can view the command to format ntfs
Quick format partition:
[root@testserver-bk ~]# mkfs.ntfs -f /dev/sda2
View the UUID of the partition after formatting
[root@testserver]# blkid
After obtaining the UUID, you can mount the partition and write it in /etc/fstab
[root@testserver]# mkdir /mnt/ntfs_part
[root@testserver]# ntfs-3g /dev/sda2 /mnt/ntfs_part
If there is no ntfs-3g command, you can install it through yum -y install ntfs-3g.
Then edit /etc/fstab
Finally restart the computer.
[root@testserver]# reboot -h now
The verification is successful.