LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-13-2002, 02:13 PM   #1
p3n1x
LQ Newbie
 
Registered: Aug 2002
Distribution: FreeBSD
Posts: 24

Rep: Reputation: 15
redhat 7.3 and winxp again


Well, i managed to get redhat 7.3 and winxp installed on my laptop.
problem is its a jacked up way of booting into either
see when it loads up it boots right into linux, or xp, depending on which partition is active
see i got them both installed.
i installed linux first, using lilo as the boot loader, once i installed it, and made my partitions for linux, it was all good, then i went to load up xp, and i made another partition using fdisk from a old win9x boot disk. and got it to install XP and boot up and its all good
heres where my problem lies. i can only boot into ONE os each time, what i have to do to load into linux or xp is boot up with the win9x boot disk, then run fdisk, and change my active partition to either the linux boot partiton or select my xp partition and make it active, and then reboot and it will boot to my o/s of choice. but this is tedious and bugs, i know lilo can do this for me, but im half clueless as to how to setup my boot thing in lilo. ive been playing with lilo im not entirely sure on how to configure it to have xp as a choice.
i have the 3 partitions for linux, the boot root and swap, then i have my xp partition and it comes up as the C: drive tho. i was told to load linux on c: and put xp on d: so it wouldnt mess up my partitions, but it seems ive already done this. is there any way i can fix up lilo to get xp to load in it as well, without having to reload both os's?


i checked the hda's using the partition part of linux when i boot using the install cd' and here is how im setup

/dev/hda1 ext3 47mb, pretty sure this is my linux boot partiton
/dev/hda2 ext3 4.9gig this is my main hd for linux, where my data goes right?
/dev/hda3 swap 478mb, so i know this is my swap file
/dev/hda4 vfat 13gigs and i know this is my xp partition.

now what exactly would i do to lilo? i know where the lilo.conf lies im pretty sure i remember, and then i kno to run /sbin/lilo and it does something about adding configuration. do i have half a brain as to what im doin here?

much thanks to all the linux peeps out there who can help me thru this!!!!!
 
Old 08-13-2002, 02:18 PM   #2
p3n1x
LQ Newbie
 
Registered: Aug 2002
Distribution: FreeBSD
Posts: 24

Original Poster
Rep: Reputation: 15
ok, i seen this on a previous post, would this work? just wondering if this would work, before i go toying with things and further complicate it.....

============================================
Add these lines at the end of Lilo.conf and save the file.

other=/dev/hda1
optional
label=WinXP

and at the shell prompt, type "#lilo -r /". A new lilo will be installed
in your MBR with XP support. It worked for Win2k, and I hope it
works for XP too even though W2k's NTFS and that of XP are a
little different.
==============================================

and in place of the /dev/hda1 would i put /dev/hda4, since the hda4 is my xp partition...
 
Old 08-13-2002, 02:58 PM   #3
p3n1x
LQ Newbie
 
Registered: Aug 2002
Distribution: FreeBSD
Posts: 24

Original Poster
Rep: Reputation: 15
ok so i went into /etc/lilo.conf and added this

other=/dev/hda4
optional
label=WinXP

then i went to my prompt and typed
lilo -r /
and it says added linux *
skipping /dev4
symtax error near line 19 in lilo.conf

and thats about it
and the same error when i try typing just lilo
am i missing something

heres what my lilo.conf is right now

prompt
timeout=50
default=linux
boot=/dev/hda1
map=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.18-3
label=linux
initrd/boot/initrd-2.4.18-3.img
read-only
root/dev/hda2
append="hdc=ide-scsi"

other=/dev/hda4
optional
label=Windows XP


thats about it, and its giving me errors



i also tried other=/dev/hda4
optional
label=WindowsXP

with no space between windowsxp
and ran lilo -r / and lilo
and both times it just said
added linux *
skipping /dev4


Last edited by p3n1x; 08-13-2002 at 03:00 PM.
 
Old 08-14-2002, 11:02 PM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
"i can only boot into ONE os each time" - Oh the whole time I thought I couldn't boot 2 OSes at the same time on single CPU in split screen mode with 2 mice & keyboards. Damn!

# after you installed XP & Linux
#
# replace /dev/hda2 if need be
#
boot Linux & open terminal
dd if=/dev/hda2 of=boot.lnx bs=512 count=1
cp boot.lnx /mnt/floppy
Boot XP
copy boot.lnx c:\
edit boot.ini
After multi(0)..., add a new line
C:\boot.lnx="linux"
Reboot
 
Old 08-14-2002, 11:23 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Try it without the ' optional ' line. Like this:

other=/dev/hda4
label=WindowsXP

Also, are you absolutely sure that xp is on hda4?

Last edited by linuxcool; 08-14-2002 at 11:25 PM.
 
  


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
redhat 8 to winXP ICS ph33rful Linux - Networking 1 08-01-2003 01:54 PM
RedHat 7.2 and WinXp j_developer Linux - Newbie 3 08-15-2002 12:40 AM
RedHat 7.1 AND WinXP busybee Linux - Software 2 07-03-2002 06:38 PM
redhat 7. and winXP on same system XillusionsX Linux - Software 0 12-06-2001 11:31 PM
redhat 7. and winXP on same system XillusionsX Linux - Software 0 12-05-2001 08:46 PM


All times are GMT -5. The time now is 08:56 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