When you place files on a floppy disk, it is a good idea to make a note on the disk label of the format or the exact command used to place the files on the floppy disk. This makes it much easier for you (and others) to retrieve the files from the floppy disk. Also, whenever possible, change directories to the directory that contains the file and place the file on the floppy disk using a relative pathname, rather than specifying the absolute pathname.
Also, be aware that using a floppy disk to transfer files to systems made by other manufacturers may mean that the same tools are not available on the receiving system. The tar, cpio, and dd tools are usually available on all UNIX systems.
In the following examples, the floppy disk drive device name is given as /dev/rdsk/fds0d3.3.5. Your actual device name may be different.
To retrieve the file, use the command:tar cvf /dev/rdsk/fds0d3.3.5 transfer.file
To retrieve all files from a tar floppy disk, use the command:tar xvf /dev/rdsk/fds0d3.3.5 transfer.file
or for high-density floppy disks:tar xvf /dev/rdsk/fds0d3.3.5
For complete information on tar and its options, see the tar(1) reference page.tar xvf /dev/rdsk/fds0d3.3.5hi
To retrieve the file again, use the command:ls transfer.file | cpio -oc > /dev/rdsk/fds0d3.3.5
For complete information on cpio and its options, see the cpio(1) reference page.cat /dev/rdsk/fds0d3.3.5 | cpio -i
The following command extracts the same file:dd if=transfer.file of=/dev/rdsk/fds0d3.3.5 conv=sync
dd if=/dev/rdsk/fds0d3.3.5 of=transfer.file conv=sync
Note: dd works only with single files. You can use tar or cpio to create an archive file, though, and then use dd to transfer that archive. If you attempt to extract the file on another brand of workstation and you experience an error, try adding the conv=swab statement to your extraction command line. For complete information on dd, see the dd(1) reference page.