0

So the updater told me my /boot partition is out of space.

I came here from this answer, which recommended (if you can't expand it directly) to just move the contents of the boot partition to the primary partition and installing grub on it.

This was for 10.10, and it sounds rather risky to me. So is that still safe to do on 14.04 LTS?

This is not the same as this question, whose hard drive is about to die. The answer does not mention moving contents of /boot.

foxite
  • 451
  • Everything is risky if you don't have backups, if you do, nothing is. – Elder Geek May 21 '15 at 17:10
  • Of course I have backups, what I mean with "risky" is that it has a chance of destroying (necessary) data, even if you have some sort of insurance. – foxite May 21 '15 at 17:20

1 Answers1

0

If your boot partition is out of space it is most likely because there are too many old kernel images.

You can safely uninstall old kernels that you don't need/use anymore. You can find the kernel version you are using with:

uname -a

To find all the installed kernels, instead:

dpkg -l 'linux-image*'|grep 'ii'
  • 1
    Easier yet, do sudo apt-get autoremove. That will usually remove all but two or three kernels. – Rod Smith May 22 '15 at 13:30
  • Did that, cleaned up at least 50MB. Thanks! Also, can you do the same for the kernel config files, the "abi" files (of which I don't know what they are), and the initrd images? – foxite May 22 '15 at 14:10
  • Uninstalling the linux-image-* packages with apt-get remove should take care of removing all the files you mentined. I would follow @RodSmith's advice and just run sudo apt-get autoremove – lgpasquale May 22 '15 at 14:32
  • I did that, but it didn't remove any old kernels. I'll use the apt-get method. Edit: That actually cleaned up almost 1 GB, which is indeed a lot better than 50 MB. Thanks! – foxite May 22 '15 at 14:37