LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-31-2002, 12:52 AM   #1
kmac
LQ Newbie
 
Registered: Apr 2001
Posts: 11

Rep: Reputation: 0
Win2K and Linux


I'm trying to install Win2K and Red Hat 7.3 on physically seperate drives. I have a 60 GB as my primary, on which I installed Win2k. I then installed Linux on a 10 GB secondary, and chose LILO as the boot loader. When I booted up, only linux was a possiblity.

Any suggestions?
 
Old 05-31-2002, 01:20 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
edit your /etc/lilo.conf to have windows as choice to boot from. also after editing lilo, run it to make the changes:

/sbin/lilo


#a sample for making your lilo entry to boot windows

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

#you can make your label whatever you want.. i tend to use something short like win or dos and your other=/dev/hda1 should point to the actual device in which your case if its the primary drive, you probably can just use other=/dev/hda1
 
Old 05-31-2002, 12:26 PM   #3
kmac
LQ Newbie
 
Registered: Apr 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for the help.

I tried what you suggested, but I'm still having problems. When I added that, 'win' was an option on LILO, but when I selected it all it did was go black for a second, then go back to LILO. Here is what lilo.conf is right now:

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

image=/boot/vmlinuz-2.4.18-3
label=linux
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/hdb5
append="hdc=ide-scsi"
other=/dev/hda1
table=/dev/hda
label=win

Any idea what going on?

Thanks,
KMac
 
Old 05-31-2002, 01:07 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Not sure why it would go blank then back to lilo like that with no errors. Are you sure hda1 is the exact location of w2k ?
Boot into linux and try this:

fdisk -l /dev/hda

and see if you can tell if your w2k partition is listed as hda1...
 
Old 05-31-2002, 01:11 PM   #5
shoot2kill
Member
 
Registered: Jan 2002
Location: California
Distribution: Red Hat
Posts: 402

Rep: Reputation: 30
try remove table=/dev/hda
 
Old 06-01-2002, 06:08 AM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I believe your problem is this line.

boot=/dev/hda1

This means to install lilo in the boot sector of /dev/hda1. Now /dev/hda1 is supposed to be your w2k partition.

So, not only do you have lilo in the mbr of /dev/hda, but also in the boot sector of /dev/hda1.

When you boot up, the lilo in the mbr of /dev/hda shows up first. Selecting w2k causes lilo to load the boot sector of /dev/hda1 and run the lilo that is installed there. I believe that's why you are not getting w2k. Your boot sector of /dev/hda1 is going to have to be fixed and you would have to change the line to:

boot=/dev/hda

That's the way it looks to me. Does anyone else see something different?

<edit> I thought of one other possibility, Lilo is installed in the boot sector of /dev/hda1 and the partition /dev/hda1 is set as active. When booting up, the lilo in the boot sector of /dev/hda1 is run and you get a prompt. When you select w2k, lilo loads the boot sector from /dev/hda1 and you end up at the lilo prompt again.</edit>

Last edited by linuxcool; 06-01-2002 at 06:14 AM.
 
Old 06-01-2002, 06:25 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I must be wrong but can't you just put:

boot=/dev/hda1
label=win2k
read-only

And that's it?
 
Old 06-01-2002, 06:31 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
HERE is a "how to" for Linux and win2k.
 
Old 06-01-2002, 06:46 AM   #9
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Quote:
Originally posted by MasterC
I must be wrong but can't you just put:

boot=/dev/hda1
label=win2k
read-only

And that's it?
The boot= line tells lilo where to install itself. You use the other= line when you want to specify another os. So, it would be:

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

littlewhitedog, that's the site I give out when someone wants to dual boot with the nt boot loader.
 
Old 06-01-2002, 09:59 PM   #10
kmac
LQ Newbie
 
Registered: Apr 2001
Posts: 11

Original Poster
Rep: Reputation: 0
OK I've got it working now.

linuxcool, I think you were right.

When I first installed it, I put lilo on the mbr, and I guess it put it on hda1 (thats where win2k was for sure, btw)

And while I was waiting for responses on this thread, I reinstalled redhat on hda (2-8), and that didnt work, and when i reinstalled it back on hdb, i did what you suggested and it worked

Thanks everyone
 
Old 06-01-2002, 10:10 PM   #11
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
  


Reply



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
Triple Boot - Win2K, Suse Linux & my own linux pavkb Linux - General 2 09-29-2003 08:57 AM
win2k sees linux files... linux won't see win2k files.. please help.. what will i do? kublador Linux - Networking 1 03-24-2003 07:31 AM
email: win2k to linux in linux hostile environment jkcunningham Linux - Networking 4 01-31-2003 12:07 PM
Win2k/mandrake -> win2k [remove linux] wct Linux - General 7 11-23-2002 11:48 PM
Win2K and Linux tcombes Linux - Software 1 01-08-2002 07:27 AM

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

All times are GMT -5. The time now is 08:34 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
Open Source Consulting | Domain Registration