Parrot os更新内核及/boot空间清理

升级时发现boot,空间满了,卸载以前的内核,清理空间。

如何升级内核请查看我上篇博客:https://www.cnblogs.com/junsec/p/11453049.html

卸载多余内核,清理boot

1、查看当前内核版本

uname -a

2、确定系统安装的header和image

dpkg --list|grep linux-image
dpkg --list|grep linux-headers

3、卸载多余的header和image

apt-get remove --purge linux-headers-xxxx
apt-get remove --purge linux-image-xxx

4、清理

apt-get autoclean
apt-get autoremove

5、更新grub,这也是我踩坑的点,没有更新grub,直接重启,结果就很惨

update-grub2

6、重启,就可以了

reboot

  

猜你喜欢

转载自www.cnblogs.com/junsec/p/11525984.html