转自:http://m.oschina.net/blog/277224

# 解决

出现此情况是因为你的boot分区是单独分区的,像我只给了100M,以前装ubuntu时没有出现,所以当出现这个提示时,很纳闷,发现了答案.

为什么boot分区会满?

主要是存放了一些老的linux image镜像文件.

SO,

我们想查看我们boot分区有那些linux image,使用命令:

dpkg -l | grep linux-image

我们发现有 linux-image-3.13.0-24-generic,linux-image-3.13.0-27-generic,linux-image-3.13.0-29-generic,这是所有的.

那我们还需要知道系统现在正在使用的是那个image,so,使用命令:

uname -r

我的目前是3.13.0-29-generic,那么小于"29"的都是老的了.

那么我们就去删掉它/它们,

如果你只有一个老的image,则使用

sudo apt-get purge linux-image-x.x.x-xx-generic

如果有多个,像我的一样,那么

一是不断重复sudo apt-get purge linux-image-x.x.x-xx-generic,(当然我可不想这样...)

二是,那就批量了.使用命令:

sudo apt-get purge linux-image-3.13.0-{24,27}-generic

注意,当然不能包括"29"!

OK,至此问题一般都可以解决了.

以下是原文答案的拷贝.

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 of df -h, that partition is full. This is because there are some old kernels installed that are not needed; this is evident from the output of dpkg -l | grep linux-image that 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 command uname -r in a terminal, this will show you the kernel version you are currently using. It will say something like this 3.5.0-26-generic. Take a note of that number, 26! The following commands will assume that 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 would have to run this command for each of the versions, like sudo apt-get purge linux-image-3.5.0-17-genericsudo 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 your dpkg output, your 3.5.0-28 is half configured (from the iF status
next to it), so I'm assuming that was the one that your upgrade was
trying to upgrade to. So, a guess would say that the current running
kernel is 3.5.0-26, that's why I'm not including the number 26 in the brackets. But again, you need to find out what version you're running by uname -rIf 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 in uname -r is
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 typey when asked. This will show a bunch of lines, and will eventually go back to matty@matty-G41M-ES2L:~$, hopefully without 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 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'(转载)的更多相关文章

  1. [转]Not enough free disk space on disk '/boot'

    Not enough free disk space on disk '/boot' http://my.oschina.net/u/947673/blog/277224 # 解决 出现此情况是因为你 ...

  2. 12 Useful “df” Commands to Check Disk Space in Linux

    On the internet you will find plenty of tools for checking disk space utilization in Linux. However, ...

  3. Ubuntu --- not enough free disk space

    Ubuntu系统更新时出现not enough free disk space. 原因是系统的就内核占满了/boot 的空间,只要将旧内核删除就ok了 首先,命令 uname -r  查看当前内核,( ...

  4. Disk Space Usage 术语理解:unallocated, unused and reserved

    通过standard reports查看Disk Usage,选中Database,右击,选择Reports->Standard Reports->Disk Space Usage,截图如 ...

  5. 14.10.5 Reclaiming Disk Space with TRUNCATE TABLE 回收空间使用TRUNCATE TABLE

    14.10.5 Reclaiming Disk Space with TRUNCATE TABLE 回收空间使用TRUNCATE TABLE 回收操作系统磁盘空间当truncate 一个InnoDB ...

  6. Android Studio模拟器磁盘空间不足(Not enough disk space to run AVD)

    在Android Studio中运行模拟器时,提示Error: Not enough disk space to run AVD '....'. Exiting.是说安装模拟的磁盘空间不足,导致无法运 ...

  7. fix the issue that disk space is not the size that aws ec2 have.

    在申请aws ec2时,按照向导,在选择存储的时候默认硬盘大小是 8 G,这时候可以根据自己的需要输入一个合适的数字,例如100.完成向导并启动ec2 instance 后登陆机器.使用命令: df ...

  8. vmware启动虚拟机报错VMware Workstation has paused this virtual machine because the disk on which the virtual machine is stored is almost full. To continue, free an additional 1.4 GB of disk space.

    报错VMware Workstation has paused this virtual machine because the disk on which the virtual machine i ...

  9. How to get the free disk space in PostgreSQL (PostgreSQL获取磁盘空间)

    Get the current free disk space in PostgreSQL PostgreSQL获取磁盘空间 from eshizhan Here has a simple way t ...

随机推荐

  1. 2017年记录CS+CV

    2017年3月开学,始终感觉自己计算机基础薄弱,加上之前自己也开始对机器学习,深度学习有一些了解,始终感觉没有入门.自己开始规划系统学习计算机软件(CS)和计算机视觉(CV)的基础知识.@2017/9 ...

  2. 转:给 Android 开发者的 RxJava 详解

    转自:  http://gank.io/post/560e15be2dca930e00da1083 评注:多图解析,但是我还是未看懂. 前言 我从去年开始使用 RxJava ,到现在一年多了.今年加入 ...

  3. Android App 隐藏标题栏+状态栏+导航栏

    1. 隐藏当前Activity标题栏 在当前Activity中调用:this.requestWindowFeature(Window.FEATURE_NO_TITLE); 2. 隐藏当前Activit ...

  4. C语言宏定义技巧——多次包括头文件内容不同

    1.  头文件定义例如以下: /* declears in "funcs.h" */ FUNC_1(ID_FUN1_001) FUNC_1(ID_FUN1_002) FUNC_2( ...

  5. window.onresize 事件笔记

     1.浏览器尺寸变化响应事件 : window.onresize = function(){....} 这里须要注意的是,onresize响应事件处理中.获取到的页面尺寸參数是变更后的參数. // ...

  6. groovy入门 第05章 基本输入输出

    基本输入输出 5.1基本输出 print XXX    //同一行输出 println XXX //换行输出 输出字符串: def message ="My name is Michael& ...

  7. Objective-C之成魔之路【0-序章】

    郝萌主倾心贡献,尊重作者的劳动成果.请勿转载. 假设文章对您有所帮助.欢迎给作者捐赠,支持郝萌主,捐赠数额任意.重在心意^_^ 我要捐赠: 点击捐赠 Cocos2d-X源代码下载:点我传送 C语言首创 ...

  8. ruby简单的基础 2

    1.代码块 代码块是用大括号或者do...end括起来的一系列代码.{ #this is a block} do #this is a blockend [1,2,3,4,5].each {|i| p ...

  9. HDU2489 Minimal Ratio Tree 【DFS】+【最小生成树Prim】

    Minimal Ratio Tree Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Other ...

  10. 项目Beta冲刺(团队5/7)

    项目Beta冲刺(团队5/7) 团队名称: 云打印 作业要求: 项目Beta冲刺(团队) 作业目标: 完成项目Beta版本 团队队员 队员学号 队员姓名 个人博客地址 备注 221600412 陈宇 ...