Original link: UnionTech UOS deletes the rollback entries and backups in the upgraded GRUB
Hello, everyone! Today, I would like to bring you an article about deleting the rollback entries and backups in GRUB after the system upgrade on UnionTech UOS desktop operating system. After a system upgrade, there may be multiple rollback entries and backup entries in the GRUB boot menu, which may take up boot menu space and cause the boot menu to clutter. This article will detail how to delete these rollback entries and backups. Welcome everyone to share and forward, click to follow and watch!
What is GRUB?
GRUB (GRand Unified Bootloader) is a bootloader that allows users to choose a different operating system or kernel version to boot. After each system upgrade or kernel update, GRUB automatically adds new entries, while keeping old rollback entries and backups.
Delete the rollback entries and backups in GRUB
To keep the GRUB menu tidy, we can delete unneeded rollback entries and backup entries.
1. Check the system information
pdsyw@pdsyw-PC:~/Desktop$ cat /etc/os-version
[Version]
SystemName=UOS Desktop
SystemName[zh_CN]=统信桌面操作系统
ProductType=Desktop
ProductType[zh_CN]=桌面
EditionName=Professional
EditionName[zh_CN]=专业版
MajorVersion=20
MinorVersion=1070
OsBuild=11018.100.100
pdsyw@pdsyw-PC:~/Desktop$ uname -a
Linux pdsyw-PC 4.19.0-amd64-desktop #7016 SMP Fri Apr 12 11:41:17 CST 2024 x86_64 GNU/Linux
pdsyw@pdsyw-PC:~/Desktop$
2. Download the update
3. Install it now
4. Update and restart
5. Updating
6. There is a fallback interface for restarting
7. Open with the latest system
8. The upgrade is complete
9. Delete the grub rollback entry after the system is correct
pdsyw@pdsyw-PC:~/Desktop$ sudo -i
Please enter your password:
Verification successful
root@pdsyw-PC:~# rm -rf /etc/default/grub.d/11_deepin_ab_recovery.cfg
root@pdsyw-PC:~#
root@pdsyw-PC:~# rm -rf /etc/grub.d/11_deepin_ab_recovery
root@pdsyw-PC:~#
root@pdsyw-PC:~#
10. Delete backups
root@pdsyw-PC:~# rm -rf /boot/deepin-ab-recovery/
11. Update GRUB
root@pdsyw-PC:~# update-grub
Generating grub configuration file ...
找到主题:/boot/grub/themes/deepin-fallback/theme.txt
Found background image: /boot/grub/themes/deepin-fallback/background.jpg
找到 Linux 镜像:/boot/vmlinuz-4.19.0-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-4.19.0-amd64-desktop
Found image: /boot/vmlinuz-4.19.0-amd64-desktop
找到 initrd 镜像:/boot/initrd.img-4.19.0-amd64-desktop
Skipped UOS 20 on /dev/sda7 by user request.
finish
root@pdsyw-PC:~#
12. Reboot the system
13. No rollback entries
14. The system is in normal use
Through the introduction of this article, you should have mastered how to delete the rollback entries and backups in GRUB after system upgrade on UnionTech UOS desktop operating system. Keeping the GRUB boot menu clean and tidy can improve the efficiency and maintainability of system startup. If you find this article useful, please share and retweet. At the same time, don't forget to follow and watch, so that you can get more practical technical information and solutions in the future. Thank you all for reading and we'll see you next time!