Date: Thu, 22 Dec 1994 23:06:00 -0700 From: Steve Passe <fbsd@clem.systemsix.com> To: Chuck Robey <chuckr@Glue.umd.edu> Cc: FreeBSD Questions <FreeBSD-Questions@freefall.cdrom.com> Subject: Re: DD line Message-ID: <199412230606.XAA08963@clem.systemsix.com> In-Reply-To: Your message of "Thu, 22 Dec 1994 21:32:03 EST." <Pine.SUN.3.91.941222212713.6891B-100000@filter.eng.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412230606.XAA08963>