OpenWrt Forum Archive

Topic: help me cleanup a little on the router

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

sorry to bother with such a dumb question, but the router wrt54g or gs cannot remember right now as its a remote router, has reached its space capacity :-( although you might consider my questions a little basic, I succeeded in doing a fairly complex install. its been done for a friend of mine, who needs to have vpn passthrough to connect to their office remotely.
I followed some how tos and ended up having not event the space left, to write a /etc/init.d/S95-custom-user-startup file :-(

I'll post some info here, together with the installed packages, maybe you can give me some hints what could be removed, but its highly problematic, as I cannot physically go to the router in case I break anything :-(

almost forgot: using X-Wrt with openwrt white russian.

status page says:

RAM Usage
Total: 14308 KiB   
97%
Used: 13816 KiB (97%)

Mount Usage
/tmp
none   
2%
156KiB of 7152KiB
/jffs
/dev/mtdblock/4   
98%
2080KiB of 2112KiB
/
/jffs   
100%
1152KiB of 1152KiB

Installed Packages

Action    Package    Version    Description
Uninstall    base-files    10   
Uninstall    base-files-brcm    2    Board/architecture specific files
Uninstall    bridge    1.0.6-1    Ethernet bridging tools
Uninstall    busybox    1.4.2-1   
Uninstall    dnsmasq    2.35-1    A lightweight DNS and DHCP server
Uninstall    dropbear    0.49-1   
Uninstall    dsniff    2.4b1-2    collection of tools for network auditing and penetration testing
Uninstall    ez-ipupdate    3.0.11b8-4   
Uninstall    haserl    0.8.0-1    a CGI wrapper to embed shell scripts in HTML documents
Uninstall    ipkg    0.99.149-2    lightweight package management system
Uninstall    ipkg-upgrade-fix    0.2-1    Shows warning about 'ipkg upgrade' when user tries to use it.
Uninstall    iptables    1.3.3-3    The netfilter firewalling software for IPv4
Uninstall    iptables-mod-conntrack    1.3.3-3    Iptables (IPv4) extensions for connection tracking
Uninstall    iwlib    29.pre10-1    Library for setting up WiFi cards using the Wireless Extension
Uninstall    kernel    2.4.30-brcm-5   
Uninstall    kmod-brcm-wl    2.4.30-brcm-5    Proprietary driver for Broadcom Wireless chipsets
Uninstall    kmod-diag    2.4.30-brcm-5    Kernel modules for LEDs and buttons
Uninstall    kmod-gre    2.4.30-brcm-5    Kernel GRE tunneling support
Uninstall    kmod-ipt-conntrack    2.4.30-brcm-5    Extra Netfilter (IPv4) kernel modules for connection tracking
Uninstall    kmod-ipt-nat-default    2.4.30-brcm-5    Default Netfilter (IPv4) NAT kernel modules for special protocols
Uninstall    kmod-ipt-nat-extra    2.4.30-brcm-5    Extra Netfilter (IPv4) NAT kernel modules for special protocols
Uninstall    kmod-ipt-nat-pptp    2.4.30-brcm-5    Netfilter (IPv4) NAT kernel modules for GRE and PPTP
Uninstall    kmod-ppp    2.4.30-brcm-5    PPP support
Uninstall    kmod-pppoe    2.4.30-brcm-5    PPP over Ethernet support
Uninstall    kmod-switch    2.4.30-brcm-1    switch driver for robo/admtek switch
Uninstall    kmod-tun    2.4.30-brcm-5    Kernel TUN/TAP extension
Uninstall    kmod-wlcompat    2.4.30-brcm-5    Compatibility module for using the Wireless Extension with broadcom's wl
Uninstall    libgcc    3.4.4-10   
Uninstall    libgdbm    1.8.3-1    the GNU database manager
Uninstall    liblzo    2.02-1    a real-time data compression library
Uninstall    libmatrixssl    1.2.4-1    An embedded SSL implementation
Uninstall    libncurses    5.2-9    Terminal handling library
Uninstall    libnet0    1.0.2a-7    a low-level packet creation library
Uninstall    libnids    1.18-1    A network intrusion detection library
Uninstall    libopenssl    0.9.8d-3    OpenSSL (Secure Socket Layer) libraries
Uninstall    libpcap    0.9.4-1    a low-level packet capture library
Uninstall    libpthread    0.9.27-1    POSIX threads library
Uninstall    mtd    4    Tool for modifying the flash chip
Uninstall    nano    1.3.8-1    An enhanced clone of the Pico text editor
Uninstall    nas    3.90.37-17    Proprietary Broadcom WPA Authenticator/Supplicant
Uninstall    ntpclient    2003_194-2    NTP client for setting system time from NTP servers.
Uninstall    nvram    1    NVRAM utility and libraries for Broadcom hardware
Uninstall    openvpn    2.0.9-1    Open Source VPN solution using SSL
Uninstall    ppp    2.4.3-7    a PPP (Point-to-Point Protocol) daemon (with MPPE/MPPC support)
Uninstall    ppp-mod-pppoe    2.4.3-7    a PPPoE (PPP over Ethernet) plugin for PPP
Uninstall    uclibc    0.9.27-10   
Uninstall    webif    0.3-9   
Uninstall    webif-theme-xwrt    0.3-9   
Uninstall    wificonf    7    Replacement utility for wlconf
Uninstall    wireless-tools    29.pre10-1    Tools for setting up WiFi cards using the Wireless Extension

If you dont need PPP you could remove all of the PPP packages.

sorry, I forgot some info: the router conects to the internet by ppoe.

I guess I could remove the ntp packet.

btw. is there a "list" where I could lookup how much space a certain packet occupies?

###edit###
if I go to SYSTEM > STARTUP I get this message, and the file displays as empty :-(
'/etc/init.d/S95custom-user-startup' exists chmod: /etc/init.d/S95custom-user-startup: No such file or directory

(Last edited by ovizii on 4 Mar 2008, 23:08)

That should just give you an idea.  It won't be exact, because the .ipk files are actually .tar.gz files (i.e. they are compressed with gzip).  Also, the installed packages are on jffs or squashfs which are compressed filesystems.  squashfs compresses better than jffs, but gzip is probably going to compress better.  i.e. the actual space taken up by each package should be more than the space taken up by a .ipk file.

Of course you will not be able to remove a file off squashfs because squashfs is read only.  It will just look like it's been removed because it is hidden when you try to remove it.

thx I'll look that list maybe it gives me an idea what to deinstall.

bte. I was going to use the gui to deisntall, that will free the space, right? I was not going to manually delete.

It depends on if the package is on squashfs (i.e. it was included with the image that you flashed) or if it is on jffs (i.e. you installed it later).

By the way, if this is OpenWrt and you installed webif later (i.e. if you did NOT install an X-Wrt image) then you could uninstall all the webif packages from the command line to see if that helps.

The discussion might have continued from here.