插入SD卡后,输入
$ sudo fdisk -l
可以看到SD卡的位置
/dev/mmcblk1p1
Disk /dev/mmcblk1: 29.7 GiB, 31914983424 bytes, 62333952 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
Disklabel type: dos
Disk identifier: 0xdcef3dbc
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 8192 62333951 62325760 29.7G c W95 FAT32 (LBA)
在/mnt目录下新建挂载点
sudo mkdir /mnt/sd1
输入下面的指令可以将SD卡挂载到刚才建立的挂载点
$ sudo mount /dev/mmcblk1p1 /mnt/sd1/
输入下面的指令可以看到挂载点的状况
$ ls -l /mnt/sd1/
total 16
drwxr-xr-x 2 ubuntu ubuntu 16384 May 9 2017 System Volume Information
再查看所有挂载设备<