Available space on Unifi AP series devices

My problem with Unifi AC is

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.8M      3.8M         0 100% /rom
tmpfs                    28.0M      1.1M     26.9M   4% /tmp
/dev/mtdblock5            1.5M      1.4M     56.0K  96% /overlay
**overlayfs:/overlay        1.5M      1.4M     56.0K  96% /**
tmpfs                   512.0K         0    512.0K   0% /dev

the installation went ok :

BZ.v2.4.6# fwupdate.real -m fwupdate.bin -d
Found mtd block: /dev/mtd0(u-boot)
Found mtd block: /dev/mtd1(u-boot-env)
Found mtd block: /dev/mtd2(kernel)
Found mtd block: /dev/mtd3(rootfs)
Found mtd block: /dev/mtd4(cfg)
Found mtd block: /dev/mtd5(EEPROM)
Got U-Boot variable: mtdparts = mtdparts=mtdparts=ar7240-nor0:256k(u-boot),64k(u-boot-env),1024k(kernel),6528k(rootfs),256k(cfg),64k(EEPROM)
Adding U-Boot partition: u-boot 9F000000 00040000
Adding U-Boot partition: u-boot-env 9F040000 00010000
Adding U-Boot partition: kernel 9F050000 00100000
Adding U-Boot partition: rootfs 9F150000 00660000
Adding U-Boot partition: cfg 9F7B0000 00040000
Adding U-Boot partition: EEPROM 9F7F0000 00010000
Calculating flash size:
Adding block: /dev/mtd0("u-boot") - size: 00040000
Adding block: /dev/mtd1("u-boot-env") - size: 00010000
Adding block: /dev/mtd2("kernel") - size: 00100000
Adding block: /dev/mtd3("rootfs") - size: 00660000
Adding block: /dev/mtd4("cfg") - size: 00040000
Adding block: /dev/mtd5("EEPROM") - size: 00010000
Total flash size: 00800000
Flash start: 9F000000
Flash end: 9F800000
Header MAGIC 'OPEN'
Current: BZ.ar7240.v2.4.6.2178.131008.1132

New ver: BZ.ar7240.v6.0.0-42.OpenWrt-r20028-43d71ad93e

is there a way to get more free space on / ?

Which specific device are you using?

ubus call system board

I reckon you installed some stuff after flashing OpenWrt. That will eat your available space really quickly.

I just checked my router, I have a whopping 88 KiB in use on my overlay.

2 Likes
{
	"kernel": "5.10.161",
	"hostname": "AP01",
	"system": "Atheros AR7241 rev 1",
	"model": "Ubiquiti UniFi AP",
	"board_name": "ubnt,unifi",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "22.03.3",
		"revision": "r20028-43d71ad93e",
		"target": "ath79/generic",
		"description": "OpenWrt 22.03.3 r20028-43d71ad93e"
	}
}

Label says "UniFi AP Long Range", but it seems it's just "normal" AP not the LR version.

SInce this i a dumb AP i removed all ppp/pppoe and firewall4 stuff.

opkg remove firewall4 luci-app-firewall

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.8M      3.8M         0 100% /rom
tmpfs                    28.0M    220.0K     27.8M   1% /tmp
/dev/mtdblock5            1.5M      1.2M    272.0K  82% /overlay
overlayfs:/overlay        1.5M      1.2M    272.0K  82% /
tmpfs                   512.0K         0    512.0K   0% /dev

If it is a "Unifi AP LR" and not the "Unifi AP AC LR", that means you have 8MB of internal storage, which seems to be accurate based on your additional info showing the space.

Counterintuitively, this actually has consumed space on your device. That's because those packages reside in ROM, so they cannot actually be deleted. Instead, the system writes files to 'mark them as deleted' (think of it as an addendum).

This may help:

Also, have you installed any packages on your device? That would use additional space in your /overlay partition.

1 Like

Usual stuff - zabbix-agentd, openwisp-monitoring/config, lldpd. :innocent:

ok.i can live w/o zabbix since i have openwisp.
I did however remote routing and telephony section from packages list. Not needed for dumb AP.

free space now (lldpd,openwisp-config+monitor)

Filesystem                Size      Used Available Use% Mounted on
/dev/root                 3.8M      3.8M         0 100% /rom
tmpfs                    28.0M      1.1M     26.9M   4% /tmp
/dev/mtdblock5            1.5M      1.4M    116.0K  92% /overlay

overlayfs:/overlay 1.5M 1.4M 116.0K 92% /
tmpfs 512.0K 0 512.0K 0% /dev

ok for me. :slight_smile:

You can also create custom images with unnecessary packages omitted and the ones you need baked in.

If you use attended sysupgrade, it will create an image for you with the packages built in.

@zagi-tng The The image builder will allow you to both strip packages you do not need and add the ones you'd like. As @psherman pointed out, the rootfs is read-only so you are never really removing anything, and freeing space; much to the contrary - you will lose additional space to mark packages as removed.

Adding your custom packages to the image also has the benefit of better compression (it's compressed along with the rest of the rootfs).

You might think that, but you're inches away from having a chock full overlay, and if that happens your device will reset to factory settings. Think again, and think ahead :wink:.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.