Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
upload gparted screenshot. –  Avinash Raj Dec 15 '13 at 7:20
    
your problem is a dupe of askubuntu.com/questions/234514/… –  Avinash Raj Dec 15 '13 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? –  Vitaly Zdanevich Dec 15 '13 at 11:33

3 Answers 3

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).

share|improve this answer
    
Quote from my question: I deleted old kernels and used Ubuntu Tweak. –  Vitaly Zdanevich Dec 15 '13 at 10:18
    
THen show us what's in /boot :) –  Dennis Kaarsemaker Dec 15 '13 at 10:22
up vote 0 down vote accepted

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

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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