Ask Your Question
0

How can I change default Operating System in start up boot menu?

asked 2016-12-28 08:21:55 -0500

mahmoud ennaggar gravatar image

How can I change default Operating System in start up boot menu? It is Fedora 25 now and I want to set it on Win 10.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-12-28 15:29:35 -0500

whitepeony gravatar image

Step 1

Use the following command and find the name of the Windows entry:

$ less /boot/grub2/grub.cfg

For example, my output includes this line:

menuentry 'Windows 10 (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-53FBAC8F384D3675' {

You're looking for your equivalent to 'Windows 10 (loader) (on /dev/sdb1)'. Copy the entire part that's in quotes (from your output, not mine).

Step 2

As root, make a copy of "/etc/default/grub". For example:

# cp /etc/default/grub /etc/default/grub-backup

Step 3

As root, enter the following command:

# grub2-set-default MENU_ENTRY

Replace "MENU_ENTRY" with the entry name that you copied. Make sure it is in double quotes. For example:

# grub2-set-default "Windows 10 (loader) (on /dev/sdb1)"

Sources

(Yes, these are Ubuntu websites, but we're working with the Grub boot-loader rather than Fedora/Ubuntu, and I tested the above commands/paths on Fedora 25)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-12-28 08:21:55 -0500

Seen: 1,782 times

Last updated: Dec 28 '16