Home >System Tutorial >LINUX >Delete redundant linux system boot items

Delete redundant linux system boot items

WBOY
WBOYforward
2024-01-03 15:17:16983browse

Since I upgraded the system, in the grub boot mode, the new and old versions (Grub and Grub2) of the boot system have two boot items each for normal startup and recovery mode, as shown in the following figure: Baidu cannot find it When I came to a related or similar tutorial, I had to get up in the middle of the night to study it. Now I have done it and written down notes.
Delete redundant linux system boot items
At this time, we select the new version of the boot item (the old version of the boot cannot log into the system), open the terminal interface after entering the system, use the cd command to switch to the /boot partition, and then use the ls command to view the partition , there should be two folders grub and grub2 displayed at this time. The focus is on the grub2 folder. Use the cd command to switch to the /boot/grub2/ directory, and then use ls to view the contents of the directory. , use the VIM editor to find and open the gurb.conf file, find the redundant boot code lines, delete them and save them before restarting.
Delete redundant linux system boot items
The redundant code can be referenced from the startup options. After restarting, the normal startup and recovery mode of the new version will be left. Each menuentry in the grub.conf file is a boot item, so find the boot item you want to delete, Delete the entire menuentry{} just.

The address of this article: https://www.linuxprobe.com/clear-linux-grubitea.htmlAuthor: annihilation, auditor: Zhang Hongyu

Original address of this article: https://www.linuxprobe.com/clear-linux-grubiteam.htmlEditor: Clearing github, auditor: None

Recommend some articles related to this article for you:

  • fwupd 1.8.7 adds support for new devices, as well as various improvements
  • The end of the 30th course training .
  • 5 ways to change the background of GRUB2
  • "Thinkphp5.0 Controller from Beginner to Master" e-book free download
  • How to upgrade from Fedora 37 workstation to Fedora 38 ( GUI and CLI)
  • "Tiantian Kuaibao" was suddenly removed from the shelves due to pornographic content? Official response
  • Black Lab Software Christmas gift: Linspire 7.0 free download
  • Linux: Quickly check IP address and modify IP address
  • Jack Ma: This era requires more entrepreneurial spirit
  • What is MongoDB and how it can meet your application needs

The above is the detailed content of Delete redundant linux system boot items. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete