CentOS挂载读取ntfs格式的磁盘
1、下载安装rpm包
下载安装包:
https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-libs-2022.10.3-1.el7.x86_64.rpm
https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-2022.10.3-1.el7.x86_64.rpm
https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfs-3g-devel-2022.10.3-1.el7.x86_64.rpm
https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/n/ntfsprogs-2022.10.3-1.el7.x86_64.rpm
https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/psmisc-22.20-17.el7.x86_64.rpm
#安装rpm包
rpm -ivh ntfs-3g-libs-2022.10.3-1.el7.x86_64.rpm
rpm -ivh ntfs-3g-2022.10.3-1.el7.x86_64.rpm
rpm -ivh ntfs-3g-devel-2022.10.3-1.el7.x86_64.rpm
rpm -ivhntfsprogs-2022.10.3-1.el7.x86_64.rpm
rpm -ivh psmisc-22.20-17.el7.x86_64.rpm
#使用yum在线安装
yum installntfs-3g
2、查看磁盘
fdisk -l
Disk /dev/sdb: 250.0 GB
Device Boot Start End Blocks Id System
/dev/sdb1 * 1654784 487452671 242898944 7 HPFS/NTFS/exFAT
/dev/sdb2 487452672 488370174 458751+ 1b Hidden W95 FAT32
3、挂载
mkdir -p /mnt/win-ntfs-u
mount -t ntfs-3g /dev/sdb1 /mnt/win-ntfs-u
4、查看
fuser -a /dev/sdb1
fuser -k /dev/sdb1
5、卸载
umount /mnt/win-ntfs-u
6、开机自动加载NTFS磁盘则
vi /etc/fstab #编辑
/dev/sdb1 /mnt/win-ntfs-u ntfs-3g rw,umask=0000,defaults 0 0
:wq! #保存退出
至此,CentOS挂载读取ntfs格式的磁盘教程完成。