View Single Post
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#167
Originally Posted by Bratag View Post
Wonder if its possible to symlink the /var/cache/apt dir to /home/opt.

Not 100% sure what the ramifications would be.
I've done something pretty much like this just now, and found this thread as a place to put my report..

In fact I went a little further, after investigating where space on my rootfs was being used, I created a /home/reclaim directory and started shunting over some of the bigger items from rootfs and symlinking back. I did this over an ssh connection from where the typing is a bit easier

Here's the result, shown as a couple of du commands. All the dirs like /home/reclaim/blah/blah/blah are symlinked to from the original location. Everything else under /usr/ and /var/ is untouched..


# du -s /home/reclaim/
73116 /home/reclaim

# du -s /home/reclaim/*/*/*
8 /home/reclaim/usr/local/bin
4 /home/reclaim/usr/local/games
4 /home/reclaim/usr/local/include
12 /home/reclaim/usr/local/lib
0 /home/reclaim/usr/local/man
4 /home/reclaim/usr/local/sbin
8 /home/reclaim/usr/local/share
4 /home/reclaim/usr/local/src
27088 /home/reclaim/usr/share/icons
2180 /home/reclaim/usr/share/mc
12204 /home/reclaim/usr/share/nokia-maps
2120 /home/reclaim/var/cache/apt
3060 /home/reclaim/var/lib/apt
26392 /home/reclaim/var/lib/dpkg
(/usr/local is not used right now and just there as a placeholder.)

As you can see from the first du command, I've reclaimed around 70M of rootfs in this way.

To test this setup I've rebooted, and checked that I can install an application via the app manager, and that's all. If I find any problems (I'm not really expecting to, but ... ) I'll report back in this thread.

I still have:

# du -s /usr/share
70108 /usr/share
which seems like it might be a waste! I'm tempted to try moving the entirety of it over to /home, but I'll stop where I am for now. Information about the viability or otherwise of this is very welcome
 

The Following 9 Users Say Thank You to kwotski For This Useful Post: