Linux /boot分区空间不足

Linux /boot分区空间不足

系统升级提示/boot分区空间不足,解决方案:linux

一、查看内核:spa

dpkg --get-selection | grep linux-image

二、查看如今使用内核:
<pre name="code" class="plain">uname -r 
或
uname -a
 
 

三、把不在使用的内核卸掉:code

sudo apt-get purge linux-image-2.6.28-11-generic

这里删掉的内核与你的应该不一致,要删掉的内核状态应该显示"uninstall'一类的字样。这一步以后/boot分区应该已经变大,能够使用“ df "命令查看。
blog

四、若安装中断执行:ip

dpkg --configure -a
五、"Only One System Management Tool is allowed to run at the same time",代表系统apt程序死锁

解决方案:get

sudo dpkg --configure -a
六、使用df命令查看分区使用状态
df -h
以上步骤并非要按步执行,只是解决/boot分区空间不足的状况时可能会出现以及要考虑的事情。
相关文章
相关标签/搜索