How to set Windows as Default OS when Dual Booting Ubuntu?



How to set Windows as Default OS when Dual Booting Ubuntu? ..

Answer / amitshiknis

Command is - sudo gedit /boot/grub/menu.lst

This is show output as -
## default num
# Set the default entry to the entry number NUM. Numbering
starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case,
the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry
to 'saved' or your
# array will desync and will not let you boot your system.
default 0

The important line is the last one. You will need to change
that number 0 to match the Windows boot section. Typically
it's always going to be 4 on a default dual-boot
configuration. Change this value to 4, and then save and
reboot your machine. You should go into Windows instead of
Ubuntu automatically.

Thanks,
Amit Shiknis

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Unix AllOther Interview Questions

If the terminal is not showing the login prompt,what's the 1st thing you should check?and how do you solve the problem?

2 Answers   TCS,


What is FTP?

5 Answers   BMC,


What is a Region?

1 Answers  


What is the main advantage of creating links to a file instead of copies of the file?

5 Answers   Cisco, ING,


What is Fork swap?

1 Answers   Infosys, SSI Small Scale Industries,






What UNIX command will control the default file permissions when files are created?

3 Answers  


very first process created by kernell?

4 Answers   TCS,


How do you execute a UNIX command in the background?

2 Answers  


What is paging?

2 Answers   BMC,


The very first process created by the kernal that runs till the kernal process is haltes is

6 Answers   IBM,


Explain the read, write, and execute permissions on a UNIX directory.

1 Answers  


What is a filesystem?

3 Answers  


Categories