0

The /boot partition is on 100% use and there is 0 available for it.

Does anyone know what I should do to free up some space?

enter image description here

enter image description here

Will
  • 1
  • is this a question? – derHugo Apr 18 '17 at 18:51
  • Sorry I am just editing the question because I am freaking out and don't know how to use the question editor thing – Will Apr 18 '17 at 18:54
  • ok so we will be patient ;) – derHugo Apr 18 '17 at 18:56
  • Ok I think I have done I am just trying to free some space on boot but I don't know how to start. – Will Apr 18 '17 at 18:59
  • did you have some looks already on https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition?rq=1 or other Links "Related" list here on the right? There should be a lot of good points where to start – derHugo Apr 18 '17 at 19:01
  • Also see this very recent thread https://askubuntu.com/questions/906353/not-enough-disk-space-ubuntu-14-04-5-lts-resolved Nice name btw – Will Apr 18 '17 at 19:22
  • Could you please post text files, dialogue messages, and program output listings as text, not as images? To achieve the latter two you can either 1) select, copy & paste the dialogue text or terminal content or 2) save the program output to a file and use that. Longer listings (the editor will tell you what's too long) should be uploaded to a pastie service and linked to in the question. Thanks. – David Foerster May 19 '17 at 11:02

2 Answers2

2

sudo apt-get autoremove

To remove old kernels; if that doesn't work I'm afraid you may need to expand the boot partition, which is much more involved.

virullius
  • 641
0

Try this:

Open a terminal,

Press Ctrl+Alt+T

Run it:

exec sudo -i 
KERNELCUR=$(uname -r | sed 's/-*[a-z]//g' | sed 's/-386//g')
PKGLINUX="linux-(image|headers|ubuntu-modules|restricted-modules)"
METAPKGLINUX="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)"
KERNELSOLD=$(dpkg -l | awk '{print $2}' | grep -E "$PKGLINUX" | grep -vE "$METAPKGLINUX" | grep -v "$KERNELCUR")
apt-get purge "$KERNELSOLD" 
kyodake
  • 15,401