[xubuntu-users] "Not enough space on disk /boot"

Petter Adsen petter at synth.no
Sun May 24 12:55:06 UTC 2015


On Sun, 24 May 2015 21:20:52 +0900
Thomas Blasejewicz <nyuwa at hb.tp1.jp> wrote:

> On 2015/05/24 16:02, Petter Adsen wrote:
> > On Sat, 23 May 2015 22:55:38 +0900
> > Thomas Blasejewicz <nyuwa at hb.tp1.jp> wrote:
> >
> >> "Not enough free space.
> >> The upgrade needs a total of 81.9 MB of free space on the
> >> disk /boot. Please free at least an additional of 20.4 MB of space
> >> on the disk /boot. Empty your trash and remove temporary packages
> >> of former installation using sudo apt-get clean."
> >> I did not set this myself. However, I do recall using "entire disk
> >> + LVM" during setup and read somewhere, this might be problem.
> > What is this all about, and is there a way to make all this
> > "automatic"?
> > Maybe there is some old cruft there, placed there by mistake? If you
> > give us the output of "ls -lah /boot", we can tell you exactly what
> > commands to run in order to free up some space.
> >
> The command you gave, results in:
> thomas at maus:~$ ls -lah /boot
> total 39M
> drwxr-xr-x  5 root root 3.0K  5月 23 23:23 .
> drwxr-xr-x 22 root root 4.0K  5月 23 23:23 ..
> -rw-r--r--  1 root root 1.2M  5月  4 14:35 abi-3.13.0-52-generic
> -rw-r--r--  1 root root 166K  5月  4 14:35 config-3.13.0-52-generic
> drwxr-xr-x  3 root root 1.0K  5月 23 23:23 extlinux
> drwxr-xr-x  5 root root 1.0K  5月 23 23:23 grub
> -rw-r--r--  1 root root  29M  5月 23 22:57
> initrd.img-3.13.0-52-generic drwx------  2 root root  12K  1月 25
> 17:46 lost+found -rw-r--r--  1 root root 173K  3月 12  2014
> memtest86+.bin -rw-r--r--  1 root root 174K  3月 12  2014
> memtest86+.elf -rw-r--r--  1 root root 175K  3月 12  2014
> memtest86+_multiboot.bin -rw-------  1 root root 2.6M  5月  4 14:35
> System.map-3.13.0-52-generic -rw-------  1 root root 5.6M  5月  4
> 14:35 vmlinuz-3.13.0-52-generic thomas at maus:~$
> 
> I also found on the net a "1-command solution":
> http://tuxtweaks.com/2010/10/remove-old-kernels-in-ubuntu-with-one-command/
> 
> That command is, however, WAY beyond comprehension.

The wonders of the UN*X shell! :)

> But .. if it works (have not tried yet), I could copy it in regular 
> intervals from a text file to run it.

No, don't.

(And if you want something to be run at regular intervals, then use
cron or anacron).

> Then again, as I asked before, should all this not run
> "automatically"??? Where any update overwrites old, no longer used
> files, so that there is no need to do all this stuff manully.

Well, it appears it *is* being handled automatically, there is only one
kernel on your system (at least in /boot). I would have expected it to
be two kernels there, the one you are currently running, and the one
before it as a backup, but that is not a big issue.

Is /boot on a separate partition, or a part of / ? You can find out with
"df /boot". If it is listed as "/" under "Mounted on", then it is a
part of /, otherwise it will be listed as "/boot".

I suspect it is indeed a part of /, and that / is beginning to fill up.
If it is a separate partition, then run "du -sh /boot/*" to see what is
filling it up. If it is a part of /, then it is time to do a little
spring house-cleaning :)

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20150524/e2a09466/attachment.sig>


More information about the xubuntu-users mailing list