When I updated Ubuntu today, an error was reported: I allocated 256 m to boot, and the system kernel was mounted to the boot partition, therefore, I need to clear the boot partition and view the current kernel dpkg -- get-selections | greplinux-image in the system. The following figure shows how to view the currently used kernel uname-: the main idea of clearing/boot partitions is to selectively Delete the kernel that you do not want to continue using,
Problem
When I updated Ubuntu today, an error was reported:
Because I allocated 256 m to boot and installed the system kernel in the boot partition, I need to clear the boot partition.
View existing kernel of the system
Dpkg -- get-selections | grep linux-image
The figure is as follows:
View the current Kernel
Uname-
The figure is as follows:
Clear/boot partitions
The main idea is to selectively Delete the kernel that you do not want to continue using and clear the/boot partition space.
Sudo apt-get purge kernel name
Cleanup of residual files
Clear the/usr/src directory and delete the unmounted kernel directory.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2