1 问题描述
在Linux系统中插入ntfs格式的u盘是,无法识别。
2 解决方案
1)下载ntfs安装包及依赖
wget http://www.rpmfind.net/linux/epel/8/Everything/x86_64/Packages/n/ntfs-3g-2021.8.22-2.el8.x86_64.rpm
wget http://www.rpmfind.net/linux/epel/8/Everything/x86_64/Packages/n/ntfs-3g-devel-2021.8.22-2.el8.x86_64.rpm
wget http://www.rpmfind.net/linux/epel/8/Everything/x86_64/Packages/n/ntfs-3g-libs-2021.8.22-2.el8.x86_64.rpm
wget http://www.rpmfind.net/linux/epel/8/Everything/x86_64/Packages/n/ntfs-3g-system-compression-1.0-7.el8.x86_64.rpm
2)配置阿里云镜像源
下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
运行 yum makecache 生成缓存
yum makecache
非阿里云ECS用户会出现 Couldn’t resolve host ‘mirrors.cloud.aliyuncs.com’ 信息,不影响使用。用户也可自行修改相关配置: eg:
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
具体参考阿里云官网:https://developer.aliyun.com/mirror/centos
3)安装
yum install -y ntfs-3g-*
最后插入u盘,就能够识别了。
|