ubuntu删除旧的linux内核释放boot磁盘空间
今天要升级ubuntu到11.10版本,提示boot空间不足,于是用命令删除boot里的旧linux内核,命令如下
1、查看当前使用内核
sudo uname -a
Linux wangliang-pc 2.6.38-12-generic-pae #51-Ubuntu SMP Wed Sep 28 16:11:32 UTC 2011 i686 i686 i386 GNU/Linux
2、查看已经intall的旧系统内核
dpkg --get-selections|grep linux
3、选择删除那些linux-image开头的非当前使用的linux内核
sudo apt-get remove linux-image-2.6.38-8-generic
sudo apt-get remove linux-image-2.6.38-10-generic
sudo apt-get remove linux-image-2.6.38-11-generic
sudo apt-get remove linux-image-2.6.38-8-generic-pae
sudo apt-get remove linux-image-2.6.38-10-generic-pae
sudo apt-get remove linux-image-2.6.38-11-generic-pae