/ # ls /dev/mmcblk1
/dev/mmcblk1
/ # random: nonblocking pool is initialized
/ # fdisk
BusyBox v1.29.0 (2021-01-25 22:58:31 CST) multi-call binary.
Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK
Change partition table
-u Start and End are in sectors (instead of cylinders)
-l Show partition table for each DISK, then exit
-b 2048 (for certain MO disks) use 2048-byte sectors
-C CYLINDERS Set number of cylinders/heads/sectors
-H HEADS Typically 255
-S SECTORS Typically 63
/ # fdisk -l
Disk /dev/mmcblk1: 7456 MB, 7818182656 bytes, 15269888 sectors
238592 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk1p1 320,0,1 959,3,16 20480 1044479 1024000 500M c Win95 FAT32 (LBA)
/dev/mmcblk1p2 768,0,1 1023,3,16 1228800 15269887 14041088 6856M 83 Linux
Disk /dev/mmcblk1boot1: 4 MB, 4194304 bytes, 8192 sectors
128 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes
Disk /dev/mmcblk1boot1 doesn't contain a valid partition table
Disk /dev/mmcblk1boot0: 4 MB, 4194304 bytes, 8192 sectors
128 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes
Disk /dev/mmcblk1boot0 doesn't contain a valid partition table
/ # fdisk -u
BusyBox v1.29.0 (2021-01-25 22:58:31 CST) multi-call binary.
Usage: fdisk [-ul] [-C CYLINDERS] [-H HEADS] [-S SECTORS] [-b SSZ] DISK
Change partition table

这段内容展示了对/dev/mmcblk1设备的分区管理,包括使用fdisk查看和操作分区表,以及挂载分区到/mnt/mtd目录下。设备有两个分区,分别为FAT32格式的/dev/mmcblk1p1和Linux类型的/dev/mmcblk1p2,其中包含了系统文件和启动相关数据。
最低0.47元/天 解锁文章
2529

被折叠的 条评论
为什么被折叠?



