Ask Your Question

change boot order(set windows as default os)

asked 2016-11-13 01:25:48 -0500

metalheadpundit gravatar image

I am dual booting windows 10 and fedora 24.when i boot the default grub selection is fedora 24, i want to change it to windows 10,i tried various method but none so far have worked.There is no grub.cfg in grub2 folder. so what should i do ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2016-11-13 04:43:56 -0500

hhlp gravatar image

updated 2016-11-13 05:14:51 -0500

You can use an easy-to-use the GUI application called Grub Customizer to make your life a little bit easier. As the name suggests, you can do much more than just reordering GRUB menu entries with it.

or manual

sudo nano /etc/default/grub

Find the line that contains


and set it to


where x is the index of grub menu item to which you would like to boot to by default. Note that the menu items are zero-indexed. That means that the first item in the list is 0 and that the second item is actually 1 an so on. the line would read:


If you forgot the order of the items, take a look at /boot/grub/grub.cfg. Each menu entry is specified by a line of type:

menuentry 'xxxxxxxx' [options] {

and then :

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

or if you have efi partition :

sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

DOCUMENTATION : grub and here GRUB_2


edit flag offensive delete link more

answered 2017-08-05 23:57:07 -0500

Thanks for the info, but for new Linux users like me, its better explain how to edit the "Grub", if you don't know how... 1.- Find "Grub" 2.- Open Terminal / write "su" and write you super user password
3.- Write in Terminal "Gedit (slide the icon to Terminal ) or write Gedit /etc/default/grub 4.- Edit the lines

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-11-13 01:15:50 -0500

Seen: 18,713 times

Last updated: Nov 13 '16