rocky linux 8.5 gurb2 修改启动顺序 ( dual boot )
2022/3/12 7:15:00
本文主要是介绍rocky linux 8.5 gurb2 修改启动顺序 ( dual boot ),对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
https://wiki.centos.org/HowTos/Grub2#head-535f476a61e62f24bc150c73f7e0816f85345f46
https://www.cnblogs.com/hugetong/p/8126375.html [grub2] grub2修改启动顺序
编写于:2022.3.11
1, 查看所有的entry
[root@dpdk grub2]# awk -F \' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2-efi.cfg
0 : Windows Boot Manager (on /dev/sdb1)
1 : System setup
2. 查看当前default的entry
[root@dpdk grub2]# grub2-editenv list
saved_entry=c1841787d0bc49df94f17b4185985269-4.18.0-348.12.2.el8_5.x86_64
kernelopts=root=/dev/mapper/rl-root ro crashkernel=auto resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet
boot_success=1
boot_indeterminate=0
[root@dpdk grub2]#
3. 修改为指定的entry
[root@dpdk grub2]# grub2-set-default 0 [root@dpdk grub2]# grub2-editenv list
saved_entry=0
kernelopts=root=/dev/mapper/rl-root ro crashkernel=auto resume=/dev/mapper/rl-swap rd.lvm.lv=rl/root rd.lvm.lv=rl/swap rhgb quiet
boot_success=1
boot_indeterminate=0
[root@dpdk grub2]#
这篇关于rocky linux 8.5 gurb2 修改启动顺序 ( dual boot )的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-30[译]漫画SELinux概念
- 2024-03-29linux 移动文件
- 2024-03-28linux .so file
- 2024-03-28Linux 磁盘管理
- 2024-03-28Linux学习笔记(十三)磁盘管理(一):磁盘分区
- 2024-03-26linux 创建 文件
- 2024-03-25使用SecureCRT对Linux vim进行颜色设置
- 2024-03-202019-2020-12 20199317 《Linux内核原理与分析》 第十二周作业
- 2024-03-20Linux运维的第二周总结
- 2024-03-13how to count number of directories in linux