1

I am new to Linux. I am getting warning message every time saying my boot partition is having low memory. Following are the contents of my /boot.

ls /boot/
abi-4.10.0-28-generic         initrd.img-4.13.0-37-generic
abi-4.10.0-40-generic         lost+found
abi-4.10.0-42-generic         memtest86+.bin
abi-4.13.0-26-generic         memtest86+.elf
abi-4.13.0-32-generic         memtest86+_multiboot.bin
abi-4.13.0-36-generic         retpoline-4.13.0-36-generic
abi-4.13.0-37-generic         retpoline-4.13.0-37-generic
config-4.10.0-28-generic      System.map-4.10.0-28-generic
config-4.10.0-40-generic      System.map-4.10.0-40-generic
config-4.10.0-42-generic      System.map-4.10.0-42-generic
config-4.13.0-26-generic      System.map-4.13.0-26-generic
config-4.13.0-32-generic      System.map-4.13.0-32-generic
config-4.13.0-36-generic      System.map-4.13.0-36-generic
config-4.13.0-37-generic      System.map-4.13.0-37-generic
efi                           vmlinuz-4.10.0-28-generic
grub                          vmlinuz-4.10.0-40-generic
initrd.img-4.10.0-28-generic  vmlinuz-4.10.0-42-generic
initrd.img-4.10.0-40-generic  vmlinuz-4.13.0-26-generic
initrd.img-4.10.0-42-generic  vmlinuz-4.13.0-32-generic
initrd.img-4.13.0-26-generic  vmlinuz-4.13.0-36-generic
initrd.img-4.13.0-32-generic  vmlinuz-4.13.0-37-generic
initrd.img-4.13.0-36-generic

Please advise how can I clean my /boot partition as I have no idea what these files do.

OS: Ubuntu 16.04

Zanna
  • 72,312
VSK
  • 111

1 Answers1

0

At the command line run:

df -h | grep boot

This will show you how much space is free on your /boot partition. In my case it looks pretty bad.

/dev/sdb1                    472M  460M     0 100% /boot

As already mentioned, you can clean up old kernels and packages to help free up some space.

sudo apt-get autoremove --purge

The operation can take quite a while as it looks for old kernels and other packages which can be removed.

Then run df -h | grep boot again to check your space on /boot

/dev/sdb1                    472M  143M  306M  32% /boot

Much better!