I have OpenWRT installed on eMMC. How do I use the full 8GB to have more storage for e.g. docker images?
Filesystem Size Used Available Use% Mounted on
/dev/root 84.0M 84.0M 0 100% /rom
tmpfs 1.9G 2.5M 1.9G 0% /tmp
/dev/fitrw 356.4M 53.2M 303.3M 15% /overlay
overlayfs:/overlay 356.4M 53.2M 303.3M 15% /
tmpfs 512.0K 0 512.0K 0% /dev
overlayfs:/overlay 356.4M 53.2M 303.3M 15% /opt/docker
I see there’s opt/docker but it has limited space. I see it says overlayfs. Is this persistent?
root@OpenWrt:~# ubinfo
UBI version: 1
Count of UBI devices: 1
UBI control device major/minor: 10:127
Present UBI devices: ubi0
root@OpenWrt:~# ubinfo -d 0
ubi0
Volumes count: 7
Logical eraseblock size: 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks: 1008 (127991808 bytes, 122.0 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes 128
Count of bad physical eraseblocks: 0
Count of reserved physical eraseblocks: 20
Current maximum erase counter value: 2
Minimum input/output unit size: 2048 bytes
Character device major/minor: 250:0
Present volumes: 0, 1, 2, 3, 4, 5, 6
root@OpenWrt:~# ubinfo -d 0 -N
ubinfo: option requires an argument: N
Use -h for help
root@OpenWrt:~# ubinfo -d 0 -N rootfs_data
Volume ID: 6 (on ubi0)
Type: dynamic
Alignment: 1
Size: 634 LEBs (80502784 bytes, 76.7 MiB)
State: OK
Name: rootfs_data
Character device major/minor: 250:7
root@OpenWrt:~# uvol free
File descriptor 5 (/usr/sbin/uvol) leaked on lvm invocation. Parent PID 5693: /usr/bin/ucode
File descriptor 6 (/usr/lib/uvol/uci.uc) leaked on lvm invocation. Parent PID 5693: /usr/bin/ucode
File descriptor 7 (/usr/lib/uvol/backends/lvm.uc) leaked on lvm invocation. Parent PID 5693: /usr/bin/ucode
File descriptor 8 (/usr/lib/uvol/blockdev_common.uc) leaked on lvm invocation. Parent PID 5693: /usr/bin/ucode
0
root@OpenWrt:~# uvol list
File descriptor 5 (/usr/sbin/uvol) leaked on lvm invocation. Parent PID 5695: /usr/bin/ucode
File descriptor 6 (/usr/lib/uvol/uci.uc) leaked on lvm invocation. Parent PID 5695: /usr/bin/ucode
File descriptor 7 (/usr/lib/uvol/backends/lvm.uc) leaked on lvm invocation. Parent PID 5695: /usr/bin/ucode
File descriptor 8 (/usr/lib/uvol/blockdev_common.uc) leaked on lvm invocation. Parent PID 5695: /usr/bin/ucode
root@OpenWrt:~# parted
GNU Parted 3.6
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Error: The backup GPT table is corrupt, but the primary appears OK, so that will
be used.
OK/Cancel? Ok
Warning: Not all of the space available to /dev/mmcblk0 appears to be used, you
can fix the GPT to use all of the space (an extra 14221279 blocks) or continue
with the current setting?
Fix/Ignore? Ignore
Model: MMC 8GTF4R (sd/mmc)
Disk /dev/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
128 17.4kB 4194kB 4177kB bios_grub
1 4194kB 4719kB 524kB ubootenv hidden, legacy_boot
2 4719kB 6816kB 2097kB factory hidden
3 6816kB 11.0MB 4194kB fip boot, hidden, esp
4 12.6MB 46.1MB 33.6MB recovery boot, hidden, esp
5 67.1MB 537MB 470MB production