Thank friendly author to share the related knowledge on the Internet. Based on Google Search, I find out some information for me to resolve this problem. That is :
If the /boot partition size is full and the reason is the existing old kernel, maybe we will clean the old kernel images.
How to clear these old kernel images?
At first, we need to realize what the current kernel version is used by using the uname -r command.next to list all the old kernels that we ever have installed it by using the
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]'
commandSo do that we will know what version will be removed because the current kernel is not on these list.Then we will begin to uninstall and delete these old kernel by using the
dpkg -l linux-{image,headers}-"[0-9]*" | awk '/^ii/{ print $2}' | grep -v -e `uname -r | cut -f1,2 -d"-"` | grep -e '[0-9]' | xargs sudo apt-get -y purge
commandAfter do it, the /boot space will be free up now.
沒有留言:
張貼留言