zoukankan      html  css  js  c++  java
  • redhat 7.4 挂载ntfs格式的u盘并且使用

    公司内网,需要导出大文件,网络限制,所以只能通过移动硬盘下载

    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-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
     
    【解决方法】
      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

    重新安装没有报错

     
  • 相关阅读:
    得不到的都能释怀
    个人读后感
    面向对象程序设计
    关于QQ的NABCD模型
    团队成员及分工
    软件工程结对项目--实用计算器的设计和制作
    实践作业2 个人项目作业
    github地址
    github心得体会
    人,绩效和职业道德
  • 原文地址:https://www.cnblogs.com/augusite/p/13813694.html
Copyright © 2011-2022 走看看