1

I keep getting low disc space on /boot. It is less than 500 Mb in size. Is there a way I can resize and expand it? I have over 200 Gb free on root.

  • 1
    1. Do you have any unallocated drive space? 2. What filesystem are you using on root? – Schives Jun 30 '17 at 16:02
  • 1
    3. Do you have old kernels laying around in /boot that you're not using any longer? You can remove old kernel packages to clean those up. – DopeGhoti Jun 30 '17 at 16:07
  • /boot/efi : 512 MB : fat32, /boot : 488 MB : ext2, mint-vg : 237.50 GB : lvm2 pv – AspiringCanadian Jun 30 '17 at 16:08
  • I removed the kernels, but is there a way to still extend the partition? – AspiringCanadian Jun 30 '17 at 16:11
  • 1
    I dont understand the problem. On our servers (centos, debian and ubuntu) we have a tiny /boot, with about 30 Mbytes free : they are running smooth from years. – Massimo Jun 30 '17 at 16:25
1

After removing old kernels, you need to do some purging to get it all nice and clean.

This will show you, which kernel packages have been removed:

dpkg --list | grep "^rc  linux-image" | cut -d " " -f 3

Now you purge them one by one with:

sudo apt-get purge PACKAGE

That's all related to kernels in Linux Mint. After-removal procedure you might call it.

  • 2
    Woah woah woah, don't just go purging kernels directly, you should be using sudo apt autoremove --purge instead of playing whack-a-mole with old kernels... also this doesn't answer the OP's question. – Schives Jun 30 '17 at 16:19
  • @Schives Because in Linux Mint your command does do anything with old removed kernels. – LinuxSecurityFreak Jun 30 '17 at 16:23
  • You shouldn't have anything to purge if you used --purge option with autoremove in the first place... – Schives Jun 30 '17 at 16:31
  • @Schives You obviously don't know what you are talking about. So, I unfollow your commentary. – LinuxSecurityFreak Jun 30 '17 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.