linux——boot空间不足
Posted LazyJoJo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux——boot空间不足相关的知识,希望对你有一定的参考价值。
1. 先用df命令,查看磁盘分区情况
2. dpkg --get-selections|grep linux-image(查看更新了多少内核)
[email protected]:/home/hadoop# dpkg --get-selections|grep linux-image linux-image-4.4.0-31-generic install linux-image-4.4.0-34-generic install linux-image-4.4.0-36-generic install linux-image-4.4.0-45-generic install linux-image-4.4.0-59-generic install linux-image-4.4.0-66-generic install linux-image-4.4.0-70-generic install linux-image-extra-4.4.0-31-generic install linux-image-extra-4.4.0-34-generic install linux-image-extra-4.4.0-36-generic install linux-image-extra-4.4.0-45-generic install linux-image-extra-4.4.0-59-generic install linux-image-extra-4.4.0-66-generic install linux-image-extra-4.4.0-70-generic install linux-image-generic install
3. uname -a(查看当前运行的内核)
[email protected]:/home/hadoop# uname -a Linux ubuntu 4.4.0-70-generic #91-Ubuntu SMP Wed Mar 22 12:46:53 UTC 2017 i686 i686 i686 GNU/Linux
4. 删除不用的内核
[email protected]:/home/hadoop# apt-get autoremove linux-image-4.4.0-31-generic linux-image-4.4.0-34-generic linux-image-4.4.0-36-generic linux-image-4.4.0-45-generic linux-image-4.4.0-59-generic linux-image-4.4.0-66-generic
以上是关于linux——boot空间不足的主要内容,如果未能解决你的问题,请参考以下文章