boot目录满了处理方案

/dev/sda1 /boot full

https://askubuntu.com/questions/502971/dev-sda1-boot-is-full

find /boot -type f -printf “%-16s %p\n” | sort -nr | head -n 20

uname -a

低于上面的都可以删除

rm initrd.img-x.x.x-xx-generic
rm vmlinuz-x.x.x-xx-generic

ls | sort | grep vmlinu | sort -r | tail -8

sudo xargs rm -rf <filelist.txt

ls | sort | grep initrd | sort -r | tail -8touch

df . -lh

然后

1
sudo update-grub

重启

(随意删除/boot下的文件,可能引起系统无法启动)

Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a solution).

https://github.com/zhongdeming428/Blog/issues/18

dpkg –list | grep linux-image-4 | awk ‘{print $2}’ | sort -r | tail -9

sudo xargs apt-get purge -y <needrmfilelist.txt >purgelog.txt

sudo xargs apt-get purge -y <needremoveimage.txt >purgelog2.txt

sudo apt-get purge -y linux-image-4.4.0-63-generic

dpkg --list | grep linux-image- | awk '{print $2}'

找到所有比当前内核版本低的内核。当你知道要删除哪些内核时,请继续在下面将其删除。运行以下命令删除您选择的内核:

sudo apt-get purge -y linux-image-xxxx-generic

然后更新grub2
sudo update-grub2

最后重启

sudo reboot

sudo apt autoremove

sudo apt-get purge -y linux-image-xxxx-generic

参考

https://www.jianshu.com/p/f9ab6101c39f