Re: LILO in a mixed IDE/SCSI system

Eyal Lebedinsky (eyal@eyal.emu.id.au)
Mon, 03 Aug 1998 22:48:38 +0000


Heinz Mauelshagen wrote:
> In a mixed IDE/SCSI configuration with SCSI configured BIOS boot preference
> using /dev/sda as the boot disk (LILO in MBR),
> /sbin/lilo complains with a warning, that boot is _not_ on the first disk
> (one IDE exists as /dev/hda).

I have a IDE/SCSI mix too. LILO failed badly due to a bug is converting
the device name (e.g. /dev/sdc) to a dos code (x'80' etc.). I last had
to
patch lilo 2.0, am not sure if it was ever fixed since.

*** geometry.c Fri Jun 20 13:24:52 1997
--- ../lilo-patched/geometry.c Fri Sep 12 11:56:07 1997
***************
*** 307,313 ****
geo->start = hdprm.start;
break;
case MAJOR_SD:
! geo->device = 0x80+last_dev(MAJOR_HD,64)+(MINOR(device) >>
4);
if (ioctl(fd,HDIO_GETGEO,&hdprm) < 0)
die("geo_query_dev HDIO_GETGEO (dev 0x%04x): %s",device,
strerror(errno));
--- 307,314 ----
geo->start = hdprm.start;
break;
case MAJOR_SD:
! geo->device = 0x80+last_dev(MAJOR_HD,64)+(MINOR(device) >>
4)
! /* Eyal */ +last_dev(22, 64);
if (ioctl(fd,HDIO_GETGEO,&hdprm) < 0)
die("geo_query_dev HDIO_GETGEO (dev 0x%04x): %s",device,
strerror(errno));

--
Eyal Lebedinsky		(eyal@eyal.emu.id.au)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html