From owner-freebsd-libh Thu Jun 15 4:49:33 2000 Delivered-To: freebsd-libh@freebsd.org Received: from mail.surf1.de (mail.surf1.de [194.25.165.21]) by hub.freebsd.org (Postfix) with ESMTP id 1F3E937B5B1 for ; Thu, 15 Jun 2000 04:49:30 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from neutron.cichlids.com (p3E9C1136.dip0.t-ipconnect.de [62.156.17.54]) by mail.surf1.de (8.9.3/8.9.3) with ESMTP id NAA22532 for ; Thu, 15 Jun 2000 13:49:15 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 76EA2AC27 for ; Thu, 15 Jun 2000 13:49:41 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id 14EE414AAD; Thu, 15 Jun 2000 13:49:28 +0200 (CEST) Date: Thu, 15 Jun 2000 13:49:28 +0200 From: Alexander Langer To: freebsd-libh@freebsd.org Subject: boot floppies Message-ID: <20000615134928.A7173@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga" X-Mailer: Mutt 1.0.1i X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii 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 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=Makefile # $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 --opJtzjQTFsWo+cga-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message