centos7 挂载fat32格式的u盘和ntfs格式的移动硬盘 – 蓝队云 | 您所在的位置:网站首页 › centos7挂载fat32 › centos7 挂载fat32格式的u盘和ntfs格式的移动硬盘 – 蓝队云 |
1.挂载fat32格式的u盘 1.插入u盘,查看u盘设备文件名 [root@localhost ~]# fdisk -l 可以看出,u盘在这台机器上的设备文件名为/dev/sdc,因为已经有两块硬盘分别为/dev/sda和/dev/sdb了。 2.新建一个挂载点,一般要在/mnt下建立 [root@localhost mnt]# mkdir /mnt/usb 3.挂载 [root@localhost mnt]# mount -t vfat /dev/sdc1 /mnt/usb 进入/mnt/usb目录,可以看到u盘里的内容了. 4.拔出u盘前记得卸载 [root@localhost ~]# umount /mnt/usb
#或者 [root@localhost ~]# umount /dev/sdc1 注:不能再usb目录内卸载,会显示正忙,要在其他目录下卸载u盘。
2.挂载NTFS格式的移动硬盘 默认情况下,linux是不支持NTFS格式的,所以要先安装一个插件NTFS-3G 1.下载NTFS-3G插件http://www.tuxera.com/community/ntfs-3g-download/ 2.安装NTFS-3G #解压 [root@localhost ~]# tar -zvxf ntfs-3g_ntfsprogs-2013.1.13.tgz #进入解压目录 [root@localhost ~]# cd ntfs-3g_ntfsprogs-2013.1.13/ #编译准备,没有指定安装目录,安装到默认位置中 [root@localhost ~]# ./configure #编译 [root@localhost ~]# make #编译安装 [root@localhost ~]# make install 3.插入移动硬盘,查看移动硬盘的设备文件名 [root@localhost ~]# fdisk -l 4.在/mnt目录下建立一个挂载点 [root@localhost ~]# mkdir /mnt/HardDisk 5.挂载 [root@localhost HardDisk]# mount -t ntfs-3g /dev/sdc1 /mnt/HardDisk/ 进入/mnt/HardDisk目录,可以看到移动硬盘里的内容了. 6.拔出移动硬盘前要记得卸载[root@localhost ~]# umount /mnt/HardDisk |
CopyRight 2018-2019 实验室设备网 版权所有 |