BACKING UP QNX 4 DISKETTES
AND LICENSES
PROCEDURE TO BACKUP A DISKETTE:
An entire diskette can be copied as a block special device.
Note that the floppy driver must be running. To check type:
sin ver
If not already running, start it:
Fsys.floppy &
Insert the diskette to be backed up into the drive. Copy the entire
disk to a file within the filesystem on the hard disk:
cp /dev/fd0 qnxboot.img
(where, qnxboot.img is any filename
or filespec, fd0 is the floppy device).
Insert the backup blank diskette into the drive.
Format it (no filesystem is required, so dinit is not required):
fdformat /dev/fd0
Copy the image data to the floppy:
cp qnxboot.img /dev/fd0
Wait till the drive light goes out, then verify the copy:
cmp qnxboot.img /dev/fd0
PROCEDURE TO BACKUP INSTALLED LICENSES:
There are two kinds of license diskettes. The original style has a product code-serial number and password on the back of the diskette on a white sticker. Each of this type of license is loaded with the license command into a separate file in the directory /etc/licenses. The new style shows a license number (almost 40 characters) in place of the password on the sticker. The diskette contains this same license number, the text of which is appended to the file /.licenses. You can type these in manually by editing the file. These license numbers will also be included on a printed sheet which accompanies the diskette.
The original style licenses cannot be copied with the cp command. This means that after restoration of a backup, the original style licenses will not be valid ! All of the licenses on a computer can be backed up onto a single floppy diskette as follows:Fsys.floppy & fdformat /dev/fd0 dinit /dev/fd0 mount /dev/fd0 /f license /etc/licenses /f cp /.licenses /f umount /fAfter restoring from a backup, restore the licenses from this diskette:
Fsys.floppy & mount /dev/fd0 /f license /f /etc/licenses cp /f/.licenses / umount /f
Copyright © 1998 Qenesis Inc. All rights reserved.