Date: Thu, 15 Jun 2000 13:49:28 +0200 From: Alexander Langer <alex@big.endian.de> To: freebsd-libh@freebsd.org Subject: boot floppies Message-ID: <20000615134928.A7173@cichlids.cichlids.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
Hello!
Could anyone make me a script that creates a working boot-1.44M-floppy with
a given binary (setup) as init?
I've tried it, but somehow I have no success - boot1 always gives the
error "Read error", and I don't know, why.
Help is also fine. I'm attaching my makefile, that I'm using at the
moment.
Thanks in advance!
Alex, hoping for reply. Really.
--
cat: /home/alex/.sig: No such file or directory
[-- Attachment #2 --]
# $FreeBSD$
FLOPPY_SIZE= 1440
floppy:
@echo "Making a ${FLOPPY_SIZE}kb boot floppy..."
umount /dev/vn0
vnconfig -u /dev/vn0
dd of=boot_floppy.img if=/dev/zero count=${FLOPPY_SIZE} bs=1k
awk 'BEGIN {printf "%c%c", 85, 170}' | \
dd of=boot_floppy.img obs=1 seek=510 conv=notrunc
vnconfig -s labels -c /dev/vn0 boot_floppy.img
dd if=/boot/boot1 of=boot_floppy.img conv=notrunc
disklabel -Brw -b /boot/boot1 -s /boot/boot2 /dev/vn0c fd${FLOPPY_SIZE}
newfs -i 32768 -m 0 -p 0 -o space /dev/vn0c
mount /dev/vn0 /mnt
mkdir -p /mnt/boot
cp -R /boot/* /mnt/boot
rm -f /mnt/boot/*.old
rm -f /mnt/boot/cdboot
rm -f /mnt/boot/pxeboot
# kzip -v /mnt/boot/loader
# mv -f /mnt/boot/loader.kz /mnt/boot/loader
cp -R floppy-tree/etc /mnt/
rm /mnt/etc/master.passwd
cp floppy-tree/etc/master.passwd .
pwd_mkdb -d . master.passwd
mv spwd.db /mnt/etc/; \
rm pwd.db master.passwd;
gzip -c /kernel > /mnt/kernel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000615134928.A7173>
