Command: cat proc/mtd
dev: size erasesize name
mtd0: 01000000 00010000 "ALL"
mtd1: 00030000 00010000 "Bootloader"
mtd2: 00010000 00010000 "Config"
mtd3: 00010000 00010000 "Factory"
mtd4: 00700000 00010000 "firmware"
mtd5: 00576664 00010000 "rootfs"
mtd6: 001a0000 00010000 "rootfs_data"
mtd7: 00010000 00010000 "preconfig"
mtd8: 00700000 00010000 "firmware2"
Through the above command, you can view the disk partition status of the embedded system.
basic concept:
MTD (memory technology device) is a Linux subsystem for accessing memory devices (ROM, flash). The main purpose of MTD is to make the driver of the new memory device simpler. For this reason, it provides an abstract interface between the hardware and the upper layer, and divides it into a level. The levels are roughly from top to bottom: device file, MTD device layer, MTD original device layer, hardware driver layer. All source code for MTD is in the /drivers/mtd subdirectory.
Command: df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1664 284 1380 17% /
/dev/root 4864 4864 0 100% /rom
tmpfs 30100 252 29848 1% /tmp
/dev/mtdblock6 1664 284 1380 17% /overlay
overlayfs:/overlay 1664 284 1380 17% /
tmpfs 512 0 512 0% /dev