CentOS7 掛載ntfs磁碟格式的隨身碟

來源:互聯網
上載者:User

標籤:邏輯   掛載u盤   repo   識別   u盤   debuginfo   尋找   centos7   back   

因為CentOS 預設不識別NTFS的磁碟格式,所以我們要藉助另外一個軟體來掛載,那就是ntfs-3g了

內建的yum源沒有這個軟體,要用第三方的軟體園,這裡我用的是阿里的epel.

1. 切換到系統yum目錄並下載阿里的epel

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

2. 尋找當前源上可用的ntfs-3g軟體

[[email protected] 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. 安裝:

[[email protected] yum.repos.d]# yum -y install ntfs-3g

4. 掛載隨身碟

插入NTFS格式的隨身碟,fdisk -l 查看盤符,建立掛載目錄並掛載

[[email protected] ~]# fdisk -l

磁碟 /dev/sdb:31.1 GB, 31104958464 位元組,60751872 個扇區
Units = 扇區 of 1 * 512 = 512 bytes
扇區大小(邏輯/物理):512 位元組 / 512 位元組
I/O 大小(最小/最佳):512 位元組 / 512 位元組
磁碟標籤類型:dos
磁碟標識符:0x00000000

   裝置 Boot      Start         End      Blocks   Id  System
/dev/sdb1   *        2048    60751871    30374912    7  HPFS/NTFS/exFAT

[[email protected] ~]# mkdir /mnt/ukey

[[email protected] ~]# mount ntfs-3g /dev/sdb1 /mnt/ukey

5. 卸載隨身碟, 聽說不卸載的話到Windows上會提示格式化磁碟 -_-‘‘

[[email protected] ~]# umount /dev/sdb1

 2017-08-18 10:00:35 @sh hp

 

CentOS7 掛載ntfs磁碟格式的隨身碟

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.