On Wed, 12 Jan 2000, warren11 wrote about, boot from either of 2 drives:
> I normally boot to my /hda drive but installed R.H.6.1 on my /hdb drive as
> well.
>
> Both have R.H.6.1 now. I made a boot disk when I installed both and with
> the boot disk from the hdb install can boot to that drive.
>
> How would I edit my fstab and or lilo.conf to allow my normal hd boot to
> give me the option of booting to either drive ?
>
> I have read the lilo manual but it is not clear on what to put where.
>
> Below is copy of my /hda2/etc/fstab and lilo.conf;
> ---------------------------- 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
>
> ---------------------------- hda.etc/lilo.conf
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> prompt
> vga = ask
> timeout=50
> default=linux
>
> image=/boot/vmlinuz-2.2.12-20
> label=linux
> initrd=/boot/initrd-2.2.12-20.img
> read-only
> root=/dev/hda2
>
> other=/dev/hda1
> label=dos
>
> _____________________________________ hdb2/etc/fstab
> /dev/hdb2 / ext2 defaults 1 1
> /dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
> /dev/hdb3 swap swap defaults 0 0
> /dev/fd0 /mnt/floppy ext2 noauto,owner 0 0
> none /proc proc defaults 0 0
> none /dev/pts devpts gid=5,mode=620 0 0
>
> ---------------------------------------- hdb2/etc/lilo.conf
> boot=/dev/hda
> map=/boot/map
> install=/boot/boot.b
> prompt
> timeout=50
> default=linux
>
> image=/boot/vmlinuz-2.2.12-20
> label=linux
> initrd=/boot/initrd-2.2.12-20.img
> read-only
> root=/dev/hdb2
>
> other=/dev/hda1
> label=dos
> ---------------------------- end -----------------------
>
> >From what I can tell I have to edit my /hda2/lilo.conf to include the
> /hdb2 boot stuff and then what do I do to boot to either one ?
Basicly yes, lilo supports 19 different boot images or "other" entry's.
add another image section for your the old install make sure the root=
points to /dev/hda2
cp the old image and System.map to /dev/hdb /boot directory and rerun lilo.
If you are dubious about doing it you can always define /dev/fd0 as the
boot= device and install lilo on a floppy to see how it works before
overwriting the MBR on /dev/hda.
read /usr/doc/lilo-x.x/README.
I have 4 ide and 2 scsi disks, there all deifned in lilo.conf.
>
> Warren
> * | Warren Hrach, San Diego, CA 92107 | *
> * | [EMAIL PROTECTED] Linux & BBBS on an AMD K5 | *
> * | BBS at (619}224-4878 | *
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
Happy New Year