OpenWrt Forum Archive

Topic: Packages on USB stick - no space left ??

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

ASUS WL-500gp - Kamikaze 8.09_R2 built from source, updated with feeds - luci 8.8.6. I'm trying have a proxy system (http/s, ftp, pop etc), wireless, openvpn and asterisk14 with flite.
I need help: i can install all the pachages on 2GB usb stick, but when i try to install flite i receive this error:

root@OpenWrt:~# opkg -dest usb install flite
Installing flite (1.3-release-1) to usb...
Collected errors:
 * Only have 4784 available blocks on filesystem /mnt/usbdrive/, pkg flite needs 10208

but there is space on the device

root@OpenWrt:~# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    1728      1728         0 100% /
/dev/root                 1728      1728         0 100% /rom
tmpfs                    15008       456     14552   3% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            5440       656      4784  12% /jffs
mini_fo:/jffs             1728      1728         0 100% /
/dev/sda1              1964072      8308   1955764   0% /mnt/usbdrive

this is my /etc/opkg.conf

root@OpenWrt:~# cat /etc/opkg.conf
src/gz snapshots http://192.168.1.99/openwrt/packages/mipsel
dest root /
dest usb /mnt/usbdrive
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /jffs

from message the system confuse /mnt/usbdrive with /jffs filesystem?
Where i'm fail to understand?
Thanks in advance, Andrea.

I had the same problem until I tried removing this line from /etc/opkg.conf:

option overlay_root /jffs

strace shows me opkg skips statfs check on target directory when that option is specified and goes straight to /jffs, where there's not enough space.

It also turns out opkg ignores the -force_space parameter.

(Last edited by Tonik on 9 Mar 2009, 12:16)

Hi.

The "force_space" option works when it's put in opkg.conf:

echo "option force_space" >> /etc/opkg.conf

~ JoW

The discussion might have continued from here.