OpenWrt Forum Archive

Topic: After removing packages, space not freeing...

The content of this topic has been archived on 24 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I tried to install openvpn on my router running Kamikaze. I had not enogh space available so the install did not finish. Not I removed the openvpn package and also the two dependencies kmod-tun and some ssl package are not installed, my space is "lost". I had about 200k free space but now my df -h shows me this:

Filesystem                Size      Used Available Use% Mounted on
none                      7.0M     56.0k      6.9M   1% /tmp
/dev/mtdblock/4           2.1M      2.1M      8.0k 100% /jffs
/jffs                     1.2M      1.2M         0 100% /


Also if I search for tun I get the following:

find / -name *tun*

/etc/modules.d/30-tun
/lib/modules/2.4.34/tun.o
/usr/lib/ipkg/info/kmod-tun.list
/usr/lib/ipkg/info/kmod-tun.control
/usr/lib/ipkg/info/kmod-tun.postinst
/dev/net/tun
/jffs/etc/modules.d/30-tun
/jffs/lib/modules/2.4.34/tun.o
/jffs/usr/lib/ipkg/info/kmod-tun.list
/jffs/usr/lib/ipkg/info/kmod-tun.control
/jffs/usr/lib/ipkg/info/kmod-tun.postinst
/proc/sys/net/ipsec/debug_tunnel

lsmod says that my tun module is not used:

tun                     4504   0 (unused)

Can I manually delete the tun.o file and related stuff? Or why is my space not freeing up anymore? I have installed the following packages:

base-files-brcm-2.4 - 9-8182 -
bridge - 1.0.6-1 -
busybox - 1.4.2-2 -
dnsmasq - 2.38-1 -
dropbear - 0.49-2 -
ip - 2.6.20-070313-1 -
iptables - 1.3.7-1 -
kernel - 2.4.34-brcm-1 -
kmod-brcm-wl - 2.4.34+4.80.53.0-1 -
kmod-diag - 1+2.4.34-brcm-1 -
kmod-ipt-nathelper - 2.4.34-brcm-1 -
kmod-openswan - 2.4.34+2.4.8-brcm-1 -
kmod-ppp - 2.4.34-brcm-1 -
kmod-pppoe - 2.4.34-brcm-1 -
kmod-switch - 2.4.34-brcm-1 -
kmod-wlcompat - 2.4.34+brcm-5 -
libgcc - 3.4.6-9 -
libgmp - 4.2.1-1 -
libpcap - 0.9.4-1 -
mtd - 5 -
nas - 4.80.53.0-1 -
ntpclient - 2003_194-4 -
nvram - 1 -
openswan - 2.4.8-1 -
ppp - 2.4.3-7 -
ppp-mod-pppoe - 2.4.3-7 -
tcpdump - 3.9.4-1 -
uclibc - 0.9.28-9 -
wireless-tools - 29-1 -
wlc - 4.80.53.0-1 -

Thx in advance guys!

(Last edited by Radiohead-79 on 18 Sep 2007, 10:50)

I'd reflash the router.

If you want to install as many packages as possible, you should build your own squashfs image, because squashfs compresses files better than jffs2.
Packages compiled into the squashfs firmware image will take less space than installing the same package into the free jffs2 flash partition or even using a jffs2 firmware image.
Drawback: squashfs is read-only, and you cannot gain free space by uninstalling packages contained in the firmware image.
So you should first think what packages you really need, and then build you own custom firmware image.

Thank you. I will have a look at the docs and try to build my own image with my packages...

The discussion might have continued from here.