On Wed, 19 Jan 2000, Richard Adams wrote:

> On Wed, 19 Jan 2000,  warren11 wrote about,  lilo for 2nd hd:
> > I have 2 HD's, Using RedHat 6.1. First and main drive is /dev/hda
> > Second is /dev/hdb
> > Here is copy of my /hda2/etc/fstab;
> > /dev/hda2               /                       ext2    defaults        1 1
> > /dev/hda1               /mnt/dos                vfat    defaults        0 0
> > /dev/hdb1               /mnt/hdb1               ext2    defaults        1 2
> > /dev/hdb2               /mnt/hdb2               ext2    defaults       1 2
> > /dev/hdb3               swap                    swap    defaults        0 0
> > /dev/fd0                /mnt/floppy             msdos   owner,noauto    0 0
> > /dev/cdrom              /mnt/cdrom              iso9660 owner,noauto,ro 0 0
> > none                    /proc                   proc    defaults        0 0
> > none                    /dev/pts                devpts  gid=5,mode=620        0 0
> > ------------------------ 
Here is my new lilo.conf;
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
   vga = ask
timeout=50
default=rh61-a

image=/boot/vmlinuz-2.2.12-20
        label=linux
        initrd=/boot/initrd-2.2.12-20.img
        read-only
        root=/dev/hda2

image=/boot/vmlinuz2
        label=linux2
        initrd=/boot/initrd2
        read-only
        root=/dev/hdb2

other=/dev/hda1
        label=dos

other=/dev/hdb
        label = linux2

When I run lilo on this it says 'Added linux
                                 Added linux2
                                 Added dos
                                 Duplicat label "linux2"

Of course it still wont boot to /dev/hdb when I enter at lilo prompt
"linux2" and the tab key wont show it.  
> > -----------------------------------
> > 
> > I have installed R.H. 6.1 on my /dev/hdb2 and have a floppy boot that will
> > boot to it OK. My /dev/hda is a 1.6 gig W.D. and the /dev/hdb is a Fujitsu
> > 3.2 gig drive.
> > 
> > I have been all thru the various man pages and the
> > /usr/doc/HOWTO/mini/LILO file and have not found a good example of setting
> > up lilo.conf to allow booting to the second hd.
> > 
> > The above copy of lilo.conf (with the '# ' removed) will not work when I
> > run lilo,  The error msg I get is that;
> > 'Added linux
> >  open /dev/hdb2/boot/vmlinux-2.2.21-20: Not a directory'
> 
> The error is telling you there is no file or directory called
> /dev/hdb2/boot* and thats correct.
> 
> The default 
> boot = /dev/hda
> 
> So copy the desired image from /dev/hdb2/boot to /boot/vmlinux-2.2.12-20
> ( I presume its a typo, as 2.2.21 is not a kernel image, at least not yet.)
> 
> In other words,  the easiest way is to copy all images into /dev/hda2
> 
> > After running that I attemp to boot using at prompt 'boot2' and that wont
> > work, If I hit tab then it only lists linux and dos.
> > 
> > According to the mini HOWTO on lilo it says 'other files and labels are
> > allowed.
> 
> Yes but on the "boot drive"
> 
Well I copied the 2 files vmlinuz(etc) and initrd(etc) from /hdb2/boot
 to my /boot as 
'initrd2' and 'vmlinux2' but still wont work, below is copy of /boot as it
stands now;
total 3532
lrwxrwxrwx   1 root     root           20 Nov 30 04:03 System.map -> 
System.map-2.2.12-20
-rw-r--r--   1 root     root       191244 Sep 27 07:30 System.map-2.2.12-20
-rw-r--r--   1 root     root          512 Jan 17  1999 boot.0300
-rw-r--r--   1 root     root         4568 Sep 22 10:50 boot.b
-rw-r--r--   1 root     root          612 Sep 22 10:50 chain.b
-rw-r--r--   1 root     root       285025 Nov 30 05:33 initrd-2.2.12-20.img
-rw-r--r--   1 root     root       285027 Jan 19 16:44 initrd2
-rw-r--r--   1 root     root          237 Jan 19 16:56 kernel.h
-rw-------   1 root     root        16384 Jan 16 12:24 map
lrwxrwxrwx   1 root     root           21 Nov 30 04:03 module-info -> 
module-info-2.2.12-20
-rw-r--r--   1 root     root        11773 Sep 27 07:30 module-info-2.2.12-20
-rw-r--r--   1 root     root          620 Sep 22 10:50 os2_d.b
-rwxr-xr-x   1 root     root      1544561 Sep 27 07:30 vmlinux-2.2.12-20
lrwxrwxrwx   1 root     root           17 Nov 30 04:03 vmlinuz -> vmlinuz-2.2.12-20
-rw-r--r--   1 root     root       622966 Sep 27 07:30 vmlinuz-2.2.12-20
-rw-r--r--   1 root     root       622966 Jan 19 16:40 vmlinuz2

> > 
> > Note that I can boot to second drive using the boot floppy but that is a
> > bother and rather have it an altenate boot from regular lilo.
> 
> Then there should be no problem after cp'ing the images to /dev/hda2's
> /boot directory and rerunning lilo, at least thats how i do it, that at
> least works and is to my knowlage the simplest way, there are other ways,
> but i will not confuse the matter.

Just what do I need to copy ??.  Can you copy your lilo.conf to me as a
fileattach ?

I am about to give it up and just resort to booting using the floppy boot
for the /hdb boot.
Warren 

             * |     Warren Hrach, San Diego, CA 92107       | *
             * | [EMAIL PROTECTED] Linux & BBBS on an AMD K5 | *
             * |          BBS at (619}224-4878               | *

Reply via email to