Transferred from: http://m.oschina.net/blog/277224
# Solve
This occurs because your boot partition is partitioned separately, like I gave only 100M, previously installed Ubuntu did not appear, so when this hint, very puzzled, found the answer.
Why is the boot partition full?
The main is to store some old Linux image image files.
So,
We want to view our boot partition with those Linux image, using the command:
Dpkg-l | grep linux-image
We found Linux-image-3.13.0-24-generic,linux-image-3.13.0-27-generic,linux-image-3.13.0-29-generic, this is all.
Then we also need to know that the system is using the IMAGE,SO, using the command:
Uname-r
My current is 3.13.0-29-generic, so less than "29" is old.
Then we're going to delete it/them,
If you have only one old image, use the
sudo apt-get purge linux-image-x.x.x-xx-generic
If there are multiple, like mine, then
One is to constantly repeat the sudo apt-get purge linux-image-x.x.x-xx-generic, (of course I don't want to do this ...)
Second, it's in bulk. Using the command:
sudo apt-get purge linux-image-3.13.0-{24,27}-generic
Note, of course, cannot include "29"!
OK, so this problem can be solved in general.
Here is a copy of the original answer.
Okay, so from the output of/etc/fstab
You posted, it seems that your/boot
is mounted on a separate partition, and from the output ofdf -h
, that's partition is full. This is because there was some old kernels installed that was not needed; This was evident from the output ofdpkg -l | grep linux-image
That's posted, where can see more than one "Linux-image" with different versions. We need to remove the old versions. First, I want you to run the commanduname -r
In a terminal, this'll show you the kernel version of you is currently using. It'll say something like this3.5.0-26-generic
. Take a note of the that number,26
! The following commands would assume that and that's the kernel you ' re running.
The command to remove the old kernel versions is:
sudo apt-get purge linux-image-x.x.x-xx-generic
... where the x characters is numbers. So, in your case, we would has to run this command for each of the versions, like sudo apt-get purge linux-image-3.5.0-17-generic
, sudo apt-get purge linux-image-3.5.0-18-generic
and so on. But, there's a-to-do all of the this through one command. The command is this:
sudo apt-get purge linux-image-3.5.0-{17,18,19,21,22,23,24}-generic
Do not RUN the COMMAND yet! Read the following.
This command would remove those versions in the brackets. I ' ve left out versions 3.5.0-25, 3.5.0-26, and 3.5.0-28 because from yourdpkg
Output, your 3.5.0-28 is half configured (from theiF
Status next to it), such I ' m assuming that is the one that your upgrade is trying to upgrade. So, a guess would say then the current running kernel are 3.5.0-26, that's why I'm not including the number26
In the brackets. But again, you need-find out what version of you ' re running byuname -r
.If the last number from this output is one of the numbers in the brackets above, do not RUN the COMMAND, and let us know.
but if the last number in uname-r
is, or, or even, then it's safe to run the above comma nd (however, if it's, remove number from the brackets). Enter your password when prompted, and type y
when asked. This would show a bunch of lines, and would eventually go back to [email protected]:~$
, hopefully wit Hout errors. When it's done, do df-h
and Look at the last line, the one that starts with /dev/sda1 . You should find that it's now have more space, and that the percentage used are less than 100% like it was before. You can proceed with your update.
Not enough free disk space on disk '/Boot ' (reprinted)