以个人u盘型号为主

首先,U盘插到服务器USB接口上,查看

fdisk -l
....
....
....
磁盘 /dev/sda:2000.4 GB, 2000398933504 字节,3907029167 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 4096 字节
I/O 大小(最小/最佳):4096 字节 / 33553920 字节
磁盘标签类型:dos
磁盘标识符:0x2f9b8fd3

   设备 Boot      Start         End      Blocks   Id  System
/dev/sda1   *          64  3907024128  1953512032+   7  HPFS/NTFS/exFAT

/dev/sda1即为自己的U盘,类型为ntfs

在服务器上创建一目录文件

mkdir -p /home/upan

然后挂载

[root@localhost upan]# mount -t ntfs-3g /dev/sda1 /home/upan
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@localhost upan]#

挂载之后,可以切换到/home/upan下看到U盘里面的信息。

取消挂载

umount /dev/sda1