RE: Not enough memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I did something similar below, and it worked a little bit, but I eventally
ran out of room again.

What I ended up doing was

mkdir /opt/cache
mkdir /opt/lib
cd /var/cache
mv apt /opt/cache
ln -s /opt/cache/apt apt
cd /var/lib
mv apt /opt/lib
ln -s /opt/lib/apt apt
mv dpkg /opt/dpkg
ln -s /opt/lib/dpkg dpkg

At present /opt/cache/apt is 10 Meg, /opt/lib/apt is 18, meg and
/opt/lib/dpkg is 28 Meg

With 56 Meg moved out of rootfs, I now have 30 Meg to spare in my rootfs

Aldon

-----Original Message-----
From: maemo-users-bounces@xxxxxxxxx
[mailto:maemo-users-bounces@xxxxxxxxx]On Behalf Of Kimmo Hämäläinen
Sent: Friday, February 19, 2010 6:23 AM
To: Tamminen Eero (Nokia-D/Helsinki)
Cc: maemo-users@xxxxxxxxx
Subject: Re: Not enough memory


On Fri, 2010-02-19 at 11:02 +0100, Tamminen Eero (Nokia-D/Helsinki)
wrote:
> Hi,
>
> ext Jason wrote:
> > On a more technical, get-it-done approach, my problem with OOM was
> > too much crap in /var/cache/apt/archive/ .  There are two ways to
> > handle this in a more user friendly manner.  Instead of the OOM
> > error message, offer to run 'apt-get clean', and/or symlink
> > /var/cache/apt out to /home/.var.cache.apt .  Which I just tried,
> > and seems to wfm.
> >
> > $ sudo gainroot
> > # cd /var/cache/
> > # mv apt /home/.var.cache.apt
> > # ln -sf ../../home/.var.cache.apt apt
>
> AFAIK:
>
> * Application manager doesn't have caches on rootfs, but on
>    the 2GB partition.

Apparently it still has them on rootfs, see the internal bug 144371. I
don't see it necessary to keep these caches on rootfs since the .deb
cache is not mandatory and the rest (.bin files) can be regenerated
anytime.

-Kimmo


_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users

_______________________________________________
maemo-users mailing list
maemo-users@xxxxxxxxx
https://lists.maemo.org/mailman/listinfo/maemo-users


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Big List of Linux Books]    

  Powered by Linux