centos7 挂载fat32格式的u盘和ntfs格式的移动硬盘
我们知道,默认情况下,u盘的文件格式为FAT32格式,而移动硬盘位NTFS格式,两种格式不相同,因此在centos7系统下的挂载方式也不相同。下面分别来介绍: 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...