As you can see above the disk space on my OpenWRT device is showing 93.33MB. However, I used fdisk and cfdisk to expand the partition.
Does anyone know what file or function controls the "disk space" OpenWRT sees as available? Im trying to avoid having to do a full OW rebuild as others online have suggested.
Im gonna try the OpenWRT script in the mean time, however its labeled for x86 so not sure if it will work or cause a mess.
root@OWRTRPI58GB:~# resize2fs -P /dev/root
resize2fs 1.47.0 (5-Feb-2023)
open: No such file or directory while opening /dev/root
root@OWRTRPI58GB:~# resize2fs -P /
resize2fs 1.47.0 (5-Feb-2023)
resize2fs: Is a directory while trying to open /
Couldn't find valid filesystem superblock.
Posting this here to see if anyone knows the solution. I read through the readme's on resize2fs. It says, for making a file system bigger you dont have to unmount.
'/dev/mmcblk0p2' is '/dev/root' on mount point '/'
root@OWRTRPI58GB:~# resize2fs /dev/mmcblk0p2
resize2fs 1.47.0 (5-Feb-2023)
Filesystem at /dev/mmcblk0p2 is mounted on /; on-line resizing required
old_desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/mmcblk0p2 to 524288 (4k) blocks.
resize2fs: Invalid argument While trying to add group #1
Sorry I had tried that before as well but didnt post it.
Got it figured out from an old x86 post. With some of the input here. Before doing this you must have tune2fs installed. If you RO the FS you cant install anything.