From owner-freebsd-questions Thu Dec 22 22:06:06 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id WAA11250 for questions-outgoing; Thu, 22 Dec 1994 22:06:06 -0800 Received: from clem.systemsix.com (clem.systemsix.com [198.99.86.131]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id GAA11242 for ; Fri, 23 Dec 1994 06:05:59 GMT Received: from clem.systemsix.com (localhost [127.0.0.1]) by clem.systemsix.com (8.6.5/8.6.5) with ESMTP id XAA08963; Thu, 22 Dec 1994 23:06:02 -0700 Message-Id: <199412230606.XAA08963@clem.systemsix.com> To: Chuck Robey cc: FreeBSD Questions Subject: Re: DD line In-reply-to: Your message of "Thu, 22 Dec 1994 21:32:03 EST." Date: Thu, 22 Dec 1994 23:06:00 -0700 From: Steve Passe Sender: questions-owner@freebsd.org Precedence: bulk Three little shell scripts I keep in /usr/local/bin: #!/bin/sh # flpy2flpy # copy a 1.44MB floppy to another: # 512 bytes * 18 sec/track * 80 tracks/side * 2 sides = 1474560 bytes total echo "Place source disk in drive 0" echo -n "Hit return when ready..." read response dd if=/dev/rfd0 of=/tmp/flpy.$$ bs=18b echo "Place destination disk in drive 0" echo -n "Hit return when ready..." read response dd if=/tmp/flpy.$$ of=/dev/rfd0 bs=18b rm /tmp/flpy.$$ #!/bin/sh # file2flpy # copy a file to a 1.44MB floppy: # 512 bytes * 18 sec/track * 80 tracks/side * 2 sides = 1474560 bytes total echo "Place destination disk in drive 0" echo -n "Hit return when ready..." read response dd if=$1 of=/dev/rfd0 bs=18b #!/bin/sh # flpy2file # copy a 1.44MB floppy to a file: # 512 bytes * 18 sec/track * 80 tracks/side * 2 sides = 1474560 bytes total echo "Place source disk in drive 0" echo -n "Hit return when ready..." read response dd if=/dev/rfd0 of=$1 bs=18b Not well tested, could use some arg count testing, etc. Steve Passe smp@csn.org