asked on
Configuring Linux to boot first with the Windows option
When it boots it automatically has the option for Linux first and then Windows afterward.
If nothing is done, it boots in Linux.
I want to reverse that.
How can I configure it so that the option is Windows first and if nothing is done it will boot in Windows ?
Look at the number if instance, default potentially is 1 while the Windows one is listed first.
The order of entries is how you set which boots if a choice is not made.
Setting it to 0 will make Windows the default.
ASKER
Forgive my asking since I don't have much experience in Linux, how could I open this file to make modifications to it?
Thanks again.
i second that. nano is most easy for novice users.
Sid not fully..
@joinaunion:
That is the way to remove grub... and replace it with the windows boot loader. and not boot linux until GRUB is reinstated...
AFAICT windows doesn't use grub. It isn't about choosing between various windows versions.
As far as I know you can install linux subsystem on windows now.
Linux subsystem on windows != linux.. it looks a lot LIKE linux and is in a slightly better shape than wine (Windows emulator on Linux etc.).
cygwin also has linux commands running on windows... also looks a lot like linux and also not is...
Then again there is nothing against running Linux native and running Windows in a VM..
So it depends.
Windows boot loader cannot restore grub as boot loader or boot linux from scratch, so restoring the windows boot loader is most probably not what the user want.
To restore grub one first has to boot a linux from CD and then restore the grub loader.
The grub loader is capable to boot a LOT of OS's one of which is Windows, other are Linux (in all their flavors), BSD (in all flavours) which includes MAC afaik.
So i guess grub is the best option to go from. Setting the default for grub can be done in various ways. depending on the sue case of the asker one is better then another.
(Upgrading Linux might change the order of entries so depending on that might also no be the best option).
Lookup the grub.cfg in /boot/grub/
Adding the followin to the file will remember you your last choice and use that by default...
Open in new window
Select a menu:
Open in new window
where menuid is the number of the choise.
f.e. choose 2nd option
Open in new window
And if there is a submenu below it and select 3rd entry:
Open in new window
If GRUB_DEFAULT=saved has been put in the grub.cfg file you can:
Also from the linux command reboot same option line:
Open in new window
Or set a default:
Open in new window
check [b]man grub[/b], [b]man grub-reboot[/b], [b]man grub-set-default[/b]