ubuntu清理boot分区

2015-11-25 19:19:00   技术   linux ubuntu

因为这个事情做了太多了,每次都去百度查觉得自己太那啥了。

不过这次我不是因为boot空间不足才做的,是因为从64开始的所有内核都不好用,都说找不到主磁盘这是什么鬼???

STEP1,获取所有安装的内核

dpkg --get-selections|grep linux-image
linux-image-3.13.0-62-generic           install
linux-image-3.13.0-63-generic           install
linux-image-3.13.0-65-generic           install
linux-image-3.13.0-66-generic           install
linux-image-3.13.0-67-generic           install
linux-image-3.13.0-68-generic           install
linux-image-extra-3.13.0-62-generic     install
linux-image-extra-3.13.0-63-generic     install
linux-image-extra-3.13.0-65-generic     install
linux-image-extra-3.13.0-66-generic     install
linux-image-extra-3.13.0-67-generic     install
linux-image-extra-3.13.0-68-generic     install
linux-image-generic             install

step2,查看当前使用的内核

uname -a
Linux jiyou-ThinkPad-X240 3.13.0-63-generic #103-Ubuntu SMP Fri Aug 14 21:42:59 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

step3-N,卸载不要的内核

sudo apt-get purge linux-image-3.13.0-68-generic 
sudo apt-get purge linux-image-3.13.0-67-generic 
sudo apt-get purge linux-image-3.13.0-66-generic 
sudo apt-get purge linux-image-3.13.0-65-generic 

stepN+1,我是不是应该重启一下机器了?

评论已关闭。
评论共