Dual boot Vista and Linux

850 pts.
Tags:
Dual Boot
Dual booting
Linux
Vista
I would like to know the specifics to changing to Lilo and Grub config that need to be done in order to dual boot linux. I know that it has to be done, I know the boot partition needs to be set, I just need to know the specifics behind the config changes, ie, what specifically needs to be changed and what it needs to be changed to.

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you install Windows first, you should not need to make any additional changes.
If you install Linux first, you do need to do something.

Have a look at the following article for details for both cases (Ubuntu):

<a href=”https://help.ubuntu.com/community/WindowsDualBoot”>WindowsDualBoot </a>

Additionally, if you want to change the default system to load, you can do it this way:

“<b>For Lilo </b>:

Edit configuration file /etc/lilo.conf.
substitute the value of the “default” variable by the “label” of the specific system you want to load.
e.g from the following file the default system loaded will be linux :

<pre>boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=linux
prompt
timeout=50
message=/boot/message

other=/dev/hda1
label=windows
table=/dev/hda

image=/boot/vmlinuz
label=linux
root=/dev/hda4
append=””
read-only

</pre>To start on Windows you just have to change the default”variable to:

<pre>boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=windows
prompt
timeout=50
message=/boot/message

other=/dev/hda1
label=windows
table=/dev/hda

image=/boot/vmlinuz
label=linux
root=/dev/hda4
append=””
read-only
</pre>
After saving the file configuration /etc/lilo.conf, you need to restart lilo for the changes to take place.
Type in the following command in a terminal (under root):

/sbin/lilo –v

<b>For Grub</b>:

Edit the configuration file base upon the version used:

/boot/grub/grub.conf or /boot/grub/menu.lst.

Substitute the value of the default variable par by the number corresponding to the specific system you want to load (note that it always begins with “0″ )

From the following example the system loaded will be Linux :

<pre>default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

# section to load linux
# entry 0
title Linux (2.4.18-5.47)
root (hd0,0)
kernel /vmlinuz-2.4.18-5.47 ro root=/dev/sda2
initrd /initrd-2.4.18-5.47.img

# section to load Windows
# entry 1
title windows
rootnoverify (hd0,0)
chainloader +1
</pre>
To start up with Windows simply change the value of the default variable:

<pre>default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

# section to load linux
# entry 0
title Linux (2.4.18-5.47)
root (hd0,0)
kernel /vmlinuz-2.4.18-5.47 ro root=/dev/sda2
initrd /initrd-2.4.18-5.47.img

# section to load Windows
# entry 1
title windows
rootnoverify (hd0,0)
chainloader +1</pre>

Just save your configuration. When using Grub changes are made automatically, no need to restart your system.”

(<a href=”http://en.kioskea.net/faq/sujet-734-bootloader-system-dual-boot-by-default”>source</a>)

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Redneckmrt
    in the examples above, you just used the word linux. will this need to be changed based on the specific operating system, such as ubuntu or something like that? also, for clarification, i have windows and ubuntu. windows automatically loads after about 10 seconds of inactivity at the dual boot screen. I would like to change the settings to load ubuntu automatically. which section should i look at for that?
    10 pointsBadges:
    report
  • carlosdl
    Linux and Windows are just labels in this case, you could use a more descriptive text if you want. To change the deafult OS to be loaded, you just have to change the value of the 'default' parameter. For lilo you use the label, and for grub the entry number (starting with 0), as described in the answer above.
    68,525 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following