免费视频淫片aa毛片_日韩高清在线亚洲专区vr_日韩大片免费观看视频播放_亚洲欧美国产精品完整版

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
CentOS7 掛載NTFS分區(qū)

CentOS上默認(rèn)是不支持掛載NTFS格式的分區(qū)的,需要安裝ntfs-3g這個程序就可以對ntfs分區(qū)進行讀寫了。
安裝ntfs-3g
0、判斷ntfs-3g是否已安裝
    1、rpm包安裝的,可以用rpm -qa看到,如果要查找某軟件包是否安裝,用 rpm -qa | grep “軟件或者包的名字”:
       [justypc@localhost ~]$ rpm -qa | grep ntfs-3g
       [justypc@localhost ~]$ 

    2、yum方法安裝的,可以用yum list installed查找,如果是查找指定包,命令后加 | grep “軟件名或者包名”: 
       [justypc@localhost ~]$ yum list installed | grep ntfs-3g
       [justypc@localhost ~]$ 

    3、如果是以源碼包自己編譯安裝的,例如.tar.gz或者tar.bz2形式的,這個只能看可執(zhí)行文件是否存在了,上面兩種方法都看不到這種源碼形式安裝的包。如果是以root用戶安裝的,可執(zhí)行程序通常都在/sbin:/usr/bin目錄下。
1、添加aliyun的epel源
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2、yum 安裝ntfs-3g
     yum install ntfs-3g
3、判斷 yum 安裝ntfs-3g是否成功
    [root@localhost justypc]# yum list installed | grep ntfs-3g
    ntfs-3g.x86_64                         2:2016.2.22-3.el7               @epel

[root@localhost cbx2012]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@localhost cbx2012]# yum install ntfs-3g
[root@localhost cbx2012]# yum list installed | grep ntfs-3g

因為CentOS 默認(rèn)不識別NTFS的磁盤格式,所以我們要借助另外一個軟件來掛載,那就是ntfs-3g了

自帶的yum源沒有這個軟件,要用第三方的軟件源,這里我用的是阿里的epel.

1. 切換到系統(tǒng)yum目錄并下載阿里的epel

[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/epel-7.repo

2. 查找當(dāng)前源上可用的ntfs-3g軟件

[root@localhost yum.repos.d]# yum list ntfs*
已加載插件:fastestmirror, langpacks
Repository epel is listed more than once in the configuration
Repository epel-debuginfo is listed more than once in the configuration
Repository epel-source is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * elrepo: dfw.mirror.rackspace.com
 * epel: mirrors.aliyun.com
已安裝的軟件包
ntfs-3g.x86_64                        2:2017.3.23-1.el7                  @epel
可安裝的軟件包
ntfs-3g-devel.x86_64                  2:2017.3.23-1.el7                  epel 
ntfsprogs.x86_64 

3. 安裝:

[root@localhost yum.repos.d]# yum -y install ntfs-3g

4. 掛載U盤

插入NTFS格式的U盤,fdisk -l 查看盤符,新建掛載目錄并掛載

[root@localhost ~]# fdisk -l

磁盤 /dev/sdb:31.1 GB, 31104958464 字節(jié),60751872 個扇區(qū)
Units = 扇區(qū) of 1 * 512 = 512 bytes
扇區(qū)大小(邏輯/物理):512 字節(jié) / 512 字節(jié)
I/O 大小(最小/最佳):512 字節(jié) / 512 字節(jié)
磁盤標(biāo)簽類型:dos
磁盤標(biāo)識符:0x00000000

  設(shè)備 Boot      Start        End      Blocks  Id  System
/dev/sdb1  *        2048    60751871    30374912    7  HPFS/NTFS/exFAT   -->這里的U盤是sdb1

[root@localhost ~]# mkdir /mnt/ukey

[root@localhost ~]# mount ntfs-3g /dev/sdb1 /mnt/ukey

5. 卸載U盤, 聽說不卸載的話到Windows上會提示格式化磁盤 -_-''

[root@localhost ~]# umount /dev/sdb1

本文永久更新鏈接地址http://www.linuxidc.com/Linux/2017-08/146365.htm

本站僅提供存儲服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
CentOS更改yum源與更新系統(tǒng)
No package **** available
centos7更改dns配置
使用CentOS DVD作為默認(rèn)yum源
Linux CentOS更換國內(nèi) 阿里/網(wǎng)易 yum源 | 2018最新
CentOS系統(tǒng)安裝完常規(guī)初始化操作
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服