Increase storage space

Hi
I am using OpenWrt 21.02.0 r16279-5cc0535800 on a LinkSYS WRT 1900 ACS router. I want to make updates or install tcpdump. However, the system partition is full, so to speak:
Free space: 2% (712.7 KB)

df -h /
Filesystem Size Used Available Use% Mounted on
overlayfs:/overlay 23.3M 22.6M 0 100% /
mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/ubi0_1 on /overlay type ubifs (rw,noatime,assert=read-only,ubi=0,vol=1)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
ubi1:syscfg on /tmp/syscfg type ubifs (rw,relatime,assert=read-only,ubi=1,vol=0)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
/dev/sdb3 on /nfsshare/backups type ext4 (rw,relatime)
/dev/sda1 on /nfsshare/Documents type ext4 (rw,relatime)
/dev/sdb2 on /nfsshare/HomeBackup type ext4 (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)

My question is. Is it not possible to put some things on a partition of the external USB disks instead of on the built-in memory? For example "/var" and thus "/tmp", where a lot is written.
The only problem is that I have to manually mount the USB mounts stored in the fstab after a reboot.

I'm grateful for some useful ideas, because this is just too crowded.

Thanks

Diani

/var and /tmp are normally on a ramdisk. Not in flash at all.

Sounds like you have not edited fstab to automount your external disks

You might also read about "extroot" in wiki.

2 Likes

I thought the fstab option "defaults" included rw, suid, dev, exec, auto, nouser, and async - i.e. automount.

Okay, that could be put on an external disk, right?

Thank you for pointing this out, which I will follow up.

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