DOCUMENT ID: 1494-02

SYNOPSIS:    A script to conservatively duplicate diskettes

OS RELEASE:  2.x

PRODUCT:     Solaris X86

KEYWORDS:    Duplicate floppy diskette


DESCRIPTION: 

This script will copy a diskette image from a hard disk to a floppy and
verify it using the 'sum' command. 

SOLUTION:

  #!/bin/sh
  #make a disk copy
  # syntax: 
  dd if=$1 of=/dev/fd0 bs=30b 2>/tmp/x
  y=`cat /tmp/x | grep out | cut -f1 -d'+'`
  echo $y
  dd if=$1 bs=30b | sum $1 &
  dd if=/dev/fd0 count=$y bs=30b | sum
  rm /tmp/x


DATE APPROVED: 09/05/95