在Linux系统里挂载移动硬盘或U盘;
以centos7为例:
1. 在没有连接移动硬盘到服务器之前,先使用命令:fdisk -l 看一下硬盘及硬盘的分区情况;
如:
Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 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: 0x00099872
现在是有一个 /dev/sda;
2. 连接上移动硬盘到USB接口,再用fdisk -l 看一下,看是否多了一块硬盘,
如:
Disk /dev/sda: 107.4 GB, 107374182400 bytes, 209715200 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: 0x00099872
Disk /dev/sdb: 40.0 GB, 40007761920 bytes