On Sun, Apr 15, 2001 at 02:28:01PM -0500, Reuben D Budiardja wrote:
> Hello,
> I'm having a problem configuring my Lilo to work correctly (I'm running 
> RedHat Linux 6.2).
> I have 2 hard drive,
> Hard drive a= 4 GB, Linux RedHat 6.2
> Hard drive b = 20 GB, the first 6 GB  is windows 98.

I've read all the other replies (so far) to this and no one has touched
on what I believe is the correct answer to this issue. LILO lets you
logically swap two hard drives using the "map-drive" command. Here's
an excerpt from my lilo.conf:

other=/dev/hdb1
        label=dos
        table=/dev/hdb
        map-drive = 0x80
        to = 0x81
        map-drive = 0x81
        to = 0x80

This is the stanza that boots DOS (6.22) from /dev/hdb1 on my system. I
don't know any reason why you couldn't do the same thing with
Windoze,...  though I've not tried it myself. This swaps drive x80
and x81, i.e., the first two hard drives. Check out the LILO docs
in /usr/doc/lilo-<lilo version number>.

The Lilo docs indicate that this technique works only for an OS that 
uses BIOS services and ONLy BIOS services for hard disk access, which
may rule out Windoze, especially if yo're using busmastering or other
specialized device drivers for the IDE device.

> What I want is to be able to select whether to boot linux or dos. Now, when 
> I use Hd b as a master, I can boot windows perfectly fine. But when I use 
> Hd a as the master drive, and try to use LILO to do the booting, I cannot 
> boot my windows (it can boot my linux just fine).
> It says "Invalid system disk.... ".
> 
> My lilo.conf is included below. I'm preety sure I correctly put the correct 
> device name in my lilo.conf (/dev/hdb1) for my windows OS. To make sure 
> that, I can even put /dev/hdb1/ in my fstab, and mount it, and I can see 
> all the directories in my Hd b.

Alternatively, you can put the Windoze drive as master the Linux drive
as secondary (make sure you have a Linux boot floppy, FIRST, which will
boot it from the secondary drive), then install LILO onto the MBR of
the Windoze drive. That's essentially what I've done, I've got windoze
in hda1, Linux in hda6-hdax, MessyDOS 6.22 in hdb1 and several Linux
partitions on the rest of hdb. The MBR on hda contains the Lilo boot
sector, a technique which works just fine even if the bootable Linux
partition is on hdb (not hda).

here's another, larger, excerpt from my lilo.conf which I hope helps
to illustrate the technique:


boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=200
linear
default=linux

image=/boot/vmlinuz-2.2.16-3
        label=linux
        read-only
        root=/dev/hda5
        append="hdc=ide-scsi"
other=/dev/hda1
        label=w95
        table=/dev/hda
other=/dev/hdb1
        label=dos
        table=/dev/hdb
        map-drive = 0x80
        to = 0x81
        map-drive = 0x81
        to = 0x80

As you can see Linux now boots from hda. Back when I was running RH5.2
the /boot and /root partitions were actually on HDB, and all I did to
change it was wipe out some otherwise empty space on HDA to do a new
RH6.2 install onto, leaving all the stuff on hdb relatively unscathed,
then edit lilo.conf to point to the new boot directory.

Fred
-- 
---- Fred Smith -- [EMAIL PROTECTED] ----------------------------
    "Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of
     heaven, but only he who does the will of my Father who is in heaven."
------------------------------ Matthew 7:21 (niv) -----------------------------



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

Reply via email to