ubuntu清理boot分区

1860阅读 0评论2013-10-04 风箫夜吟
分类:LINUX

ubuntu 清理 boot分区


一。查看内核
dpkg --get-selections|grep linux-image

命令结果如:

linux-image-2.6.28-11-genericinstall
linux-image-2.6.28-12-genericinstall
linux-image-genericinstall

二。查看现在使用的内核心
uname -r

命令结果如:
2.6.28-12-generic


三。把不再使用的内核用apt-get purge命令卸载掉。如前面的例子,则用:

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

 

四。删除其余内核的头文件

cd /usr/src/
sudo rm -rf linux-headers-2.6.28-11*
上一篇:什么是Mesos?
下一篇:Mesos如何支持Hadoop计算框架(2)