Ubuntu prompts for/boot space is not sufficient when updating

Source: Internet
Author: User

The boot file contains some of the system boot files and kernel stuff that 100M is enough to accommodate. And the Linux kernel has been updated, with the new, the old kernel is not in use, but the old kernel files are still in the boot, occupy space, updated 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.

To view the old installed kernel

Dpkg--get-selections|grep Linux

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

First, use UNAME-A to see which kernel you are currently booting.

Execute a command to delete the old kernel

sudo apt-get remove linux-image-(kernel version)

Ubuntu now automatically rebuilds the boot menu grub.cfg, so it's one step. After uninstalling, you can use the DF command to see the space usage of the boot partition.

Sometimes the uninstallation is incomplete and can be cleared with a command

sudo apt-get autoremove

Ubuntu prompts for/boot space is not sufficient when updating

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.