Not enough free disk space on disk '/boot'(转载)

转自: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 [email protected]:~$, 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'(转载)

时间: 2024-07-30 10:21:10

Not enough free disk space on disk '/boot'(转载)的相关文章

[转]Disk Space Usage and SQL Server Performance

Disk Space Usage and SQL Server Performance By Gregory A. Larsen When you think of SQL Server performance components, you think of the usage of CPU, memory, and the I/O it takes to process a query. However, there is another component you should consi

linux下如何查看disk space硬盘应用情况

主要是运用 df 指令,df是disk filesystem的缩写 其后面还可以加很多有用的tag df -h 以适合人类阅读的格式显示,也就是把容量以多少G(giga bytes),多少M为单位来显示 df -a 则是打印出最全的信息 以上两种便是最常用的了,若欲了解其他用法,可以查看 http://www.tecmint.com/how-to-check-disk-space-in-linux/ 或者直接 df --help得到帮助信息 linux下如何查看disk space硬盘应用情况

Disk Space Checking

On Error Resume Next Dim fso, DiskDriver,DD,Showfreespace,Totalsizespace,SizePercent Dim SendmailPermission SendmailPermission = 0 Set fso = wscript.createobject("scripting.filesystemobject") If (fso.folderexists("C:\Disk2")) = False t

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

Get the current free disk space in PostgreSQL PostgreSQL获取磁盘空间 Here has a simple way to get free disk space without any extended language, just define a function using pgsql. CREATE OR REPLACE FUNCTION sys_df() RETURNS SETOF text[] LANGUAGE plpgsql $

Ora-19804: Cannot reclaim 45561856 bytes disk space from 8589934592 limit

启动数据库到Nomount: startup nomount 扩大闪回恢复区的大小:show parameter db_recovery 执行SQL语句:alter system set db_recovery_file_dest_size=5g scope=both; 打开数据库:alter database mount; 打开数据库:alter database open; 进入RMAN模式:rman target sys/admin nocatalog RMAN删除过期的备份文件与归档文件

jenkins出现Disk space is too low /tmp left

今天刚刚配置完毕jenkins突然出现构建项目的时候一直卡在 pending上面于是查看了一下 提示说是 tmp目录太小,不足1GB,需要添加但是磁盘已经分完了,于是修改一下jenkins的free的需求保存,解决 原文地址:http://blog.51cto.com/9025736/2061679

Not enough disk space to create volume shadow copy

Solution: Run the following command before doing backup : reagent.exe /disable (it is to disable the recovery agent.) Remember to re-enable it after the backup is done. reagent.exe /enable 原文地址:https://blog.51cto.com/549687/2439162

oracle vote disk和ocr disk备份与恢复

1.ocr磁盘简介 健忘问题是由于每个节点都有配置信息的拷贝,修改节点的配置信息不同步引起的.Oracle采用的解决方法就是把这个配置文件放在共享的存储上, 这个文件就是 OCR Disk.整个OCR的信息是树形结构的,主要分为3大分支.分别是SYSTEM,DATABASE和CRS,每个人分支都有许多小分支,只能由root用户修改.ocr每4个小时备份一次,只保留5个文件,当天保留3个文件,上个星期保留一个,上个月也保留一个. OCR DISK内容包含: 1).节点信息 2).数据库实例,节点,

VMSS上用Managed Disk和Data Disk进行自动扩展(2)

10. 到目前为止,基本的模板配置已经完成,接下来我们使用Azure CLI 2.0来创建虚拟机自动扩展集合: az group create --name linuxvmssmanaged --location 'China North' az group deployment create --name mylinuxdeployment --resource-group linuxvmssmanaged --template-file vmsslinuxmanaged.json --par