-   Linux - General (
-   -   Update crashes, no space left in /boot. (

yawningdog 10-11-2013 10:55 PM

Update crashes, no space left in /boot.
When I run the software updater in Ubuntu 13.04, I get this.

The upgrade needs a total of 26.6 M free space on disk '/boot'. Please free at least an additional 11.5 M of disk space on '/boot'. Empty your trash and remove temporary packages of former installations using 'sudo apt-get clean'.
Some googling suggests that I have old kernels lying around. I did, so I removed a lot of packages. So now...

rblalock@ubuntu:~$ uname -a; dpkg -l | grep linux-image
Linux ubuntu 3.8.0-30-generic #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013 i686 i686 i686 GNU/Linux
ii linux-image-3.8.0-30-generic 3.8.0-30.44 i386 Linux kernel image for version 3.8.0 on 32 bit x86 SMP
ii linux-image-extra-3.8.0-30-generic 3.8.0-30.44 i386 Linux kernel image for version 3.8.0 on 32 bit x86 SMP
ii linux-image-generic i386 Generic Linux kernel image
That doesn't seem excessive to me. There's this.

rblalock@ubuntu:~$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 228M 202M 15M 94% /boot

rblalock@ubuntu:~$ cat /etc/fstab
# /etc/fstab: static file system information.
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/ubuntu-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=2656b4db-dcb8-4df5-aa74-97a6cd3a3280 /boot ext2 defaults 0 2
/dev/mapper/ubuntu-swap_1 none swap sw 0 0
But I'm still getting the error and the /boot space numbers in the error haven't changed. This build was a fresh install only about six months ago, and it's on an SSD. Can anyone make any suggestions?

PTrenholme 10-11-2013 11:40 PM

You only need one kernel image and one initial RAM disk compressed file to be able to boot. (The both, of course, should be for the same kernel, although that's not an absolute requirement.)

Boot into you system, start a terminal window, and do a sudo ls -l /boot to see what's there, and then a sudo rm <actual name> to delete the stuff you don't need. (Substitute the actual name(s) of the file(s) to be deleted.)

Generally, any sub-directories of /boot contain information needed for the boot manager, and should not be altered.

Note that your /dev/sda1 is only 228Mb in size, so you don't have much room with which to play. (You might want to use a Live CD rescue disk to resize your partitions, expanding sda1 to a more reasonable size, and shrinking the others.)

Warning: From your /etc/fstab listing, it seems likely that your root filesystem is in a LVM virtual file system. If this is the case, resizing your other partition(s) is fairly complicated, and not to be undertaken without a complete, tested, current, offline back up.

Oh, Ubuntu often stores "backup" copies of the most recent kernel and the initial RAM filesystem in the root directory.

All times are GMT -5. The time now is 04:36 PM.