My grub boot menu showed linux as first. It was fine while I was working on the kernel source. But now I tend to use a lot of Win gui apps. So I had to change it.
You can either do:
Manually edit the grub config file followed by updating grub menu
sudo emacs /etc/default/grub
Change the number in GRUB_DEFAULT line. First boot menu is numbered 0. If it is 6th boot menu, type in GRUB_DEFAULT=5.
Problem was that I didnt remember what order my Win 7 came at. So I had to use a gui tool: startupmanager
Or use a gui tool called startupmanager
sudo apt-get install startupmanager
Finally I reopened the file /etc/default/grub and found that the order was actually 5:
The good thing about this tool is that it actually shows you what the name that appears in the title is.
Update: Using the above didnt help me fine tune the startup menu and I found myself manually editing the /boot/grub/grub.cfg to reorder the menu. Note that if you wish your Windows option to be listed above Linux, just rename 30_os-loader to 09_os-loader (above 10_linux)
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.