Some people use Ubuntu in dual boot with Windows and they prefer to make Windows as default Operating System. Prior to Ubuntu 9.10 this was achieved by changing the default line in /boot/grub/menu.lst file.
Ubuntu 9.10 Karmic Koala has Grub2 which does not have menu.lst file. The configuration file is /boot/grub/grub.cfg which is not supposed to be edited even by root. The primary configuration file for changing menu display settings is /etc/default/grub. The procedure to change the default OS is as follows:
Count the line number in the Grub menu taking first line as 0.
$ gksudo gedit /etc/default/grub
Change 0 in this line to the desired number:
GRUB_DEFAULT=0
Save and close the file
$ sudo update-grub
After running update-grub the default will change in grub.cfg
Subscribe to:
Post Comments (Atom)
We are registered voters of Bhopal as per Final eRoll published on 21 Feb 2026.
We relocated to Bhopal from Delhi wef 28 June 2025. I immediately applied for change of address on Aadhar and got it on 06 July 2025. Then ...
-
My friend asked me whether he could run Slideshow of Photos on Screensaver. First I thought about Shotwell Photo Manager App. It has Deskt...
-
Update: This is four years old. A new post on same topic may be found here . I wrote in the previous post that I would write about how to...
-
In Sep 2010 I had written about using Micromax 3G modem on Ubuntu 10.04 . Since then I could not find time to see whether Ubuntu 10.11, 11....
2 comments:
thanks! great and easy tutorial.
ladi.
Hi
I changed my default OS to Windows using the steps you mentioned. But then, WINXP would not start because the grub corrupted my "device.map" file in /boot/grub :(
I found help on how to reset my device.map and also re-installed my GRUB version using "sudo apt-get install grub2" and added the drive info of WIndows XP in the device.map.
Now, the default Os is changed to WInXP. Thanks for this post :)
Post a Comment