LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2004, 11:14 AM   #1
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Rep: Reputation: 0
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.
 
Old 05-27-2004, 11:18 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 472Reputation: 472Reputation: 472Reputation: 472Reputation: 472
I always put Lilo/Grub on the MBR and have suffered no ill effects from doing this.
 
Old 05-27-2004, 11:55 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
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.
 
Old 05-27-2004, 12:44 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Here's a howto about using the NTLDR to boot linux.
http://www.tldp.org/HOWTO/Linux+NT-Loader.html
 
Old 05-27-2004, 01:21 PM   #5
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
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.
 
Old 05-27-2004, 05:29 PM   #6
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 05-27-2004, 06:01 PM   #7
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
just keeping it up.
 
Old 05-27-2004, 06:12 PM   #8
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
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.
 
Old 05-27-2004, 07:46 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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.
 
Old 05-27-2004, 09:32 PM   #10
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 05-27-2004, 09:57 PM   #11
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To run lilo, you will have to become root.
Open a Terminal (console) window and type:
Code:
su -
/sbin/lilo
 
Old 05-27-2004, 10:35 PM   #12
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 05-27-2004, 11:11 PM   #13
jonliu
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 05-28-2004, 02:46 AM   #14
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
Posts: 825

Rep: Reputation: 33
try

other=/dev/hda5
label=windows
table=dev/hda
 
Old 05-28-2004, 03:46 AM   #15
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual Booting XP and Linux LeftofCool Linux - Software 17 02-11-2004 10:24 AM
Dual Booting XP and Linux... DiZASTiX Linux - General 6 07-20-2003 10:34 AM
dual linux booting salparadise Linux - Software 2 04-24-2003 03:18 AM
Dual booting Linux BittaBrotha Linux - Distributions 5 11-04-2002 04:10 AM
Dual-booting Linux hank@$3800 Linux - Newbie 1 07-08-2002 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration