0

I have low space on /boot partition and I can't update my Lubuntu. I have LVM. I deleted old kernels and used Ubuntu Tweak.

I tried to loaded from LiveCD and with gparted grow up my /boot-size, but gparted not giving me ability to make more space for /boot - only to shrink.

enter image description here

I see hidden folder .Trash-0 in my /boot with old kernels. I can't delete any file in this folder - they are recreating with new number in name. I have empty trash can. How I can delete this files?

3
  • upload gparted screenshot. Dec 15, 2013 at 7:20
  • your problem is a dupe of askubuntu.com/questions/234514/… Dec 15, 2013 at 9:51
  • I see hidden folder .Trash-0 in my /boot with old kernels. I can't delete any file in this folder - they are recreating with new number in name. I have empty trash can. How I can delete this files? Dec 15, 2013 at 11:33

3 Answers 3

0

You probably have lots of old kernels installed. Run this command: dpkg -l 'linux-image-3*' and remove all the kernel packages that don't match the running kernel (check with uname -r).

2
  • Quote from my question: I deleted old kernels and used Ubuntu Tweak. Dec 15, 2013 at 10:18
  • THen show us what's in /boot :) Dec 15, 2013 at 10:22
0

I have deleted kernels in hidden folder /boot/.Trash-0. I fix my problem by deleting files in this folder by pressing SHIFT + DEL.

0

After you delete unneeded files, a simple way to empty /boot/.Trash-0 is:

1) open a terminal

2) use sudo xterm (or whatever terminal you like) to open a second terminal session

3) in the second terminal, go to the trash folder with cd /boot/.Trash-0

4) check to make sure you're in /boot/.Trash-0 with pwd

5) remove everything in .Trash-0 with rm -r (be careful, that will remove everything in and below the current directory)

6) check to confirm everything has been removed with ls -l

This works in 14.04 LTS, and probably other versions, but... YMMV.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .