LinuxQuestions.org
Visit Jeremy's Blog.
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 10-04-2001, 07:13 AM   #1
Randy-RH7
LQ Newbie
 
Registered: May 2001
Posts: 11

Rep: Reputation: 0
Unhappy lilo problem


I have 2 hard drives in my computer. The master has Red Hat Linux 7.1 and the slave has Win 98.

I edited the /etc/lilo.conf file and added the following at the end:

/other=/dev/hdb1 (because that is what's in the vfstab)
label=Win98

Then I ran /sbin/lilo.

When I rebooted, and selected Win98, it said "Loading Win98" and just sat there.

What did I do wrong and what do I need to do now?

Thanks,

Randall
 
Old 10-04-2001, 08:59 AM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Not entirely sure, but:

Try removing the preceeding '/' so that it reads:

other=/dev/hdb1
label=Win98

I don't actually have 2 HDDs, but I belive that lilo shouldn't have any problems with it. I can't remember if there's supposed to be a preceeding '/' or not (I don't think there is).

Keep us posted.
 
Old 10-04-2001, 09:01 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Will post a copy of the 'Windows' bit of my lilo.conf tomorrow. Unfortunately, I can only access the internet from Uni (I don't have a phone line yet) and they run WinNT (bleurgh) so I don't really have access to one just yet.
 
Old 10-04-2001, 09:45 AM   #4
Randy-RH7
LQ Newbie
 
Registered: May 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy Slash was a mistake in post

The / was a mistake in the post.

It reads:

other/dev/hdb1
 
Old 10-04-2001, 12:07 PM   #5
Coproscefalo
Member
 
Registered: Jun 2001
Location: México (Juárez)
Distribution: SuSE 9.3
Posts: 108

Rep: Reputation: 15
Hi !!!

My lilo.conf looks like this:

other = /dev/hdx (without number)
label = windows

Where x is the letter of the ide channel, a=master on primary, b=slave on primary, c=master on secondary, d=slave on secondary.

Try it and see if it works.
 
Old 10-04-2001, 06:43 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Add this to your fstab file:

other=/dev/hdb1
label=Win98
table=/dev/hdb
disk=/dev/hdb
bios=0x80
disk=/dev/hda
bios=0x81


Then run /sbin/lilo.
 
Old 10-04-2001, 10:35 PM   #7
Randy-RH7
LQ Newbie
 
Registered: May 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy Still Not Working

I tried the suggestion in the previous post. The computer rejects the lines:

disk=/dev/hdb
bios=0x80
disk=/dev/hda
bios=0x81

When I put any of those lines in, the computer comes back with a syntax error.

This is what the lilo.conf looks like now:
*******************

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
default=Win98

image=/boot/vmlinuz-2.4.2-2
label=linux
read-only
root=/dev/hda8
append="hdc=ide-scsi"

other=/dev/hdb1
label=Win98
table=/dev/hdb

********************

Everything before "other=/dev/hdb1" is what was in the lilo.conf before I touched it, except "default=Win98" used to say "default=linux"

Any suggestions? Thanks, Randall
 
Old 10-05-2001, 06:27 AM   #8
heatseeker
LQ Newbie
 
Registered: Oct 2001
Posts: 9

Rep: Reputation: 0
Win98 can't boot from anything other than /dev/hdaX (primary master)
 
Old 10-05-2001, 07:25 AM   #9
Randy-RH7
LQ Newbie
 
Registered: May 2001
Posts: 11

Original Poster
Rep: Reputation: 0
Unhappy Here's a problem

Mr. Heatseeker,

I don't remember making a boot disk. What I did try to do is your suggestions from the previous posts. I am confused as to what to change in the lilo.conf file. I don't think I can simply change all the hda's to hdb's and simply change the ribbons and jumpers around, or can I? What exactly should my lilo.conf look like now that I have the Windows disk as Primary and Linux as secondary. I also have to change my CMOS to boot from the Secondary drive because if I don't, it just goes to Windows 98 and never thinks about Linux.

Randall
 
Old 10-05-2001, 05:15 PM   #10
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Maybe it didn't like where the lines were put. Try putting these lines at the begining of lilo.conf. You'll have to put the drives back to the way they were if you want to try this.

disk=/dev/hdb
bios=0x80
disk=/dev/hda
bios=0x81


If it doesn't like those lines, try these:

map-drive=0x81
to=0x80
map-drive=0x80
to=0x81



If you were to leave the windows drive as hda and linux as hdb, you'll have to edit the lilo.conf and fstab files and change hdb to hda and hda to hdb.
 
Old 09-15-2004, 02:31 PM   #11
yidakinick
LQ Newbie
 
Registered: Sep 2004
Posts: 1

Rep: Reputation: 0
You can leave your windows hard disk as slave if you use GRUB instead of lilo.
In the menu.lst file for GRUB add these lines.
title Windows
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
rootnoverify (hd1,0)
chainloader +1
This will lie to windows so it still thinks it is the centre of the universe! (assumes that your windows C:\ drive is the first primary partition on the slave drive (hd1,0))

To install grub:.
Install the grub rpm, then open a console, su to root then the commands:
grub
root (hd0,1) (or whatever the root of your linux is)
setup (hd0)
quit
to install grub to the mbr of hda.
Good luck
 
Old 09-15-2004, 02:55 PM   #12
ezrider2
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
I have a RH9 and I have installed MS 2k3 afterwards,
so obviously 2k3 overwrote the mbr/bootloader with it's own - now when I go back to grub, mod the conf file and do the setup from grub console, it gives me error 12: invalid device request, this is were grub loader was before and worked, i'm not sure what to do next.
Any suggestions ?
 
  


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
yet another lilo problem killahsmurf Slackware - Installation 6 04-23-2005 11:33 PM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 11:09 AM
LILO problem CommandoHamster Linux - General 4 07-22-2003 11:52 AM
LiLo Installation problem ?and (GNOME and KDE problem) hitesh_linux Linux - Software 1 01-01-2002 04:56 AM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM

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

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