How to change boot sequence -Grub2 in feora 17
Works with Fedora 17
This is for dual boot os users, there are many who prefers dual boot
to keep another OS optional. For any reason if you wish to change boot
sequence unlike grub, grub2 requires couple of commands to run.
Here will take example to keep Windows as default boot.
First of all find menuentry for Windows
- cat /boot/grub2/grub.cfg |grep Windows
result:-
- menuentry 'Windows Recovery Environment (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-A4D6D327D6D2F90E' {
- menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-3AC0F2D0C0F2917D' {
Set Windows menuentry as default (only
entry mentioned in either " or ' from above command)
- grub2-set-default "Windows 7 (loader) (on /dev/sda2)"
Verify default entry
Generate updated grub.cfg
- grub2-mkconfig -o /boot/grub2/grub.cfg
Below is to set Fedora as default boot
- cat /boot/grub2/grub.cfg |grep Fedora
- grub2-set-default "Fedora Linux, with Linux 3.1.0-5.fc16.i686"
- grub2-editenv list
- grub2-mkconfig -o /boot/grub2/grub.cfg
阅读(1919) | 评论(0) | 转发(0) |