码迷,mamicode.com
首页 > 系统相关 > 详细

linux——boot空间不足

时间:2017-03-29 15:37:01      阅读:302      评论:0      收藏:0      [点我收藏+]

标签:空间   删除   命令   4.0   class   hadoop   roo   nbsp   linux   

1. 先用df命令,查看磁盘分区情况

2. dpkg --get-selections|grep linux-image(查看更新了多少内核)

 

root@ubuntu:/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(查看当前运行的内核)

root@ubuntu:/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. 删除不用的内核

root@ubuntu:/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空间不足

标签:空间   删除   命令   4.0   class   hadoop   roo   nbsp   linux   

原文地址:http://www.cnblogs.com/LazyJoJo/p/6639920.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!