create ntfs partition on Centos
Posted on February 11, 2020 • 1 minutes • 133 words • Suggest Changes
I could already read ntfs file systems but creating one seems to require more packages; I was surprised as I installed ntfs-3g but still could no run :
[root@server ~]# mkfs -t ntfs /dev/sda1 mkfs.ntfs: No such file or directory
The solution is a tiny other package :
yum install ntfsprogs
And magically :
mkfs -t ntfs /dev/sda1 Cluster size has been automatically set to 4096 bytes. ..
note : this will initialize the disk all with 0’s which could take an insane amount of time;
Therefore you could use the :
-f flag for skiping zero’ing and
-Q flag for skiping checking on bad sectors :
mkfs -t ntfs -f -Q /dev/sda1 Cluster size has been automatically set to 4096 bytes. Creating NTFS volume structures. mkntfs completed successfully. Have a nice day.