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)

truelies1 2010-01-15 16:17

Re: Root space
 
Quote:

Originally Posted by Alex Atkin UK (Post 470432)
The script moves the following directories onto the /home partition:
Code:

/usr/games
/usr/include
/usr/local
/usr/src
/usr/var
/var/cache/apt
/usr/share/fonts
/usr/share/icons
/usr/share/locale
/usr/share/mime
/usr/share/nokia-maps
/usr/share/pixmaps
/usr/share/sounds
/usr/share/themes
/usr/share/tutorial-applet
/usr/share/zoneinfo


How to run script under N900? Just type in at command line x-terminal?

msa 2010-01-15 16:22

Re: Root space - What is "optifying"?
 
i am confused

i only installed 2 apps from devel and testing, cant remember which ones exactly, but only 2.

when i do df -h, it shows me that rootfs size is 227,9m, used 163,6m and available 60.1m with a usage of 73%

is this any normal?

Rob1n 2010-01-15 16:27

Re: Root space - What is "optifying"?
 
Sounds about right, yes. I'm on 82% used at the moment (need to redo some cleanups though).

msa 2010-01-15 17:49

Re: Root space - What is "optifying"?
 
but what exactly is using 163mb of 227mb total?
the 2 apps i installed from devel and testing were both not larger than 1 mb.

so i suppose the used 163mb are system-relevant files that i cant and shouldnt remove anyway, right?

Rob1n 2010-01-15 18:41

Re: Root space - What is "optifying"?
 
Yes, most of the space is the OS itself and common libraries. Unless you're absolutely requiring the space then it's not worth worrying about. If you're short of space for something then some of the files/directories can be moved off to the eMMC instead. This has the potential to cause problems though, so is best avoided if possible.

Some of the libraries will probably get moved in future updates but there still seems to be some ongoing planning/discussions about how best to do this.

truelies1 2010-01-28 18:33

Re: Root space
 
I used this one too, rootfs increased from 38M to 72M. But this has a problem, each time I restart the N900, the will use the default blue theme automatically. How to fix this?


Quote:

Originally Posted by Alex Atkin UK (Post 468786)
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.


Kjow 2010-02-02 16:53

Re: Root space
 
Quote:

Originally Posted by Alex Atkin UK (Post 468786)
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.

it give me error, the file script name is "freeroot" and I copied it to /:

:not found line 2:
./freeroot: cd: line 4: can't cd to /usr/
./freeroot: line 6: syntax error: word unexpected (expecting "do")

How can I solve?

Thanks

jlnh 2010-02-16 21:45

Re: Root space - What is "optifying"?
 
Whow!
After the last upgrade today to n900-02-8 and restoring my 38MB backup, I ran into a total memory wall - giving me 0 (zero) and unable to reinstall numerous apts. Rebooted and got some 6 MB back.

Then I followed the 2 suggestions offered in the earlier pages. Uninstalled Python etc. which gave me some 30mb back, BUT in RAM usage.
Then I TYPED and executed each line of the script from Alex Atkin into my N900. and Hé Presto! i now have 65.35 Mb memory free.

(Had to upload the Update via the NSU as OTA gave me "not sufficient memory!"

Am all happy now! Thanks Guys!

truelies1 2010-02-17 13:38

Re: Root space
 
Quote:

Originally Posted by Kjow (Post 507136)
it give me error, the file script name is "freeroot" and I copied it to /:

:not found line 2:
./freeroot: cd: line 4: can't cd to /usr/
./freeroot: line 6: syntax error: word unexpected (expecting "do")

How can I solve?

Thanks

How to make a script file of those command to avoid type errors? Can I run this 2nd times like after a month to increase the rootf?

Rob1n 2010-02-17 13:50

Re: Root space
 
Quote:

Originally Posted by truelies1 (Post 532119)
How to make a script file of those command to avoid type errors? Can I run this 2nd times like after a month to increase the rootf?

Rerunning the script will not help, no. You can make a script by copying & pasting those commands into a text file (making sure you're using UNIX format line endings) and saving it to the N900. You can then run it using:
Code:

sh filename


All times are GMT. The time now is 07:22.

vBulletin® Version 3.8.8