When using a router flashed with OpenWRT, you may find that the capacity of the filesystem is much smaller than the real capacity. For example, the router I use is Netgear WNDR4300 which has a 128MB Nand flash. But when using the ‘df -h’ command to inspect the space usage status, I surprisingly found that the space of the total mounting point ‘/‘ is only 14MB.
So to find out the reason and try to expand usable space, I used the command “dmesg” and “cat /proc/mtd” to collect the information of mtd devices.
Then, make the ubifs I need.
1 2 3 4 5 6 7
ubiformat /dev/mtd11 ubiattach -p /dev/mtd11 ubimkvol /dev/ubi1 -N data -s 90MiB mount -t ubifs ubi1:data /opt Finally, add the following lines to /etc/rc.local to make it mount when router starts. ubiattach -p /dev/mtd11 mount -t ubifs ubi1:data /opt
[email protected]:/opt# wget https://github.com/kuoruan/openwrt-frp/releases/download/v0.29.0-1/frpc_0.29.0-1_mips_24kc.ipk wget: SSL support not available, please install one of the libustream-.*[ssl|tls] packages as well as the ca-bundle and ca-certificates packages.