Not enough free disk space on disk '/boot' (reprinted)

Source: Internet
Author: User

From: http://my.oschina.net/u/947673/blog/277224

 

# Solution

This is because your boot partition is a separate partition. For example, I only gave 100 m, which was not installed in Ubuntu before. So when this prompt appears, I am very puzzled, the answer is found.

Why is the boot partition full?

It mainly stores some old Linux image files.

So,

Run the following command to view the Linux images in the boot partition:

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, It's all.

We also need to know the image and so that the system is currently using. Run the following command:

Uname-R

My current version is 3.small-29-generic, so those smaller than "29" are old.

Then we will delete it/them,

If you only have one old image, use

Sudo apt-Get purge linux-image-x.x.x-xx-generic

If there are multiple, like mine

One is keep repeating sudo apt-Get purge linux-image-x.x.x-xx-generic, (of course I don't want to do this ...)

Second, you can use the following commands:

Sudo apt-Get purge linux-image-3.13.0-{24, 27}-generic

Note: Of course it cannot include "29 "!

OK. The problem can be solved now.

Below is a copy of the original answer.

Okay, so from the output/etc/fstabYou posted, it seems that your/bootIs mounted on a separate partition, and from the outputdf -h, That partition is full. This is because there are some old kernels installed that are not needed; this is evident from the outputdpkg -l | grep linux-imageThat you posted, where you 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 -rIn a terminal, this will show you the kernel version you are currently using. It will say something like this3.5.0-26-generic. Take a note of that number,26! The following commands will assume 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 are numbers. So, in your case, we wowould have to run this command for each of the versions, likesudo 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 way to do all of 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 will 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 yourdpkgOutput, your 3.5.0-28 is half configured (fromiFStatus next to it), so I'm assuming that was the one that your upgrade was trying to upgrade. so, a guess wocould say that the current running kernel is 3.5.0-26, that's why I'm not including the number26In the brackets. But again, you need to find out what version you're re runninguname -r.If the last number from that output is one of the numbers in the brackets above, do not run the command, And let us know.

But if the last number inuname -rIs 26, or 28, or even 25, then it's safe to run the above command (however, if it's 25, remove number 24 from the brackets ). enter your password when prompted, and typeyWhen asked. This will show a bunch of lines, and will eventually go back[email protected]:~$, Hopefully without errors. When it's done, dodf -hAnd look at the last line, the one that starts/dev/sda1. You shoshould find that it now has more space, and that the percentage used is less than 100% like it was before. You can proceed with your update.

Not enough free disk space on disk '/boot' (reprinted)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.