Grub2 Configuration (boot menu)

来源:互联网 发布:ghost覆盖 数据恢复 编辑:程序博客网 时间:2024/05/24 07:33

Modify default boot OS,  in su mode:


1. Find Windows menu entry

cat /boot/grub2/grub.cfg | grep Windows


2. Set Windows as default OS

grub2-set-default "Windows 7 (loader) (on /dev/sda1)"


3. Verity

grub2-editenv list

4. Generate new grub config file

grub2-mkconfig -o /boot/grub2/grub.cfg

5. Reboot

reboot

原创粉丝点击