《LINUX教程:CentOS 7 掛載ntfs磁盤格式的U盤》要點:
本文介紹了LINUX教程:CentOS 7 掛載ntfs磁盤格式的U盤,希望對您有用。如果有疑問,可以聯系我們。
因為CentOS 默認不識別NTFS的磁盤格式,所以我們要借助另外一個軟件來掛載,那便是ntfs-3g了
自帶的yum源沒有這個軟件,要用第三方的軟件源,這里我用的是阿里的epel.
1. 切換到系統yum目次并下載阿里的epel
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/epel-7.repo
2. 查找當前源上可用的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 字節,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? ?-->這里的U盤是sdb1
[root@localhost ~]# mkdir /mnt/ukey
[root@localhost ~]# mount ntfs-3g /dev/sdb1 /mnt/ukey
5. 卸載U盤, 聽說不卸載的話到Windows上會提示格局化磁盤 -_-''
[root@localhost ~]# umount /dev/sdb1
本文永遠更新鏈接地址:
《LINUX教程:CentOS 7 掛載ntfs磁盤格式的U盤》是否對您有啟發,歡迎查看更多與《LINUX教程:CentOS 7 掛載ntfs磁盤格式的U盤》相關教程,學精學透。維易PHP學院為您提供精彩教程。
轉載請注明本頁網址:
http://www.snjht.com/jiaocheng/9025.html