openwrt overlay 扩容

https://www.bilibili.com/video/av625863047

root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                11.0M     11.0M         0 100% /rom
tmpfs                   249.3M      2.1M    247.2M   1% /tmp
/dev/mtdblock6           18.3M    776.0K     17.5M   4% /overlay
overlayfs:/overlay       18.3M    776.0K     17.5M   4% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:~# free -m
              total        used        free      shared  buff/cache   available
Mem:         510664       55764      423592        2156       31308      396508
Swap:             0           0           0


root@OpenWrt:~# cat /proc/partitions
major minor  #blocks  name

  31        0        192 mtdblock0
  31        1         64 mtdblock1
  31        2         64 mtdblock2
  31        3      32448 mtdblock3
  31        4       2480 mtdblock4
  31        5      29967 mtdblock5
  31        6      18688 mtdblock6


root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 01fb0000 00010000 "firmware"
mtd4: 0026c3b7 00010000 "kernel"
mtd5: 01d43c49 00010000 "rootfs"
mtd6: 01240000 00010000 "rootfs_data"


root@OpenWrt:~# lsblk
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
mtdblock0  31:0    0  192K  1 disk 
mtdblock1  31:1    0   64K  1 disk 
mtdblock2  31:2    0   64K  1 disk 
mtdblock3  31:3    0 31.7M  0 disk 
mtdblock4  31:4    0  2.4M  1 disk 
mtdblock5  31:5    0 29.3M  1 disk /rom
mtdblock6  31:6    0 18.3M  0 disk /overlay

opkg update opkg install lsblk

opkg install cfdisk

https://gist.github.com/sclaret/42df7b8698da14f248bd8571a302eec9

上次更新:
贡献者: iEchoxu