查看设备

1
lsblk

列出所有设备及挂载点

1
2
3
4
5
6
7
8
# 例子
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 58.3G 0 disk
└─mmcblk0p1 179:1 0 58.3G 0 part
mmcblk1 179:16 0 7.3G 0 disk
mmcblk1boot0 179:32 0 4M 0 disk
mmcblk1boot1 179:48 0 4M 0 disk
zram0 253:0 0 50M 0 disk /var/log

创建挂载点

1
sudo mkdir /mnt/sdcard

挂载设备

1
sudo mount /dev/mmcblk0p1 /mnt/sdcard

提示mount: special device /dev/mmcblk1p1 does not exist说明挂载设备的路径/dev/mmcblk0p1不对,需要重新挂载

验证挂载点

1
ls /mnt/sdcard

卸载设备

1
sudo umount /mnt/sdcard