My lappy has Zorin 9 installed and will no longer accept updates, stating there is no room on the /boot partition. Checking Grub menu shows 15 entries!
I want to remove all kernels bar the latest kernel + the one before it (for insurance!) I’ve researched the net and there are many (confusing) recommendations of how to achieve this. How may I safely do the necessary and would it be advisable to expand the size of the boot partition for the future, though I did manually set the partition sizes before installation as per instructions from this site? Or is there a method to automatically purge Grub of redundant kernels when the list gets to a particular length?
This is repeated exactly the same way for all other numbered versions.
I want to remove all versions except 3.13.0-45 and -44 to make room for the latest updates which (I believe) are 3.16.*****.
If I remove them, is there a risk that v45/44 might be compromised by packages being deleted that they require?
@ Mark
As requested
richard@richard-Latitude-D520:~$ uname -a
Linux richard-Latitude-D520 3.13.0-45-generic #74-Ubuntu SMP Tue Jan 13 19:37:48 UTC 2015 i686 i686 i686 GNU/Linux
richard@richard-Latitude-D520:~$
Is this a feature of Linux distros in general, that they keep all previously installed kernels? I haven’t had this problem on my main computer (running Mint 17) and I pre-set the partition sizes on there in much the same way as I did on this lappy?
If I remove them, is there a risk that v45/44 might be compromised by packages being deleted that they require?
Try removing the oldest (3.13.0-34) kernel, then reboot and see if anything is affected.
I very much doubt any will be as packages do not directly link to the kernel minor versions.
You could try to free up some space by running:
sudo apt-get clean
That should remove all packages from the package cache.
I’ve always manually deleted them from /boot (also, the corresponding initrd & config files), then ran an update-grub. It’s not the right way to do it, but it’s easier and it’s my system
FYI - Mint doesn’t install any kernel updates at all by default now. In order to install kernel updates, you need to open the “Kernel updates” part in mintupdate (I think it’s in the View menu). It’s done in the name of stability (to avoid regressions), although it does leave one vulnerable to security issues if a patch is written, as it won’t be installed. Can’t say I agree with their philosophy, so I always keep an eye on it. You can also remove kernels using the same GUI