/ # 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
-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 -ul
Disk /dev/mmcblk1: 7456 MB, 7818182656 bytes, 15269888 sectors
238592 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 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: sectors of 1 * 512 = 512 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: sectors of 1 * 512 = 512 bytes
Disk /dev/mmcblk1boot0 doesn't contain a valid partition table
/ # ls
bin etc lost+found root tmp
dev lib mnt sbin usr
drivers linuxrc proc sys var
/ #
/ # mount
/dev/root on / type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=90340k,nr_inodes=22585,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/ # mount /dev/mmcblk1p
mmcblk1p1 mmcblk1p2
/ # mount /dev/mmcblk1p1 /mnt/blk1p1
mount: mounting /dev/mmcblk1p1 on /mnt/blk1p1 failed: No such file or directory
/ # ls /mnt
/ # mkdir -p /mnt/mtd/blk1p1
/ # ls mnt/
mtd
/ # ls mnt/mtd/
blk1p1
/ # ls mnt/mtd/blk1p1/
/ # mount /dev/mmcblk1p1 /mnt/mtd/blk1p1
/ # ls /mnt/mtd/blk1p1/
imx6ull-14x14-evk.dtb zImage
/ # ls /dev/mmcblk1p1
/dev/mmcblk1p1
/ # ls /dev/mmcblk1p2
/dev/mmcblk1p2
/ # mkdir /mnt/mtd/blk1p2
/ # mount /dev/mmcblk1p2 /mnt/mtd/blk1p2
/ # ls /dev/mmcblk1p2
/dev/mmcblk1p2
/ # ls /mnt/mtd/
blk1p1 blk1p2
/ # ls /mnt/mtd/blk1p1
imx6ull-14x14-evk.dtb zImage
/ # ls /mnt/mtd/blk1p2
bin etc lost+found root tmp
dev lib mnt sbin usr
drivers linuxrc proc sys var
/ # ls
bin etc lost+found root tmp
dev lib mnt sbin usr
drivers linuxrc proc sys var
/ # ls
bin etc lost+found root tmp
dev lib mnt sbin usr
drivers linuxrc proc sys var
/ # cd proc/
/proc # ls
1 39 7 fs pagetypeinfo
10 40 8 interrupts partitions
11 43 9 iomem self
12 44 asound ioports softirqs
121 45 buddyinfo irq stat
13 46 bus kallsyms swaps
14 47 cgroups key-users sys
15 48 cmdline keys sysrq-trigger
16 49 consoles kmsg sysvipc
17 5 cpu kpagecount thread-self
18 50 cpuinfo kpageflags timer_list
19 51 crypto loadavg tty
2 52 device-tree locks uptime
20 53 devices meminfo version
21 54 diskstats misc vmallocinfo
22 55 driver modules vmstat
23 56 execdomains mounts zoneinfo
24 57 fb mtd
3 63 filesystems net
/proc # cat partitions
major minor #blocks name
1 0 65536 ram0
1 1 65536 ram1
1 2 65536 ram2
1 3 65536 ram3
1 4 65536 ram4
1 5 65536 ram5
1 6 65536 ram6
1 7 65536 ram7
1 8 65536 ram8
1 9 65536 ram9
1 10 65536 ram10
1 11 65536 ram11
1 12 65536 ram12
1 13 65536 ram13
1 14 65536 ram14
1 15 65536 ram15
179 0 7634944 mmcblk1
179 1 512000 mmcblk1p1
179 2 7020544 mmcblk1p2 ///6856MB==7020544KB
179 48 512 mmcblk1rpmb
179 32 4096 mmcblk1boot1 ///4MB
179 16 4096 mmcblk1boot0
/proc #
/proc # cat mounts
/dev/root / ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=90340k,nr_inodes=22585,mode=755 0 0
proc /proc proc rw,relatime 0 0
tmpfs /tmp tmpfs rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
/dev/mmcblk1p1 /mnt/mtd/blk1p1 vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/mmcblk1p2 /mnt/mtd/blk1p2 ext3 rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered 0 0