Clear unnecessary linux boot and linux boot

Source: Internet
Author: User

Clear unnecessary linux boot and linux boot
Clear unnecessary linux boot

Since I updated the system, the new and old boot systems (grub and Grub2) in Grub boot mode have two boot items for normal start and recovery respectively, as shown in: Baidu could not find relevant or similar tutorials, so he had to study them in the middle of the night. Now he has prepared and noted down his notes.

In this case, select the new boot item (the old boot cannot log on to the system), enter the system, open the terminal interface, and useCdCommand to switch to the/boot partition, and then use the ls command to view the partition. The grub and grub2 folders should be displayed at this time, focusing on the grub2 folder,CdCommand to switch to the/boot/grub2/directory, use ls to view the contents in the directory, use the VIM editor to find and open gurb. conf file, find the redundant pilot code line to delete and save it before restarting.

The extra code can be referenced from the options at startup. After restart, the new version of normal start and recovery modes will be left, grub. every menuentry In the conf file is a boot item, so find the boot item you want to delete,Delete the entire menuentry {}..

Free to provide the latest Linux technology tutorial books, for open source technology enthusiasts to do more and better: http://www.linuxprobe.com/

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.