Clear boot partitions in Ubuntu

Source: Internet
Author: User
During the upgrade of Ubuntu to clean up boot partitions today, an error was reported: I allocated 256 MB to boot, and the system kernel was mounted to the boot partition, therefore, I need to clear the boot partition and view the existing kernel [html] dpkg -- get-selections | greplinux-image of the system. The figure is as follows: check... clear boot partitions in Ubuntu

Problem

At the time of today's update, an error is 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 the existing kernel of the system [html] dpkg -- get-selections | grep linux-image
The figure is as follows:


View the currently used kernel [html] 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. after clearing the/boot partition space, you can [html] sudo apt-get purge kernel name.

Cleanup of residual files
Clear the/usr/src directory and delete the unmounted kernel directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.