Home >System Tutorial >LINUX >Delete redundant linux system boot items
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.
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.
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
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!