Thursday, May 30, 2013

To ubuntu: Respect my disk space!

So using a SSD means I get blazing performance for things like huge compiles I need to do for AOSP or grep'ing through that huge codebase.

But it also means I don't exactly have huge amounts of disk space to spare so I was not too surprised when I started get low disk space wanring recently for my root partition - props to Ubuntu for doing this in such a nice way and giving direct access to the GUI tool to show disk usage.

What Ubuntu get less props for is for installing and then keeping on disk EVERY kernel update headers which were using over 2GB on my root partition!

A quick clean up was just a matter of:
sudo apt-get remove linux-headers-3.2.0-20*
sudo apt-get remove linux-headers-3.2.0-30*
sudo apt-get remove linux-headers-3.2.0-4[0-4]


I did those seperately because using sudo apt-get remove linux-headers-3.2.0-* seemed to also want to remove the linux-generic package which I wasn't sure would be a good idea.

PS. getting rid of the older kernel packages:
sudo apt-get remove linux-image-3.2.0-2[0-9]
freed up another 2GB!