LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-23-2003, 12:40 PM   #1
giang
LQ Newbie
 
Registered: Jun 2003
Posts: 13

Rep: Reputation: 0
help!!!dual boot Redhat 9 and Windows XP


I had windows XP installed first then I installed Redhat 9 after that. During installation of Redhat 9, I chose Lilo as boot loader and put it in the MBR. However, when I restart my computer, it just boot straight into XP without asking me anything. I can only boot Linux using floppy. It seems to me that the boot loader of windows is still working, but I am not sure. How do I figure out which boot loader is doing the job?
Thanks for any help.
 
Old 06-23-2003, 02:50 PM   #2
warheros
Member
 
Registered: Jun 2003
Location: mason, mi, usa
Distribution: rh9
Posts: 87

Rep: Reputation: 15
you could try going into the BIoS
 
Old 06-24-2003, 12:12 AM   #3
motorcycle
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Rep: Reputation: 0
Lightbulb dual booting xp and linux

i had the same trouble and figured out that i must set it to boot to dos and not linux during the install
 
Old 06-24-2003, 12:46 AM   #4
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Boot into linux with your bootdisk (good thing you made one). Then, double check which disk/partition windows and linux are on. To do this run "fdisk /dev/hda" (you have to be root) and press p (to print the partition table). Then edit your /etc/lilo.conf file (you also have to be root to write to this file) and make sure the root=<blah> statement points to the linux partition. In my case it is: "root=/dev/hda1". Then check (should be down the bottom) the other=<blah> statement to make sure it points to you windows partition. In my case this looks like:

other=/dev/hda4
label="WinXP"

In both cases, where I have /dev/hdxx you put in the partitions you found out using fdisk. Then save your file and exit. Then, run "lilo" (this is what writes the new config to the MBR). The above is based on the assumption that the rest of the lilo.conf file is OK. I can't post attachments so I can't show you my lilo.conf. Just check if the above works. If not, we'll take it from there.
 
Old 06-24-2003, 02:54 AM   #5
yangkuo
Member
 
Registered: Jun 2003
Distribution: Redhat9/Slackware9
Posts: 35

Rep: Reputation: 15
you can put a line

'prompt' (without the single quotes)
'delay=60' (seconds)

in lilo.conf

it should cause 'LILO boot:' to be shown each time u start the PC. you can then press Tab to see which partition to boot to ...
 
Old 09-28-2003, 12:12 AM   #6
sirianni
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Help: Dual Boot Redhat 9 and WIndows XP

I'm also having issues dual booting windows XP and Redhat 9 using LILO. Here is how the system is configured

2 Physical Hard Drives

HD1: (/dev/hde)
30GB NTFS (hde1)
HD2: (/dev/hdf)
15GB NTFS (hdf1)
2GB FAT32 (hdf2)
102MB ext3 (hdf3) (linux boot partition i believe)
13GB Extended (hdf4)

XP was installed first. When I installed Redhat, I elected to use LILO and chose to install LILO on the MBR.

When I boot up the machine, it boots directly into Windows XP. There is no option to select Linux, nor do I see any indication that LILO is running at all.

I can get into Linux from the boot disk, and when I execute the command 'lilo' I get the following error:

Warning: device 0x2143 exceeds 1024 cylinder limit
Fatal: sector 33520451 too large for linear mode (try 'lba32' instead)

Here is what my lilo.conf file looks like:
prompt
delay=10
timeout=50
default=WindowsXP
boot=/dev/hde
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.20-19.9
label=linux
initrd=/boot/initrd-2.4.20-19.9.img
read-only
append="hda=ide-scsi root=LABEL=/"

other=/dev/hde1
optional
label=WindowsXP

Any suggestions/advice would be greatly appreciated!
 
Old 09-28-2003, 12:50 AM   #7
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
Add the line "lba32" to the top of your lilo.conf file. You may also want to add the line "root=dev/hdf4" (without the quotes) to the file as well.

Last edited by adz; 09-28-2003 at 12:54 AM.
 
Old 09-28-2003, 08:12 AM   #8
gill1109
Member
 
Registered: Dec 2002
Location: cyberspace
Distribution: Redhat 9
Posts: 61

Rep: Reputation: 15
I'd recommend to switch to grub! I have had a lot of good experience with it, including good experience fixing errors when things went wrong. It is even possible to make a grub boot disk.
 
Old 09-28-2003, 06:04 PM   #9
sirianni
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Thanks - the lba32 command fixed it. Also - i had to change the "boot" variable in lilo.conf to /dev/hdf3. Don't know why it got initialized improperly. Thanks again.
 
  


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
trying to dual boot with redhat 9 and windows xp magickangaroo Red Hat 1 07-29-2004 09:52 AM
Windows/Redhat dual boot dg_hosey Linux - General 5 12-31-2003 04:14 AM
Redhat Dual Boot with Windows 98 ako Linux - Newbie 3 11-07-2003 07:48 AM
dual boot of windows xp and redhat 9!! HELP!!!!!! azkikr89 Linux - Software 7 08-16-2003 06:05 PM
how do i dual boot windows with redhat 8.0 nikhil778 Linux - General 7 03-09-2003 05:31 PM

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

All times are GMT -5. The time now is 04:49 PM.

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