8.5. Creating a duplicate copy of a diskette

The dd command reads the InFile parameter or standard input, performs any specified conversions, then copies the converted data to the OutFile parameter or standard output.

To make a duplicate copy of a diskette, you first use the dd command to copy the contents of the diskette into a temporary file. Once the temporary file has been created, use the dd command to copy the temporary file onto the /dev/fd0 device, thus, creating a duplicate of your diskette. The following commands demonstrate this:

# dd if=/dev/fd0 of=/tmp/ddcopy
2880+0 records in.
2880+0 records out.
# dd if=/tmp/ddcopy of=/dev/fd0
2880+0 records in.
2880+0 records out.

Get IBM eServer Certification Study Guide - pSeries AIX System Administration now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.