最近入了Linux的坑,在VMware装上虚拟机后,总是会有各种各样的问题。这次遇到的问题是Linux下无法识别NTFS格式的U盘。在网上查了很多方法最后终于解决,为了避免以后踩坑,这里做一个记录。
以RedHat8.4系统为例。
报错显示:
Error mounting: mount: unknown filesystem type 'ntfs'。
解决办法:
配置 aliyum: (分别执行以下三个命令)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum repolist
查看是否有ntfs-3g安转包:
yum search ntfs
显示结果如下:
[root@localhost Desktop]# yum search ntfs
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Extra Packages for Enterprise Linux 7 - x86_64 1.7 MB/s | 17 MB 00:09
Last metadata expiration check: 0:00:12 ago on Wed 29 Sep 2021 06:34:13 PM CST.
========================= Name & Summary Matched: ntfs =========================
ntfs-3g.x86_64 : Linux NTFS userspace driver
ntfs-3g-devel.x86_64 : Development files and libraries for ntfs-3g
ntfs-3g-libs.x86_64 : Runtime libraries for ntfs-3g
ntfsprogs.x86_64 : NTFS filesystem libraries and utilities
安装:
yum -y install ntfs-3g.x86_64
执行完以后就大功告成了。