I installed Precise on my friend's computer to use it, but it automatically boots into Precise. He has Xp and wants it to boot into Xp automatically.
How can I set Windows Xp to be the primary boot operating system?
I installed Precise on my friend's computer to use it, but it automatically boots into Precise. He has Xp and wants it to boot into Xp automatically.
How can I set Windows Xp to be the primary boot operating system?
You can do this by editing
/etc/default/grub
:You can change the value for
GRUB_DEFAULT=
to"Windows XP"
or however the entry for Windows XP is named; orGRUB_DEFAULT=saved
and addingGRUB_SAVEDEFAULT=true
after you have made the changes, press Ctrl+o to save and Ctrl+x to leave. Then run
sudo update-grub
to apply the changes.I recommend the last option, it's the least annoying option in most cases, unless you boot into another OS each time you reboot.
See also the community documentation for Grub2 and Grub2/Setup.
I followed another forum that used a GUI called grub-customizer
How do I change the GRUB boot order?
It was simple and easy and didn't involve you accidentally messing up on the command line or in nano. This way if you install another OS and it changes the boot order again, you can quickly and easily change it to the way you want!
You have to edit the grub.cfg located at /boot/grub. Change the order OS menu entries in the file.
You can even set time out before the OS is chosen automatically.
Go through this https://help.ubuntu.com/community/Grub2/CustomMenus
Be very careful while editing grub.cfg