LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-11-2013, 11:55 PM   #1
yawningdog
LQ Newbie
 
Registered: Sep 2009
Posts: 19

Rep: Reputation: 0
Update crashes, no space left in /boot.


When I run the software updater in Ubuntu 13.04, I get this.
Quote:
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...
Quote:
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 3.8.0.30.48 i386 Generic Linux kernel image
That doesn't seem excessive to me. There's this.
Quote:
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?
 
Old 10-12-2013, 12:40 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux: No space left on device while df command shows lot of free space LXer Syndicated Linux News 0 08-26-2013 03:50 PM
[SOLVED] Linux installer does not see free space left on dual boot drive Claussendb Linux - Laptop and Netbook 3 07-11-2013 02:45 PM
Ubuntu 10.10.1 crashes on boot starting NBD client after online update? brianpbarnes Linux - Software 3 12-01-2010 01:53 AM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM
Firefox crashes left and right slackwarefan Linux - Software 17 01-03-2006 10:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration