Linux挂载ntfs格式的U盘

菜鸡记录下ntfs格式的U盘挂载命令:

安装ntfs-3g

sudo yum list | grep ntfs

ntfs-3g.x86_64                         2:2017.3.23-11.el7              epel     
ntfs-3g-devel.x86_64                   2:2017.3.23-11.el7              epel     
ntfsprogs.x86_64                       2:2017.3.23-11.el7              epel

安装第一个包

sudo yum install ntfs-3g.x86_64

查看磁盘分区

sudo fdisk -l

Disk /dev/sdb: 16.0 GB, 16005464064 bytes, 31260672 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *     1142528    31260671    15059072    7  HPFS/NTFS/exFAT

找到分区名字并挂载U盘

sudo mount -t ntfs-3g /dev/sdb1 /mnt

查看U盘文件

cd mnt
ls

End

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值