Reply
Thread Tools
Posts: 90 | Thanked: 47 times | Joined on Dec 2009 @ Sydney Australia
#1
Hi,

Anyone else noticed that just the process of enabling the Extras-Testing and Extras-Devel repositories takes up 14MB of their root file system space?

If I disable these two repositories I find my free space is 72MB - just simply enable these in the application manager and free space drops down to 58MB.

I assume that there is some sort of cache being enabled in the application manager but it would seem strange that this is not neing done in the 2GB partition.
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#2
This may be for speed reasons.

Maybe the disk usage is happening here:

# du -sh /var/lib/dpkg/info/
23.6M /var/lib/dpkg/info
~# du -sh /var/lib/apt/lists/
15.5M /var/lib/apt/lists
~#
I've put these (and a couple of other things) on the 2G partition (just as described in http://talk.maemo.org/showthread.php...137#post428137 ) with no problems so far, apart from possibly making app manager slower.

Edit: I should add: because rootfs is a compressed filesystem, the figures above don't show the real disk usage of the dirs, which would in fact be smaller, though still considerable, at least as I understand it.

Last edited by kwotski; 2010-01-08 at 01:07.
 
Posts: 207 | Thanked: 119 times | Joined on Nov 2009 @ Pittsburgh, PA, USA
#3
it could be easily fixed:
1. install "rootsh"
2. open x-term
3. type "sudo gainroot"
4. "mkdir /opt/var"
5. "mkdir /opt/var/lib"
6. "cd /var/lib"
7. "cp -a apt /opt/var/lib/"
8. "cp -a dpkg /opt/var/lib/"
9. "rm -R apt"
10. "rm -R dpkg"
11. "ln -s /opt/var/lib/apt apt"
12. "ln -s /opt/var/lib/dpkg dpkg"
it will transfer this folders on 2GB partition...

Last edited by mikhmv; 2010-01-08 at 01:10.
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#4
Yeah, I did something like that as mentioned in the post I linked to above. The du output I quoted is actually referring to my /home partition

~# ls -ld /var/lib/dpkg /var/lib/apt
lrwxrwxrwx 1 root root 25 Dec 14 23:28 /var/lib/apt -> /home/reclaim/var/lib/apt
lrwxrwxrwx 1 root root 26 Dec 14 23:29 /var/lib/dpkg -> /home/reclaim/var/lib/dpkg
I preferred to put things under /home/reclaim, because it seems it will be easier to keep track of what I've done when it's not mixed with normally optified packages.

Also, I prefer doing it via ssh rather than xterm, since it seems I'd have more chance of recovery if something needed by the phone's GUI goes wrong

So I'm doing it like this over ssh from my laptop, using a different example.

~# cp -a /usr/lib/python2.5 /home/reclaim/usr/lib/python2.5
~# mv /usr/lib/python2.5 /usr/lib/python2.5_reclaimed \
&& ln -s /home/reclaim/usr/lib/python2.5/ /usr/lib/python2.5
<test something>
~# rm -rf /usr/lib/python2.5_reclaimed/
You can only do this with stuff that isn't needed during startup before the other partitions are mounted. If anyone doesn't know that the stuff they're moving is not wanted, they shouldn't do this, of course.

Last edited by kwotski; 2010-01-08 at 01:30.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:03.