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 your linux machine shows a ~(tilde) in most filenames on your dos or windows partition,what is the mistake you have made?How do you get back the long filenames?

2 Answers  


What is file constructing in UNIX/AIX ?

2 Answers   IBM, TCS,


How do I log into a remote Unix machine(as a root/normal user)?Please specify with command user and argument.

3 Answers  


What is default permissions for others in a file?

5 Answers  


How will you run the script in UNIX?

5 Answers   BMC,






What is egrep?

2 Answers  


How do you log in to a remote Unix box?

2 Answers  


Explain about Inodes?

0 Answers   Amazon,


what is a profile?

1 Answers  


in unix how to change old name to new name

5 Answers  


System A can contact system B, but not in reverse, not firewall, not tcp wrappers, what is the reason ?

2 Answers  


how to face veritas NetBAckup interview, where did i find all materials regrding veritas and give details on veritas certification

13 Answers   3i Infotech, ABC, Accenture, ACS, CTS, Genpact, GSK, HP, IBM, Lapiz, Lapiz Digital, Satyam, Symantec, TCS, Veritas,


Categories