公司内网,需要导出大文件,网络限制,所以只能通过移动硬盘下载
redhat使用存储分区都得先挂载才能使用,默认不支持ntfs格式,需要下载相关工具:ntfs-3g
在以下链接处下载即可,根据自己的版本以及架构自行选择下载(我自己的是x86_64架构)
https://developer.aliyun.com/packageSearch?word=ntfs-3g
包名如下
ntfs-3g.x86_64
ntfs-3g-devel.x86_64
[root@localhost ~]# mkdir /mnt/ukey
[root@localhost ~]# mount -t ntfs-3g /dev/sdc1 /mnt/ukey
我安装过程中好巧不巧的遇到一个问题,如下
linux下FTP的工具和使用以及rpmReadSignature failed错误
安装rpm文件时提示rpmReadSignature failed 错误
现象:
[root@localhost augusite]# rpm -ivh ntfs-3g-2017.3.23-11.el7.x86_64.rpm
error: ntfs-3g-2017.3.23-11.el7.x86_64.rpm: rpmReadSignature failed: region trailer: BAD, tag 15872 type 2047 offset 28672 count 4096
error: ntfs-3g-2017.3.23-11.el7.x86_64.rpm cannot be installed
[root@localhost augusite]# rpm -ivh ntfs-3g-2017.3.23-11.el7.x86_64.rpm
error: ntfs-3g-2017.3.23-11.el7.x86_64.rpm: rpmReadSignature failed: region trailer: BAD, tag 15872 type 2047 offset 28672 count 4096
error: ntfs-3g-2017.3.23-11.el7.x86_64.rpm cannot be installed
[root@localhost augusite]# rpm -ivh ntfs-3g-devel-2017.3.23-11.el7.x86_64.rpm
error: ntfs-3g-devel-2017.3.23-11.el7.x86_64.rpm: rpmReadSignature failed: region trailer: BAD, tag 15872 type 2047 offset 28672 count 4096
error: ntfs-3g-devel-2017.3.23-11.el7.x86_64.rpm cannot be installed
error: ntfs-3g-devel-2017.3.23-11.el7.x86_64.rpm: rpmReadSignature failed: region trailer: BAD, tag 15872 type 2047 offset 28672 count 4096
error: ntfs-3g-devel-2017.3.23-11.el7.x86_64.rpm cannot be installed
【解决方法】
1、检查下载使用的安装包、压缩包是否完整,否则从正规的镜像战点重新下载;
2、一般新手可能是由于用ftp上载到Linux上时没有用binary模式造成的。需要在ftp>binary转变为二进制方式传输。
1、检查下载使用的安装包、压缩包是否完整,否则从正规的镜像战点重新下载;
2、一般新手可能是由于用ftp上载到Linux上时没有用binary模式造成的。需要在ftp>binary转变为二进制方式传输。
刚好我碰到的就是第二个原因造成的,需要重传rpm包
操作如下:ftp ftpserver_ip 输入用户名密码登录之后 ftp> binary(切换成binary模式) 200 Switching to Binary mode. ftp> hash(打开哈希,也就是显示过程) Hash mark printing on (1024 bytes/hash mark). ftp> get ntfs-3g-2017.3.23-11.el7.x86_64.rpm
重新安装没有报错