Freeing up space on the plug
From PlugWiki
This is a small page to collect tips for freeing up space on the SheevaPlugs internal flash. These tips might come in handy if you are running out of room!
To find out how much space you have used:
df -h --t=rootfs
Clean up the apt-get package manager
To clear out the local repository of retrieved package files
apt-get clean
To remove the dependencies that were installed with applications that are no longer used by anything else on the system. (orphaned libraries)
apt-get autoremove
Other Space Saving Tips
You can strip debug symbols from your binary files, they will take up less space in the flash, and also execute quicker. For this, you need the strip command, it's part of binutils package, so apt-get install this. If you can short in space, don't forget to remove it and clean the apt-get cache afterwards!!
To use strip, simply call strip <executable>
It's possible to process lots of files with wildcards:
strip -s /usr/bin/* strip -s /usr/sbin/*
It will likely list loads of files it cannot do anything with, this is normal. But the result should be that it's saved you a fair few MB of space.
Finding large files
You can search the 1 level of directories below the current directory, and sort their file sizes using the following command:
du -sm * | sort -n
