I cannot believe I just noticed this (Raspberry Pi 4 openwrt out of space). (I know this topic is covered [kinda]) (ive read the posts)... (Flame away lrd...)
When installing a pre-made image (like me with a RPi 4)- The size of your main /dev/root is 102.3 mb.... I never noticed, until I go to install a new driver and I am out of space - I be like - I have a 32gb SD - how is that possible...
I run df -h and lo-an-behold... sure-enough... 102.3 mb is the size of my drive.
Now - I have read a lot of posts about using gparted and expanding the "sda" partition,.. OK
Well, does anyone know an easy way to expand the "root" to the full size of the SD card. Thanks...
If you want to do it in-situ, you can follow the guidance from this thread:
As also mentioned, you can increase the size when you build your own image.
That said, what driver were you installing that took up all the space? In many situations,100MB is more than would be used by most installations (unless you're running larger packages like docker, adblock, etc.).
And on the note of 100MB being quite sizable in the context of OpenWrt,...
Since memory is cheap (and it would probably be more costly to buy a 1GB card than 32GB these days), there's no downside to use the whole thing for OpenWrt... but you'll probably never actually use all 32GB unless you are working with multiple large packages / docker images, and the like. If you intend to use some of the space for general storage (i.e. a low end NAS [1]), you'll probably want to setup a seperate partition for that general data storage purpose.
most people will recommend against using your router as a NAS. While it can be achieved, there are several good reasons not to do so such as performance, security/attack surfaces, and others. ↩︎
Agree... i was shocked that installing the Panda AC600 wifi dongle driver (mediatek 76...) put me over the limit. I was trying to remove packages last night that I dont use... Its hard to fufure out what is needed... i cant remember ever installing anything large...