View Single Post
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.