Re: putting a kernel onto a floppy (w/out kpkg...)
hi ya hans
hummm... i do the simple dumb way....
# vi /etc/lilo.conf
# change the boot option
#
# boot=/dev/hda
boot=/dev/fd0
#
...
# lilo
and reset it back to hda and rerun lilo for good measure
that lilo'd floppy sometimes boots..sometimes not.. seems
to be hardware dependent ?? ( didnt go figure out why it fails )
if it does fail... as was said earlier
dd if=/boot/vmlinuz-2.xxxx of=/dev/fdo bs=1024
rdev /dev/fd0 /dev/hda1 (or wherever / is located )
if you use mkbootdisk .. you need to replace that kernel w/ the new one
if you use syslinux .... you need a dos-formated floppy...
- avoids lilo headaches
if you use grub.... i havent played with it yet..
c ya
alvin
On Mon, 25 Mar 2002, Hans Ekbrand wrote:
> 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
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: