DISKCP(C) XENIX System V DISKCP(C)
Name
diskcp, diskcmp - Copies or compares floppy disks.
Syntax
diskcp [ -f ] [ -d ] [ -s ] [ -96 ]
diskcmp [ -d ] [ -s ] [ -96 ]
Description
These commands provide easy copying of a source floppy disk.
dd(C) is used to make an image of the source floppy (the one
you wish to copy). On machines with one floppy drive diskcp
temporarily transfers the image to the hard disk until a
blank ``target'' floppy is inserted into the floppy drive.
On machines with two floppy drives dd immediately places the
image of the source floppy directly on the target floppy.
The options are:
-f Format the target floppy disk before the image is
copied.
-d The computer has dual floppy drives. diskcp copies the
image directly onto the target floppy.
-s Uses sum(C) to compare the contents of the source and
target floppies; gives an error message if the two do
not match.
-96 Instructs diskcp and diskcmp to process 96tpi floppies.
The default (no flag) is 48tpi.
diskcmp functions similarly to diskcp. It compares the
contents of one floppy disk with the contents of a second
floppy disk using the cmp utility.
Examples
To make a copy of a floppy, place the source floppy in the
drive and type:
diskcp
When diskcp is finished copying to the hard disk, it prompts
you to insert the target floppy in the drive. If you
specify the -f flag when you invoke diskcp , the program
formats the target floppy. When
the copy is finished, diskcp prompts if you would like to
make another copy of the same source disk. If you enter
`n', it prompts if you would like to copy another source
disk.
Specify the -d flag on the command line if you have two
floppy drives:
Page 1 (printed 8/7/87)
DISKCP(C) XENIX System V DISKCP(C)
diskcp -d
Notes
If diskcp encounters a write error while copying the source
image to the target disk, it formats the disk and tries to
write the source image again. This happens most often when
an unformatted floppy is used and the -f flag is not
specified.
Files
/usr/bin/diskcp
/usr/bin/diskcmp
/tmp/disk$$
See Also
cmp(C), dd(C), sum(C)
Page 2 (printed 8/7/87)