升級時發現boot,空間滿了,卸載之前的內核,清理空間。html
如何升級內核請查看我上篇博客:https://www.cnblogs.com/junsec/p/11453049.htmllinux
卸載多餘內核,清理bootbash
一、查看當前內核版本code
uname -a
二、肯定系統安裝的header和imagehtm
dpkg --list|grep linux-image dpkg --list|grep linux-headers
三、卸載多餘的header和imageblog
apt-get remove --purge linux-headers-xxxx apt-get remove --purge linux-image-xxx
四、清理rem
apt-get autoclean apt-get autoremove
五、更新grub,這也是我踩坑的點,沒有更新grub,直接重啓,結果就很慘get
update-grub2
六、重啓,就能夠了博客
reboot