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

Could you tell something about the Unix System Kernel?

3 Answers   ITCO, TCS,


Am using Mac OS 10.4.11 on an Imac (PPC) Internal hard disk got named disk0s3 and will not mount. What commands can be used in TERMINAL to rename the internal hard disk to C96?

0 Answers  


How can u doing testing in Unix environment ?

2 Answers   TCS,


What is ant_build.sh? Have u seen that file?

0 Answers   BMC,


What are permissions in UNIX?

5 Answers   BMC, University,


What is file constructing in UNIX/AIX ?

2 Answers   IBM, TCS,


fork()?

2 Answers   TCS,


What does init do? What does inetd do?

1 Answers  


What is the difference between > and >> operators?

6 Answers  


in unix how to change old name to new name

5 Answers  


How to recover a system whose root password has lost?

5 Answers   SoftNet,


The UNIX shell is.... a).does not come with the rest of the system b).forms the interface between the user and the kernal c) does not give any scope for programming d) deos not allow calling one program from with in another e) all of the above

2 Answers   IBM,


Categories