On Mon, 5 Feb 2001, Michael Jinks wrote:

> Thanks to everybody who has commented so far, very educational.  Some
> further info.
>
>
> "Mikkel L. Ellertson" wrote:
>
> > The only time LILO has problems when adding another drive is if you
> > change the LBA mode, or if you have SCSI drives in the system.  Adding
> > an IDE drive to a system that boots on a SCSI drive can cause problems.
>
> I left out these details because I didn't think they'd be relevant, but
> maybe I was wrong: this system does have a SCSI drive, and / lives
> there.
>
> When I first built the box I only had the IDE drive; later I added the
> SCSI drive and transferred the system to it, but found that I couldn't
> boot from it.  From this thread I now understand that my problem may
> have been the fact that the IDE drive was still present in the system.
>
> I got around it by telling LILO to wite the boot loader onto the IDE
> disk, but still kept / (which contains /boot) on the SCSI disk.  This
> worked fine up until now.  Maybe I'd have better luck if / lived on my
> IDE drive?
>
>
> > Normaly, I would suspect bad cabling before bad electronics, except for
> > the fact that he tried the drive on both the primary and secondary
> > chain, and the fact that the drive came from a "dead" system.
>
> The dead system is dead because of a damaged keyboard port, not because
> of other failures; it's awaiting a replacement motherboard but we don't
> have any prior reason to suspect any electronic failures in the system.
>
>
Ok, this tells me a lot more about what is going on.  Now, does the
system boot off the SCSI drive, or the IDE drive?  That makes a
difference on how to fix this problem.  From the sounds of things, you
are booting off the IDE drive, with /boot on the SCSI drive.  If this is
the case, then adding the IDE drive will mess up LILO, because the BIOS
number of the drives changes.

If you have a BIOS option of booting off the SCSI drive, then you can
fix LILO so it will install and boot off the SCSI drive with no
problems.  Adding the following lines to /etc/lilo.conf and running lilo
fill write the boot loader to the SCSI drive, and let it boot.

boot=/dev/sda
disk=/dev/sda
bios=0x80

This tells lilo the BIOS mapping of the drives.

If you are booting off the IDE drive, then the BIOS mapping with one IDE
drive is:

0x80    1st IDE drive.
0x81    1st SCSI drive.

When you add another IDE drive, it changes to:

0x80    1st IDE drive.
0x81    2nd IDE drive.
0x82    1st SCSI drive.

Because lilo uses the BIOS mappings to find the second stage loader, as
well as the kernel, adding the second IDE drive causes lilo to try
loading from the second IDE drive instead of the SCSI drive.

Note:  Booting off of a boot floppy is not affected by this, because the
kernel does not use BIOS mappings.

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to