Modify

Opened 9 years ago

Closed 8 years ago

Last modified 4 years ago

#4354 closed defect (worksforme)

can't use opkg, 0 available blocks

Reported by: pimpalaputty Owned by: nico
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version:
Keywords: opkg, blocks Cc:

Description

kamikaze version 13611

root@OpenWrtc:~# opkg install mc
Installing mc (4.6.1-2) to root...
Collected errors:
 * Only have 0 available blocks on filesystem /, pkg mc needs 525
root@OpenWrt:~# df 
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    1280      1280         0 100% /
/dev/root                 1280      1280         0 100% /rom
tmpfs                    14964       784     14180   5% /tmp
tmpfs                      512         0       512   0% /dev
mini_fo:/tmp/root         1280      1280         0 100% /tmp/root
/dev/mtdblock3            5760       440      5320   8% /jffs
mini_fo:/jffs             1280      1280         0 100% /

I can install packages to ram.

Attachments (0)

Change History (16)

comment:1 follow-up: Changed 9 years ago by nico

  • Owner changed from developers to nico
  • Status changed from new to assigned

It should be fixed in [13650], can you confirm?

comment:2 in reply to: ↑ 1 Changed 9 years ago by pimpalaputty

Replying to nico:

It should be fixed in [13650], can you confirm?

Yes. Thanks.

comment:3 Changed 9 years ago by nico

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:4 follow-up: Changed 9 years ago by sam@…

As of revision 13710, opkg still cannot install locally downloaded .ipk packages to root:

root@ap-vonbraun:~# opkg install kmod-usb2_2.6.25.17-brcm47xx-1_mipsel.ipk
Installing kmod-usb2 (2.6.25.17-brcm47xx-1) to root...
Collected errors:
 * Only have 0 available blocks on filesystem /, pkg kmod-usb2 needs 44

Installing from the repository works.
(I don't know if I should create a new ticket for this.)

comment:5 in reply to: ↑ 4 Changed 9 years ago by Godot <sam@…>

I have just checked out rev. 13721.
Works fine with the new overlay_root option, by adding the following line to /etc/opkg.conf:

option overlay_root /jffs

comment:6 Changed 9 years ago by anonymous

It does not work on Fonera with [13672]. I have option overlay_root /jffs and:

Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    7104      2524      4580  36% /
/dev/root                 7104      2524      4580  36% /
tmpfs                     6844      1112      5732  16% /tmp
tmpfs                      512         0       512   0% /dev

but it is still saying that there is no free space. Commenting out option overlay_root /jffs from configuration file fixed that.

comment:7 Changed 9 years ago by olli.lehtinen@…

Same problem with Kamikaze 8.09 RC2 (r14127) (brcm47xx).

root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm47xx/packages/Packages.gz
Connecting to downloads.openwrt.org (195.56.146.238:80)
Packages.gz          100% |*************************************************************************************************************|   143k --:--:-- ETA
Inflating http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm47xx/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/snapshots
root@OpenWrt:~# opkg -dest usb install asterisk14
Installing asterisk14 (1.4.22-2) to usb...
Collected errors:
 * Only have 3192 available blocks on filesystem /opt/, pkg asterisk14 needs 3524
root@OpenWrt:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    1.6M      1.6M         0 100% /
/dev/root                 1.6M      1.6M         0 100% /rom
tmpfs                    14.6M    780.0k     13.9M   5% /tmp
tmpfs                   512.0k         0    512.0k   0% /dev
/dev/mtdblock3            5.4M      2.3M      3.1M  42% /jffs
mini_fo:/jffs             1.6M      1.6M         0 100% /
/dev/sda2               243.1M     10.1M    220.5M   4% /opt
/dev/sda3               458.1G    513.2M    434.4G   0% /home
root@OpenWrt:~#

Using 'opkg -force_space' gives the same error.

comment:8 Changed 9 years ago by thepeople

  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:9 Changed 9 years ago by thepeople

  • Component changed from packages to base system
  • Milestone set to Kamikaze 8.09 RC2

comment:10 Changed 9 years ago by olli.lehtinen@…

There is a workaround for this problem: http://forum.openwrt.org/viewtopic.php?pid=81100#p81100 .

Here's working opkg.conf for me:

src/gz snapshots http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm47xx/packages
dest root /
dest ram /tmp
dest usb /opt
lists_dir ext /var/opkg-lists
option overlay_root /
option overlay_root /opt

comment:11 Changed 9 years ago by anonymous

This works for me too!

src/gz snapshots http://downloads.openwrt.org/kamikaze/8.09_RC2/brcm47xx/packages
dest root /
dest ram /tmp
dest usb /mnt/usbdrive
lists_dir ext /var/opkg-lists
option overlay_root /jffs
option overlay_root /mnt/usbdrive

comment:12 Changed 9 years ago by Riskable

I wanted to mention that installing packages to RAM fails to work without an additional overlay_root option:

option overlay_root /tmp

So if you wanted to install something on a temporary basis like this:

root@OpenWrt:/# opkg -d ram python-mini

It will give that same "Only have X available blocks" error (without the option above). It might be a good idea to add that extra line to the default opkg.conf.

comment:13 Changed 8 years ago by csurulyal@…

Trying to do: http://wiki.openwrt.org/oldwiki/usbstoragehowto
modules for usb 2.0
Install 'kmod-usb-storage': Error (Code 4096) and ......... :)
got mc , works fine. Got other sw but this one.
help please

comment:14 Changed 8 years ago by csurulyal@…

Sorry guys. Late nigh routerplayingaround it was. I did not realize how fast you can run out of free space. it was becouse I WAS EXHAUSTING THE /jffs. Sotty again

comment:15 Changed 8 years ago by nbd

  • Resolution set to worksforme
  • Status changed from reopened to closed

comment:16 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.