[root@localhost lib]# mkfs.ntfs -f /dev/sdc
-bash: mkfs.ntfs: command not found
执行以下两条命令安装
sudo yum install ntfsprogs
sudo yum install ntfs-3g
如果提示找不到ntfsprogs和ntfs-3g安装包,则执行下面三行命令后,再继续安装上面两个包。
- EPEL repository
yum -y install epel-release
- Install ntfs-3g
yum -y install ntfs-3g
- Update Grub
grub2-mkconfig -o /boot/grub2/grub.cfg
参考链接:
linux - How to access the NTFS filesystem on CentOS? - Stack Overflow
centos7中yum安装ntfs-3g - 行方思远 - 博客园
command-not-found.com/mkfs.ntfs