Ubuntu Boot space is low

Source: Internet
Author: User

When installing Ubuntu, when assigning space to the/boot file directory, it is 100m,/boot can be separated into a separate zone, or not separate, in/(root directory) will automatically create a boot directory for it. By the way, the Linux partition is a tree structure,/root directory, in its directory will be divided into different work of the directory, so when the partition can be divided into a single root partition and a swap (virtual memory) partition. If the minute points, for/boot separate partition, 100M enough, the boot file is stored in the system boot files and the kernel of some things, these things 100M is enough to accommodate. And everyone knows that the Linux kernel has been updated, after the update, the old kernel is no longer used, but the old kernel files are still in the boot, occupy the space, the update a few times after the boot file will be full, showing boot disk space is insufficient. In order to update the need to remove the unused kernel files, free space.

1:

Under terminal, look at the old kernel that is already installed:

Ctrl+alt+t--> Enter the terminal--input command:

Dpkg--get-selections|grep Linux

As follows:

Linux-behind the image is the old kernel. Because I have already deleted the old kernel, so the deinstall is shown later, the install is not deleted.

All we have to do is remove the Linux kernel with the image behind it.

2: Delete operation:

sudo apt-get remove linux-image-(version number) (which is the version with image above)

There is incomplete uninstall (hint), can be removed with sudo apt-get autoremove.

Ubuntu Boot space is low

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.