Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Duplicating a diskette
Ref. No. QNX.000009660
Category(ies) Utilities, Filesystem, Configuration
Issue How do we go about duplicating a diskette?



Solution There are a couple of different ways to duplicate a diskette, depending on what resources are available on/to the computer.

------------

Scenario 1:  One floppy drive, no other floppy drives available

To duplicate a disk with one floppy drive available, it will be necessary to copy the files from the floppy disk onto the hard drive, then from the hard drive to a blank diskette.

Create an empty directory on the hard drive. Then copy the contents of the floppy disk on the hard drive:
  cp -rvp /fd /usr/tmp
Notice we are assuming that /fd is a mount point for /dev/fd0.  Sub in the /usr/tmp with the empty directoy created.  Once the files are done copying, insert the blank diskette into the floppy drive and copy the files onto the blank diskette:
  cp -rvp /usr/tmp /fd

------------

Scenario 2:  Access to another floppy drive over the network

If you have access to another floppy drive on the network, copying the disk is simplified.  Simply:
  cp //<source node>/dev/fd0 //<destination node>/dev/fd0.
This will perform a raw block copy from the source floppy drive to the destination floppy drive.

------------

Scenario 3:  Two floppy drives in the same machine.

This is very similar to scenario 2, except we do not have to put the node's in the cp command.
Simply:
  cp /dev/fd0 /dev/fd1
Once again, /fd0 is assumed to be the source and /fd1 is assumed to be the destination.