Active Topics

 



Notices


Reply
Thread Tools
Posts: 62 | Thanked: 10 times | Joined on Oct 2009
#1
Hi, guys, I'm not a technical staff, but found a very nice way to free much more space on root. The original link is http://www.maemoers.com/thread-162-1-1.html. It was quite easy, just several command lines in your x-termal (just copy & paste the following commands into your x-termal,

1) root
2) rm -r /home/root/
3) root
4)
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

I did this, and found free space on my root jumped to 93mb from 60mb before. Everything works normal.

NOTE: just do this one time, since when i did it second time, my n900 firewire was broken. I have to reflash it myself. So, please do backup your files before doing this, and it might be risky although it works fine for me.
 

The Following 3 Users Say Thank You to roamerjiang For This Useful Post:
Posts: 172 | Thanked: 170 times | Joined on Jan 2010 @ Sweden
#2
Yes, what this does is move a few files to the 2GB home-partition, and add soft-links from the original locations to the new locations.

If you repeat, you will be moving the soft links instead of the real files, i.e. you will now be replacing the real files with the soft links you made earlier, and making new soft links to the old soft links.
 
Posts: 86 | Thanked: 52 times | Joined on Jan 2010
#3
i tried this on my n900, from 57mb to 90mb freed up. thanks for the tip!
 
Posts: 62 | Thanked: 10 times | Joined on Oct 2009
#4
Originally Posted by stefanmohl View Post
Yes, what this does is move a few files to the 2GB home-partition, and add soft-links from the original locations to the new locations.

If you repeat, you will be moving the soft links instead of the real files, i.e. you will now be replacing the real files with the soft links you made earlier, and making new soft links to the old soft links.
Thanks for your reply and explanation. Now, i understand why I broke my n900 after i did this second time .
 
Posts: 256 | Thanked: 98 times | Joined on Jan 2010
#5
this is a good tip

has this been added to wiki rootfs info :-) maybe it could be added with an explanation of what it does and if there are any risks

is this safe for neewbies to use , after doing this can you use the device as normal still :-) thanks
 
Posts: 82 | Thanked: 42 times | Joined on Dec 2009 @ London
#6
I did this, and found free space on my root jumped to 93mb from 60mb before. Everything works normal.
How I've never ever seen 90MB free on my rootfs! :-) Have you got any apps installed? I'm happy with my 54MB :-)

Filesystem Size Used Available Use% Mounted on
rootfs 227.9M 168.9M 54.8M 76% /
ubi0:rootfs 227.9M 168.9M 54.8M 76% /
tmpfs 1.0M 72.0k 952.0k 7% /tmp
tmpfs 256.0k 88.0k 168.0k 34% /var/run
none 10.0M 80.0k 9.9M 1% /dev
tmpfs 64.0M 4.0k 64.0M 0% /dev/shm
/dev/mmcblk0p2 2.0G 258.4M 1.6G 14% /home
/opt/pymaemo/usr/lib/python2.5
2.0G 258.4M 1.6G 14% /usr/lib/python2.5
/opt/pymaemo/usr/share/pyshared
2.0G 258.4M 1.6G 14% /usr/share/pyshared
/opt/pymaemo/usr/lib/pyshared
2.0G 258.4M 1.6G 14% /usr/lib/pyshared
/opt/pymaemo/usr/share/python-support
2.0G 258.4M 1.6G 14% /usr/share/python-support
/opt/pymaemo/usr/lib/python-support
2.0G 258.4M 1.6G 14% /usr/lib/python-support
/dev/mmcblk0p1 27.0G 16.6G 10.4G 61% /home/user/MyDocs
/dev/mmcblk1p1 968.3M 122.1M 846.1M 13% /media/mmc1

That's how it looks for me :-)
 
Posts: 418 | Thanked: 90 times | Joined on Nov 2009
#7
ive 82 percent of my root filled. i dont realy understand this process. id appreciate it someone would do a numpty guide on how to do this...
 
Posts: 172 | Thanked: 170 times | Joined on Jan 2010 @ Sweden
#8
I've created a brainstorm for solving the rootfs problem properly. You can find the forum thread for it here:

http://talk.maemo.org/showthread.php?t=43833

The brainstorm itself is here:

https://maemo.org/community/brainsto...n_in_the_n900/

Vote for it, and we might get 2GB or more free in rootfs instead of just 90MB :-)
 
Posts: 1,427 | Thanked: 2,077 times | Joined on Aug 2009 @ Sydney
#9
Very nice tip. Would love to know how to reverse it back just in case. =)
(Seems I can figure this one out by looking at the commands)

It feels like Nokia Ovi Maps take a little longer to load after this. (~3-5 seconds)
I guess moving it from the fast memory to a slower memory doesn't help. =P

This also broke the hitech 0.13 (latest) theme I was using.
Now whenever I reboot, it defaults to the default Nseries theme.
No idea why. Seems to be symlinked just fine.
I just uninstalled and reinstalled the theme but still same. grr.
I moved the themes folder back to /usr/share/.
Now the hitech theme works again as it should. Anyone know why?

I'm a linux noob but pretty okay with grasping the conceps quickly.
This thread alone made me learn quite a few commands. Awesome.

Last edited by jakiman; 2010-02-09 at 07:15.
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#10
I can imagine a lot of N900s will be getting bricked by PR 1.2 because of hacks like this.
Making root filesystem modifications circumventing the package database is generally a very bad idea.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following User Says Thank You to pycage For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:50.