Re: Please answer me.

From: Tigran Aivazian (tigran@veritas.com)
Date: Tue May 16 2000 - 09:39:08 EST


On Tue, 16 May 2000, Artem Balabanyan wrote:

> I have made the Linux floppy boot disk that boots the Kernel
> from hda. But I also want that the same floppy disk could load
> another Kernel that is placed on it. To do this I need to find
> out the sectors on which the Kernel is written on the disk.
> How can I do this? I repeat the question: How to find the sectors
> the Kernel is situated on? Please answer me. If I did something
> wrong or you didn't get the question please write me back.
>

in order to boot more than one kernel by the same floppy disk you should
use LILO which is the standard Linux bootloader. Read Bootdisk-HOWTO on
how to create the appropriate /etc/lilo.conf for a floppy (it is trivial
unless you use 2.88M floppy images built in the ramdisk, in which case you
need to specify some very magic numbers in geometry that I can supply you
with).

as for the answer to your question (though you do NOT need this) is - to
find the actual sectors the kernel is located on you use the FIBMAP ioctl.

Regards,
Tigram

-
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.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:10 EST