Clear boot partitions in Ubuntu

Source: Internet
Author: User
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

Related Article

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.