LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dual Booting with XP and Linux (https://www.linuxquestions.org/questions/linux-newbie-8/dual-booting-with-xp-and-linux-186515/)

jonliu 05-27-2004 10:14 AM

Dual Booting with XP and Linux
 
I've looked on google for this numerous times and a general consensus that I have come up with is you are supposed to install XP first, make 2 partitions, and install Linux on the second(without installing LILO on the MBR).

I am usinging rehat linux 9.0, so my question is, exactly where in the install can i make sure i am not installing LILO on the MBR? I can't find htis option anywhere. I've already installed XP first, and then Linux on separate partitions. The result is my computer automatically boots up in Linux, while XP is somewhere hidden within the other partition.

Actually this is really 2 questsions.

Any suggestions.

XavierP 05-27-2004 10:18 AM

I always put Lilo/Grub on the MBR and have suffered no ill effects from doing this.

Mathieu 05-27-2004 10:55 AM

You install winXP first by creating the NTFS partition and leave the remaining disk space as un-partitioned.
Then you install Linux and put GRUB (or Lilo) in the MBR.

Both Lilo and GRUB are able to boot windows OSes (ALL of them).
There are many threads on LQ that can show you how to configure your bootloader (in this case: Lilo) to boot windowsXP.

jschiwal 05-27-2004 11:44 AM

Here's a howto about using the NTLDR to boot linux.
http://www.tldp.org/HOWTO/Linux+NT-Loader.html

mcd 05-27-2004 12:21 PM

well, it sounds like you've already installed lilo to the MBR, so you can either get rid of it or leave it. i've used lilo to dual boot for several years now and never had any problems, so I'd say just leave it. If it's not currently booting windows, then you need to edit the /etc/lilo.conf file and add something like this:

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


substitue the partition that windows is installed on for /dev/hda1. now at the command prompt, type lilo and press enter. from now on when you boot lilo should offer you a choice between linux and windows.


if you decide to get rid of lilo, search around on the forums, because there are lots of threads about restoring the MBR.

jonliu 05-27-2004 04:29 PM

XavierP,

I took your advice and modified the LILO file.

Mine reads

prompt
timeout=50
default=linux
boot=dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4. 20.8
label=linux
initrd=/boot/initrd-2.4.20-8.img
append="root=LABEL=/"

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



I added the lines you told me to add at the end, and my windows is store din hda5. This however still does not give me the option of Win XP. Any more suggestinos?

jonliu 05-27-2004 05:01 PM

just keeping it up.

mcd 05-27-2004 05:12 PM

did you run lilo? if not then after you save changed to /etc/lilo.conf, go to command line and type the following:

su root
(enter your password)
lilo

if you have already done that, then i'm not sure what to suggest.

J.W. 05-27-2004 06:46 PM

2 comments:

1. I realize you're anxious to get a response, but please do not bump your own posts unless at least 24 hours have passed without receiving a response, per the LQ rules.

2. mcd is correct - after you edit the lilo.conf file, you also need to run the lilo program in order for those changes to take effect. As root, run: /sbin/lilo

Reboot and you should be given the choice to select Linux or Windows. -- J.W.

jonliu 05-27-2004 08:32 PM

how do i "run" the lilo inside sbin.

I also noticed that there is a lilo inside sbin, usr, and etc. are these all the same lilo's?

Mathieu 05-27-2004 08:57 PM

To run lilo, you will have to become root.
Open a Terminal (console) window and type:
Code:

su -
/sbin/lilo


jonliu 05-27-2004 09:35 PM

I ran sbin/lilo and it told me....

Added linux *
Fatal: Partition entry not found.


Now my hardrive is partitioned like this....

/dev/hda
dev/hda1=linux

/dev/hda3
dev/hda5=windows

the indent means that the following item is within the unindented one.

So I went to my lilo.conf and changed

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

to

other=/dev/hda3
label=windows
table=dev/hda5

It doesn't work for either one.

Any suggestions.

jonliu 05-27-2004 10:11 PM

Don't mean to answer my own post, but can anyone give me a step by step clearly stated procedure as to how to dual boot XP and Rehat 9 on my computer?

mcd 05-28-2004 01:46 AM

try

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

J.W. 05-28-2004 02:46 AM

Again mcd's advice is accurate. Dual booting with XP and Linux is not difficult, and there are numerous threads here at LQ that deal with this topic. Sorry if my comment was not entirely clear but Mathieu's followup was exactly right. Good luck with the project. -- J.W.


All times are GMT -5. The time now is 12:41 PM.