[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: putting a kernel onto a floppy (w/out kpkg...)



On Mon, Mar 25, 2002 at 06:28:49PM +0000, Martin Edward John Waller wrote:
> Hello,
> 
> I've made a kernel the 'traditonal' way (it's a
> freeswan thing) but I want it to boot from
> floppy.  It's installed the kernel and rurn lilo -
> how do I get it to boot with that kernel from a
> floppy (w/out kpkg!)

I know of two ways: lilo (or any other bootloader) or rdev.

I have done this in order to boot diskless clients which mount root
over NFS, but the same methods should apply regardless of where / is
located.

For lilo, modify and try this little script:
--------------
KERNEL="bzImage"
KERNELPATH="/usr/src/linux/arch/i386/boot/"
/sbin/mke2fs /dev/fd0
[ -d /fd ] || mkdir /fd
mount /dev/fd0 /fd
cp /boot/boot.b /fd
cp $KERNELPATH$KERNEL /fd/kernel
echo 'image=/fd/kernel label=linux append="root=/dev/hda2"' | /sbin/lilo -C - -b /dev/fd0 -i /fd/boot.b -c -m /fd/map -d 150
umount /fd
-------------

The other alternative is rdev, which I have not used, but it seems
rather straight forward, and probably what you want to try first. See
man rdev (in the util-linux package).


-- 
Note that I use Debian version 3.0
Linux emac140 2.4.17 #1 sön feb 10 20:21:22 CET 2002 i686 unknown

Hans Ekbrand

Attachment: pgpzV7g1p9016.pgp
Description: PGP signature


Reply to: