maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Root space - What is "optifying"? (https://talk.maemo.org/showthread.php?t=40131)

slender 2010-01-13 10:21

Re: Root space
 
Quote:

Originally Posted by mece (Post 467938)
if you do that you might end up with the non-optified python again, making the whole exercise pointless. I might be wrong though. Install, for example fm radio from extras first, to get python set up properly. then enable whatever and install the rest.

So do you mean that i should install radio with apt-get? It work eventhought I have disabled repositories from app manager?

mece 2010-01-13 10:22

Re: Root space
 
Hm perhaps I should post it as a separate thread, make it easier to find.

mece 2010-01-13 10:23

Re: Root space
 
Quote:

Originally Posted by slender (Post 468006)
So do you mean that i should install radio with apt-get? It work eventhought I have disabled repositories from app manager?

FM Radio is in extras. And you should install it from app manager.

slender 2010-01-13 10:27

Re: Root space
 
Quote:

Originally Posted by mece (Post 468012)
FM Radio is in extras. And you should install it from app manager.

I´m puzzled. In your message you listed that You could install for example fm radio to get new optified python after removing it from xterm, but that's not possible if you do not first enable repositories what you adviced to disable before removing python.

But thanks for this tip!

bigdom58 2010-01-13 10:38

Re: Root space
 
Quote:

Originally Posted by mece (Post 467903)
For those who have installed python apps from testing or devel. The python in extras is now optified, which gives you a nice 20 megs extra in rootfs.

I had to manually remove some stuff to get it updated.

Here's what I did:

This will most likely remove some programs. You will see a list of what will be removed and asked to verify. Please note that you might not have the same programs installed as I did. FM Radio, Quicknote and Witter are a couple of python apps that will be removed.


in xterm as root:

apt-get remove python
apt-get remove python2.5
apt-get remove python-osso
apt-get autoremove
apt-get clean

now you should have much more space.

Install whatever programs that were removed. The new optified python libraries should be installed in the process.

Check with df -h that you see the opt mounts for python added to the list.

Thanks for advice, i have went from 45mb to 61.62 free.

ossipena 2010-01-13 10:46

Re: Root space
 
Quote:

Originally Posted by mece (Post 468009)
Hm perhaps I should post it as a separate thread, make it easier to find.

or visit

http://wiki.maemo.org

and put your instructions there

please

e: because at least one sees only the essential parts, links etc are pretty soon forgotten no matter if it is a thread here, wiki page or whatever.

mece 2010-01-13 10:55

Re: Root space
 
Quote:

Originally Posted by ossipena (Post 468053)
or visit

http://wiki.maemo.org

and put your instructions there

please

e: because at least one sees only the essential parts, links etc are pretty soon forgotten no matter if it is a thread here, wiki page or whatever.

good idea. Perhaps it could be added to the sticky thread too.

Rob1n 2010-01-13 10:56

Re: Root space
 
Quote:

Originally Posted by slender (Post 468024)
I´m puzzled. In your message you listed that You could install for example fm radio to get new optified python after removing it from xterm, but that's not possible if you do not first enable repositories what you adviced to disable before removing python.

Yes it is - FM radio is in extras, and he only advised disabling extras-devel and extras-testing.

slender 2010-01-13 11:24

Re: Root space
 
Quote:

Originally Posted by Rob1n (Post 468075)
Yes it is - FM radio is in extras, and he only advised disabling extras-devel and extras-testing.

So I can join group of people suffering some level of dyslexia.

Yes. I didnt pay attention. Sorry for that.

Alex Atkin UK 2010-01-13 17:42

Re: Root space
 
I used the following script from one of the many root space threads on here:

Code:

#!/bin/ash

mkdir -p /home/root/usr/share
cd /usr/
for FILE in games include local src var
do
mv $FILE /home/root/usr/
ln -s /home/root/usr/$FILE /usr/
done

mkdir -p /home/root/var/cache
cd /var/cache/
for FILE in apt
do
mv $FILE /home/root/var/cache/
ln -s /home/root/var/cache/$FILE /var/cache/
done

cd /usr/share/
for FILE in fonts icons locale mime nokia-maps pixmaps sounds themes tutorial-applet zoneinfo
do
mv $FILE /home/root/usr/share/
ln -s /home/root/usr/share/$FILE /usr/share/
done

mkdir /home/root/usr/share/games
ln -s /home/root/usr/share/games .

It freed me up around 30MB space and if anything, Maemo Maps seems to load FASTER not slower (quite a lot faster). Although its the first time I loaded it since the firmware update so maybe that sped it up?

Lets not forget, the MMC might be faster for some things as its not using CPU power for compression. Its all a CPU power vs IO performance juggling act, hard to know which is going to be fastest.

Moving the apt cache alone makes a huge difference and its silly it wasting space on root. Just enabling extras-testing and extras-devel but not installing anything, should NOT eat root space. Although I guess its a good idea to disable extras-tests and extras-devel before doing a firmware update anyway, but it was silly I had to do it just to free enough space.


All times are GMT. The time now is 12:08.

vBulletin® Version 3.8.8