How to remove bloatware without native openwrt

Hi

How to remove bloatware without native openwrt? (Opal device, so no support)

I want to remove following:

  • DDNS
  • Cloud control
  • Localisation (have only English)

Why I need to do this?
I need free up my space to make Adblock plugin work. Everything fine, just need free space.

No way to use Extroot, because no SD card slot, using USB as port for modem. No, I don’t want to buy USB splitter.

Those things won't make up enough space, so you will be happy with.
Basically they are only a bunch of scripts and small binaries.

I need to free up approximately 2,5 MB. Won’t this help?

Why do you need additional space anyway?

I just booted my Opal up and it shows 86.4M of free space. That should be enough for any Adblocker.

Wha?? I have only 8 free. Maybe it is because of Samba server? I can’t get rid of it, as I am using it from time to time to backup photos

Yup, Samba is too big. You need to decide if you want to run samba or adblocker.

So removing packages will not even free up 2,5 MB?

Not sure but they are mostly all small, nothing special.
Since you need additional space for the blocklists to be computed ... I highly doubt it's possible.

gl-cloud is for example only 25kb...

The firmware is on a read-only format. You cannot remove packages to save spaces.

When you remove one package, they are marked as removed but still occupy the spaces.

1 Like

There is some scripts from here (example) that modifies even firmware.

Or in my case it will not change anything?

@alzhao whats your recommendation then?

What is your router model?

@alzhao this

But those scripts only add data, they don't delete anything.
The main file system is only some overlay above the original firmware files. So you can change stuff like replacing - but not by deleting. Deletion will just delete the link to the original file, not the file itself. Didn't thought about it, tbh, but @alzhao is right.

See:

root@Bilderrobbe:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock14          45.8M     45.8M         0 100% /rom
tmpfs                   192.7M      2.4M    190.3M   1% /tmp
/dev/ubi0_3              48.6M      2.5M     43.6M   5% /overlay
overlayfs:/overlay       48.6M      2.5M     43.6M   5% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock13           4.0M      4.0M         0 100% /lib/firmware/IPQ5018/WIFI_FW

root@Bilderrobbe:~# rm /usr/sbin/tailscale*
root@Bilderrobbe:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/mtdblock14          45.8M     45.8M         0 100% /rom
tmpfs                   192.7M      2.4M    190.3M   1% /tmp
/dev/ubi0_3              48.6M      2.5M     43.6M   5% /overlay
overlayfs:/overlay       48.6M      2.5M     43.6M   5% /
tmpfs                   512.0K         0    512.0K   0% /dev
/dev/mtdblock13           4.0M      4.0M         0 100% /lib/firmware/IPQ5018/WIFI_FW
root@Bilderrobbe:~#

Even after deletion of all tailscale binaries (which are huge) nothing changes.