Disk usage
The device system is linux ubuntu20. When a USB flash drive or TF card is inserted, the storage device will also be identified as a node similar to /dev/sdb1 or /dev/mmcblkp1, which is the same as in the desktop PC Linux environment.
If a USB flash drive is inserted normally, it will be automatically mounted to the /media/usb-sd* directory. You can use df -h
the command to check whether it is mounted:
linaro@bm1684:~$ df -h
Filesystem Size Used Avail Use% Mounted on
overlay 5.9G 788M 4.8G 14% /
devtmpfs 3.4G 0 3.4G 0% /dev
tmpfs 3.4G 0 3.4G 0% /dev/shm
tmpfs 692M 1.8M 690M 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 3.4G 0 3.4G 0% /sys/fs/cgroup
/dev/mmcblk0p1 128M 65M 64M 51% /boot
/dev/mmcblk0p7 44G 300K 42G 1% /data
/dev/mmcblk0p4 2.4G 2.3G 0 100% /media/root-ro
/dev/mmcblk0p5 5.9G 788M 4.8G 14% /media/root-rw
/dev/mmcblk0p6 2.0G 159M 1.7G 9% /opt
/dev/mmcblk0p2 2.9G 53M 2.8G 2% /recovery
tmpfs 692M 0 692M 0% /run/user/1000
/dev/sda 30G 80K 30G 1% /media/usb-sda
If it is not mounted automatically, such as when a TF card is inserted, you can use sudo fdisk -lthe command to view the corresponding node:
linaro@bm1684:~$ sudo fdisk -l
...
Disk /dev/sda: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk model: U330
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: 0x00000000
Disk /dev/mmcblk1: 29.74 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: 0x00000000
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 8192 62333951 62325760 29.7G c W95 FAT32 (LBA)
You can see that the TF card node is /dev/mmcblk0p1 , and you can use mount /dev/mmcblk0p1 /mnt
the command to mount it to the /mnt directory.