maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Tried to free up rootfs space, problem happened (https://talk.maemo.org/showthread.php?t=44703)

sifo 2012-04-17 15:59

Re: Tried to free up rootfs space, problem happened
 
1 Attachment(s)
Hi Again and again im not responsable about any damage to your system ( for me nothing happend )
Copy and paste these commands exactly as they are to save some root space from 5-->20 MB
NOTE...: 1-If you faced a problem with the application manager after this commands just move the files back to where were they (for me nothing happend :D)
2-reboot after the commands to get the actuall freed space
3- type in terminal : and see how much availble befor and after :D
4- when using mkdir command if you got file exist tjen it is ok just complete :D
5-when using mv commnd if you got no such file or directory then you dont need that step and complete :D
**********
df -h /
**********
COMMANDS:
******************************
root
mkdir /home/var
mkdir /home/usr
mkdir -p /home/var/lib
mkdir -p /home/usr/python2.5
mkdir -p /home/var/cache
mkdir -p /home/usr/lib
mv /var/lib/apt /home/var/lib && ln -s /home/var/lib/apt /var/lib
mv /var/lib/dpkg /home/var/lib && ln -s /home/var/lib/dpkg /var/lib
mv /var/cache/apt /home/var/cache && ln -s /home/var/cache/apt /var/cache
mv /usr/lib/dpkg /home/usr/lib/ && ln -s /home/usr/lib/dpkg /usr/ib/
mv /usr/lib/apt /home/usr/lib/ && ln -s /home/usr/lib/apt /usr/lib/
mv /usr/lib/nokiamaps-navigation-provider /home/usr/lib/ && ln -s /home/usr/lib/nokiamaps-navigation-provider /usr/lib
mv /usr/lib/python2.5/bsddb/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/bsddb/
mv /usr/lib/python2.5/compiler/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/compiler/
mv /usr/lib/python2.5/config/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/config/
mv /usr/lib/python2.5/ctypes/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/ctypes/
mv /usr/lib/python2.5/curses/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/curses
mv /usr/lib/python2.5/encoding/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/encoding/
mv /usr/lib/python2.5/hotshot/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/hotshot/
mv /usr/lib/python2.5/idlelib/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/idlelib/
mv /usr/lib/python2.5/lib-dynload/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/lib-dynload/
mv /usr/lib/python2.5/lib-tk/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/lib-tk/
mv /usr/lib/python2.5/logging/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/logging/
mv /usr/lib/python2.5/plat-linux2/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/plat-linux2/
mv /usr/lib/python2.5/sqlite3/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/sqlite3/
mv /usr/lib/python2.5/wsgiref/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/wsgiref/
mv /usr/lib/python2.5/xml/ /home/usr/lib/python2.5 && ln -s /home/usr/lib/python2.5/xml/
******************************
mkdir -p: means that creat the directories without errors
&&: means that what followes need to be done immediately after what behind && (just for saving time :D)
*****************************
i wou.d love to make a shell script for that commands but sorry for NOW i dont know
"sorry for the fingers pain :D"
*****************************
and dont forget to run this every several days
apt-get clean
apt-get autoclean
apt-get autoremove
***********************
CHEERS!
SIFO.


All times are GMT. The time now is 19:39.

vBulletin® Version 3.8.8