Opkgs filled up disc. How to clean up afterwards

Apologies for starting too many topics today.

After a newly installed OpenWrt, I tried to install SQM from LUCI.

I ran out of disc space. I thought I had 54 Mb, but looks like sqm wants more. This is ok.

How can I clean up the remaining packages?
Must I removed these manually?
Or must I just remove the downloaded packages from a temp directory?

Disc space:

#df -h 
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.0M      4.0M         0 100% /rom
tmpfs                    58.8M      2.3M     56.5M   4% /tmp
/dev/mtdblock4          960.0K    748.0K    212.0K  78% /overlay
overlayfs:/overlay      960.0K    748.0K    212.0K  78% /
tmpfs                   512.0K         0    512.0K   0% /dev

Packages:

Installing luci-app-sqm (git-22.360.73151-127c900) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/luci/luci-app-sqm_git-22.360.73151-127c900_all.ipk Installing kmod-sched-core (5.15.162-1) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/kmod-sched-core_5.15.162-1_mipsel_24kc.ipk Installing tc-tiny (6.3.0-1) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/base/tc-tiny_6.3.0-1_mipsel_24kc.ipk Installing kmod-sched-cake (5.15.162-1) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/kmod-sched-cake_5.15.162-1_mipsel_24kc.ipk Installing kmod-ifb (5.15.162-1) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/kmod-ifb_5.15.162-1_mipsel_24kc.ipk Installing kmod-nf-ipt (5.15.162-1) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/kmod-nf-ipt_5.15.162-1_mipsel_24kc.ipk Installing kmod-ipt-core (5.15.162-1) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/kmod-ipt-core_5.15.162-1_mipsel_24kc.ipk Installing libip4tc2 (1.8.8-2) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/libip4tc2_1.8.8-2_mipsel_24kc.ipk Installing libip6tc2 (1.8.8-2) to root... Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt7621/packages/libip6tc2_1.8.8-2_mipsel_24kc.ipk Configuring kmod-nf-ipt. Configuring libip4tc2. Configuring kmod-ipt-core. Configuring kmod-sched-core. Configuring tc-tiny. Configuring kmod-sched-cake. Configuring kmod-ifb.

##### Errors

Collected errors: * pkg_write_filelist: Failed to open //usr/lib/opkg/info/libip6tc2.list: No space left on device. * opkg_install_pkg: Failed to extract data files for libip6tc2. Package debris may remain! * opkg_install_cmd: Cannot install package luci-app-sqm. * pkg_alternatives_update_path: failed symlinking /sbin/tc -> /usr/libexec/tc-tiny: No space left on device. * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: No space left on device.

The *opkg install* command failed with code `255`.

The fastest and most straightforward approach is to create a backup, then reset to defaults.

Not from what I see in the df output...

This is the available space you have for packages... less than 1MiB.

2 Likes

oh. That's not much :slight_smile:

Thanks for pointing this out. This wifi range extender must of come with no disc space. Pretty meagre for a 2024 released device.

Perhaps I can fit sqm without the gui in there. I shall look tomorrow.

Night

Looks like it is an 8/128 device. So that's enough for a base image plus maybe a few small packages, but not much extra.

You can create your own custom images using the firmware selector with the desired packages included -- that will save space (yay compression) relative to installing the packages after you flash your device. You can also look at removing unneeded packages (https://openwrt.org/faq/no_space_left_on_device)

Because that device only has 8MB of flash space, it will almost certainly not be supported by the next major release which will have a requirement of 16/128.

It looks like it was actually released in 2022. Still rather low spec, but it is at least 2 years old, not a 2024 product.

https://openwrt.org/toh/tp-link/re650_v2

2 Likes