Re: kernel recompile...questions

Richard B. Johnson (root@chaos.analogic.com)
Sat, 11 Jul 1998 21:36:44 -0400 (EDT)


I test new kernels by booting them from a floppy. I don't touch the
last 'good' one until the new one is known to work at least well enough
to complete a boot and let me log in.

#
# This will update the bootable image and copy it to a floppy disk
# using the presently mounted root as the root filesystem.
# Created 21-JAN-1995 Richard B. Johnson
#
cp /usr/src/linux/System.map /
cp /usr/src/linux/arch/i386/boot/bzImage /tmp/vmlinux
ROOTDEV=`df / | cut -d ' ' -f1 | sed -e1d`
echo -n 'Setting root device as ' ; echo ${ROOTDEV}
rdev -R /tmp/vmlinux 1
rdev /tmp/vmlinux ${ROOTDEV}
cp /tmp/vmlinux /dev/fd0
psupdate

You don't have to use 'dd', cp works fine to copy the bootable image
to a raw floppy disk

Cheers,
Dick Johnson
***** FILE SYSTEM MODIFIED *****
Penguin : Linux version 2.1.108 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
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.altern.org/andrebalsa/doc/lkml-faq.html