OpenWrt Forum Archive

Topic: no space left

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

I looked around but couldn't find an answer to this on the forums.  Sorry if this is obvious.  I recently upgraded to Kamikaze from White Russian.  Every time I tried to make configuration changes after the upgrade I got the error - no space left on device.  The only packages I installed were the ones to get my USB memory stick working.    I am using an ASUS 500g router and had no problems with this on the white russian install.


here is the output from df:

Filesystem           1k-blocks      Used Available Use% Mounted on
none                      7152        52      7100   1% /tmp
/dev/mtdblock/4           1920      1872        48  98% /jffs
/jffs                     1344      1344         0 100% /
/dev/scsi/host0/bus0/target0/lun0/part1    501280     73168    428112  15% /mnt/usb

There appears to be a lot of space mounted to the tmp directory.  Appreciate any help with this that anyone can offer.

Thank you.

skellam wrote:

here is the output from df:

Filesystem           1k-blocks      Used      Available     Use%      Mounted on
none                            7152           52             7100          1%      /tmp
/dev/mtdblock/4          1920        1872                 48        98%     /jffs
/jffs                              1344        1344                   0      100%     /   
/dev/scsi/host0/bus0/target0/lun0/part1    501280     73168    428112  15% /mnt/usb

There appears to be a lot of space mounted to the tmp directory.  Appreciate any help with this that anyone can offer.
Thank you.

Your flash memory (containing a jffs2 filesystem) is full. The only storage space left on the device is in the RAM. A sort of ramdisk (actually a tmpfs) is mounted to /tmp. So that is the free space you are seeing. But you cannot install applications there because they get lost after powering off the Asus.

The only thing you can do, is to uninstall applications from the Asus that you don't need to free up some flash space.

basmevissen wrote:
skellam wrote:

here is the output from df:

Filesystem           1k-blocks      Used      Available     Use%      Mounted on
none                            7152           52             7100          1%      /tmp
/dev/mtdblock/4          1920        1872                 48        98%     /jffs
/jffs                              1344        1344                   0      100%     /   
/dev/scsi/host0/bus0/target0/lun0/part1    501280     73168    428112  15% /mnt/usb

There appears to be a lot of space mounted to the tmp directory.  Appreciate any help with this that anyone can offer.
Thank you.

Your flash memory (containing a jffs2 filesystem) is full. The only storage space left on the device is in the RAM. A sort of ramdisk (actually a tmpfs) is mounted to /tmp. So that is the free space you are seeing. But you cannot install applications there because they get lost after powering off the Asus.

The only thing you can do, is to uninstall applications from the Asus that you don't need to free up some flash space.

I did a clean install when I switched to Kamikaze and the only apps I installed were the packages required to use the USB key.  I did this previously on White Russian with the same router and had plenty of space.  Do you have any ideas why this would change in Kamikaze?   I don't really need to be able to install more apps but I just want to be able to change my firewall settings in /etc/firewall.user.  It won't let me do that because no space is available on th /jffs.

I am having this exact same problem. I have uninstalled all unnecessary packages, but it still says the space is full. And because it is full the system is very unstable. I am constantly dropping my wireless and it is very annoying. XWRT ends up not responding either. Here are the packages I have installed. If someone could inform how to find out what is taking up so much space that would be great.

base-files-brcm-2.4    10-9600    
bridge    1.0.6-1    
busybox    1.4.2-2    
dnsmasq    2.39-1    
dropbear    0.50-2    
fdisk    2.12r-2    
haserl    0.8.0-2    
ink    0.4.1-1    
iptables    1.3.7-1    
iptables-mod-extra    1.3.7-1    
kernel    2.4.34-brcm-1    
kmod-brcm-wl    2.4.34+4.80.53.0-1    
kmod-diag    2+2.4.34-brcm-1    
kmod-fs-vfat    2.4.34-brcm-1    
kmod-ipt-extra    2.4.34-brcm-1    
kmod-ipt-nathelper    2.4.34-brcm-1    
kmod-ppp    2.4.34-brcm-1    
kmod-pppoe    2.4.34-brcm-1    
kmod-scsi-core    2.4.34-brcm-1    
kmod-switch    2.4.34-brcm-1    
kmod-usb-core    2.4.34-brcm-1    
kmod-usb-printer    2.4.34-brcm-1    
kmod-usb-storage    2.4.34-brcm-1    
kmod-usb-uhci    2.4.34-brcm-1    
kmod-usb2    2.4.34-brcm-1    
kmod-wlcompat    2.4.34+brcm-6    
libgcc    3.4.6-10    
libmatrixssl    1.2.4-1    
libpopt    1.7-4    
libpthread    0.9.28-10    
matrixtunnel    0.2-1    
miniupnpd    1.0-RC6-2    
mtd    5    
nas    4.80.53.0-1    
nvram    1    
p910nd    0.7-3    
ppp    2.4.3-8    
ppp-mod-pppoe    2.4.3-8    
rsync    2.6.5-1    
samba-client    2.0.10-4    
samba-common    2.0.10-4    
samba-server    2.0.10-4    
uclibc    0.9.28-10    
vsftpd    2.0.5-2    
webif    0.3-8    
wireless-tools    29-1    
wlc    4.80.53.0-1

hi,

it looks like you have only 4MB flash and so your jffs-filesystem has only 1,3MB. if your Router should have 8MB flash you have to figure out what´s your problem, but if you don´t have a WL-500G Premium, you have just 4MB and I doubt that you had plenty of space in whiterussian, I guess you had luck to have just enough space.
But you can install the packages on your usbstick if it is permanently connected.
you have two options, you can put your root-filesystem on the usbstick, or you just install new packages on it.
check out http://wiki.openwrt.org/UsbStorageHowto for more info.

>>The only thing you can do, is to uninstall applications from the Asus that you don't need to free up some flash space.


In the past, a "feature" of jffs2 was once it's full, at 100% you're screwed and can't do anything including uninstall packages. You need to reflash.

Has this changed recently?

That seems to be the case still. I'm at 7.09 and I reached 100% and I can't remove files, I can't uninstall packages. I get Segmentation faults if I try and remove files by hand it gives an error and then when I try to interface with those inodes things hang until I reboot the router.

It seems the only hope is reflashing or cleaning the jffs partition through a mtd -r erase rootfs_data (which of course destroys any local changes made since original flash).

The discussion might have continued from here.