Hi!
I test snapshots now and then on this device and like 5-8 month ago I noticed I can't install luci any longer due to running out of overlay disk space.
Comparing a snapshot and 21.02.2 I see a reduction in overlay size by ~400kb. According to device page https://openwrt.org/toh/d-link/dir-825#flash_layout this device should have 3328KiB /overlay, right?
So where does all the space go?
I do see that /rom is looks bigger on my device than on the device page but I think that is due to /rom being compressed and df shows uncompressed, right?
I wonder if this loss of space may have anything to do with the switch to kernel 5.10 in December...
Snapshot (after trying to install luci and failed):
Due to new features being introduced and the general size increase of the Linux kernel, devices now need at least 8 MB of flash and 64 MB of RAM to run a default build of OpenWrt. More flash space is recommended for extensibility, see 8/64 warning.
Thanks for your replies, I think I've looked at this PR before. Sure would be nice to see that merged
Still curious what actually decides the size of /overlay? Device page say 3328KiB for this and that ends up being 960K or 576K, how come? Has /rom eaten of this space? Even if /rom looks bigger in my df above it still does not explain where all of the 3328K might have gone
How much do you see when you do a df then? Why isn't all of the overlay partition available in the file system? My understanding is that the overlay should be completely empty when a device is just flashed? But if something has used overlay space I guess that should be visible as used but it isn't, it is the total size of overlay that confuses me which does not match the device wiki page
Yes that is of course empty on a fresh flash. It was not exactly my question what is visible, it is more about what is taking up space that is not visible since overlay partition should be much larger than is usable/visible with df.
I would expect those changes to be in the /rom partition and not in /overlay?
/rom is 3.3MB on both current stable and snapshots so I guess that is not changed or is that number some fictive number because of how the rom+overlay works together? And that /rom can still eat overlay space without any visible difference with df?
Yes I understand it does not change anything but I'm curious how rom/overlay space works, like why it does not seem to match flash partition sizes given in device wiki page? Why overlay is smaller in snapshots but nothing else seems to have changed?
I wouldn't attribute much to differences in the device wiki page sizes, which were likely based on the stable release (which "stable" is the question).
Snapshots by definition are "experimental", and change daily.
What you see today may, or may not be in the snapshot tomorrow.
The /overlay size difference between snapshot and stable is "minor", about 400K so we can forget I even mentioned snapshots for now. The difference beween wiki page /overlay and stable is 3328K vs 960K = 2368K diff, not really minor.
The D-Link DIR-825 rev B1 is an ancient device, supported for almost a decade - do you really think the details (like flash usage, which are always in a state of flux) are updated after every new release? If you do, you'll have to get a wiki account and do the updating yourself.
There is a defined max size available for firmware.
First kernel area gets allocated, then the rootfs (/rom), and the remaining part gets set as overlay.
As kernel grows, the space left for overlay decreases.