manage multi-volume archives (QNX)
vol -r|-w [-b blocking] [-s blks_num] block_special_device
Use pax to archive everything under the current directory and let vol split the data across as many diskettes (/dev/fd0) as required:
pax -w . | vol -w /dev/fd0
Restore the archive from /dev/fd0:
vol -r /dev/fd0 | pax -r
You use the vol utility primarily with removable media, particularly floppy diskettes. At the beginning of each volume, vol writes a header containing the creation time and sequence number of the volume-this helps you detect out-of-sequence diskettes.
A media descriptor is located on the first block of a floppy diskette. For this reason, vol by default skips the first block of each volume it writes to. If you don't want it to skip the first block, you can specify the -s option with a value of zero. When the disk is read on a QNX system, the (overwritten) media descriptor can confuse the Fsys.floppy driver, which is set up to automatically switch the drive parameters for media size (360k vs 1.2M, 720k vs 1.4M etc.) based on the contents of the first block of the disk. The lockfd utility may be used to override this behavior and lock the floppy disk drive to a specific media type.
If you want to save files larger than a single volume, specify the -w option. The vol utility will read the standard input and write it onto a block special device (usually diskettes), pausing at the start of each one.
To reassemble and extract archives split across several volumes, specify the -r option. The vol utility will read from a block special device and write the output in a single stream to standard output.
If you tell the vol utility to skip zero blocks on a floppy (-s 0), it might not be able to determine the media characteristics on retrieval.
The vol utility does not format media. See the fdformat utility for instructions on formatting floppy diskettes.