Solve the problem that as the kernel is upgraded, grub boot items and boot partitions become smaller and smaller.
Source: Internet
Author: User
My laptop is equipped with Win7 and Ubuntu10.4LTS dual systems. with the upgrade of the Linux kernel, there will be more and more grub boot items when starting up. it is very troublesome to choose. enter the following command, you can delete unnecessary kernel versions and streamline grub boot items so that only the most... my laptop is equipped with Win7 and Ubuntu10.4LTS dual systems. with the upgrade of the Linux kernel, there will be more and more grub boot items when starting up. it is very troublesome to choose. enter the following command, you can delete unnecessary kernel versions and streamline grub boot items so that only the latest kernel boot items for Win7 and Ubuntu are left.
1
Sudo aptitude purge ~ Ilinux-image-2 .*(! 'Uname-r ')
Note that the preceding statement does not contain single quotation marks. it is used in nested shell scripts in the upper left corner of the keyboard. it allows one command to reference the results of another command.
If you want to select the left-side kernel boot, you only need to change the number to the left-side kernel version.
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