Guys, as the machine is patched and new kernels are installed, the old ones are not cleaned up. Drive size is not a consideration as the /boot partition to only 240Mb or so
He has to go into the /boot partition and delete the old kernels. Read this whole thing before proceeding with any commands. It is not clear by Canonical didn't make cleanup part of the patching process. Having an old kernel handy is helpful, but not 4 of them.
Open a terminal and type sudo -s
cd /boot
[email protected]:/boot$ df -k /boot
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 240972 165105 63426 73% /boot
There is only 63Mb left on mine.
Get a listing of the files
[email protected]:/boot$ ls -l
total 156219
-rw-r--r-- 1 root root 1162257 Jul 4 18:18 abi-3.13.0-30-generic
-rw-r--r-- 1 root root 1162712 Jul 15 00:29 abi-3.13.0-32-generic
-rw-r--r-- 1 root root 1162712 Jul 29 13:41 abi-3.13.0-33-generic
-rw-r--r-- 1 root root 1162712 Aug 13 12:45 abi-3.13.0-34-generic
-rw-r--r-- 1 root root 165576 Jul 4 18:18 config-3.13.0-30-generic
-rw-r--r-- 1 root root 165611 Jul 15 00:29 config-3.13.0-32-generic
-rw-r--r-- 1 root root 165611 Jul 29 13:41 config-3.13.0-33-generic
-rw-r--r-- 1 root root 165611 Aug 13 12:45 config-3.13.0-34-generic
drwxr-xr-x 5 root root 1024 Aug 15 19:53 grub
-rw-r--r-- 1 root root 29131950 Jul 12 18:51 initrd.img-3.13.0-30-generic
-rw-r--r-- 1 root root 29201029 Jul 22 20:09 initrd.img-3.13.0-32-generic
-rw-r--r-- 1 root root 29201729 Aug 12 17:06 initrd.img-3.13.0-33-generic
-rw-r--r-- 1 root root 29202331 Aug 19 16:00 initrd.img-3.13.0-34-generic
drwx------ 2 root root 12288 Jun 17 19:21 lost+found
-rw-r--r-- 1 root root 176500 Mar 12 08:31 memtest86+.bin
-rw-r--r-- 1 root root 178176 Mar 12 08:31 memtest86+.elf
-rw-r--r-- 1 root root 178680 Mar 12 08:31 memtest86+_multiboot.bin
-rw------- 1 root root 3378641 Jul 4 18:18 System.map-3.13.0-30-generic
-rw------- 1 root root 3381262 Jul 15 00:29 System.map-3.13.0-32-generic
-rw------- 1 root root 3381262 Jul 29 13:41 System.map-3.13.0-33-generic
-rw------- 1 root root 3381262 Aug 13 12:45 System.map-3.13.0-34-generic
-rw------- 1 root root 5792608 Jul 4 18:18 vmlinuz-3.13.0-30-generic
-rw------- 1 root root 5798112 Jul 15 00:29 vmlinuz-3.13.0-32-generic
-rw------- 1 root root 5798688 Jul 29 13:41 vmlinuz-3.13.0-33-generic
-rw------- 1 root root 5797728 Aug 13 12:45 vmlinuz-3.13.0-34-generic
The files with the "3.13.0-30" and "3.13.0-32" can be deleted on my example, since there are two other kernels available (-33 and -34)
Get a listing of the files you suspect you want to delete
ls *13.0-3[02]* NOTE THE * are wildcards and the [] is a substitution, meaning either 30 or 32
abi-3.13.0-30-generic initrd.img-3.13.0-32-generic
abi-3.13.0-32-generic System.map-3.13.0-30-generic
config-3.13.0-30-generic System.map-3.13.0-32-generic
config-3.13.0-32-generic vmlinuz-3.13.0-30-generic
initrd.img-3.13.0-30-generic vmlinuz-3.13.0-32-generic
Those are safe to delete since we are running on the highest version.
rm *13.0-3[02]* NOTE: DO NOT FAT FINGER THIS
Now get another listing
[email protected]:/boot# ls -l
total 78417
-rw-r--r-- 1 root root 1162712 Jul 29 13:41 abi-3.13.0-33-generic
-rw-r--r-- 1 root root 1162712 Aug 13 12:45 abi-3.13.0-34-generic
-rw-r--r-- 1 root root 165611 Jul 29 13:41 config-3.13.0-33-generic
-rw-r--r-- 1 root root 165611 Aug 13 12:45 config-3.13.0-34-generic
drwxr-xr-x 5 root root 1024 Aug 15 19:53 grub
-rw-r--r-- 1 root root 29201729 Aug 12 17:06 initrd.img-3.13.0-33-generic
-rw-r--r-- 1 root root 29202331 Aug 19 16:00 initrd.img-3.13.0-34-generic
drwx------ 2 root root 12288 Jun 17 19:21 lost+found
-rw-r--r-- 1 root root 176500 Mar 12 08:31 memtest86+.bin
-rw-r--r-- 1 root root 178176 Mar 12 08:31 memtest86+.elf
-rw-r--r-- 1 root root 178680 Mar 12 08:31 memtest86+_multiboot.bin
-rw------- 1 root root 3381262 Jul 29 13:41 System.map-3.13.0-33-generic
-rw------- 1 root root 3381262 Aug 13 12:45 System.map-3.13.0-34-generic
-rw------- 1 root root 5798688 Jul 29 13:41 vmlinuz-3.13.0-33-generic
-rw------- 1 root root 5797728 Aug 13 12:45 vmlinuz-3.13.0-34-generic
How much space is availble; now 141Mb; enough to upgrade or patch
[email protected]:/boot# df -k /boot
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 240972 87303 141228 39% /boot
I HIGHLY SUGGEST YOU LET ONE OF US GUIDE YOU AS YOU POST YOUR COMMANDS. IF YOU F-FINGER YOU MAY BRICK YOUR SYSTEM.