Checking for Bad Media in Unix
Question: I can't seem to set my machine to read the media TERM came on. Could it be bad media?
Answer: Do the following:
- Verify that the correct extraction command is being used. Double-check your release notes.
- Verify that the correct device name is being used for the media being read. if you are unsure of the
device name, and it is not listed in the Installation and Set up of TERM section in the
manual, you can search for the correct device name by inserting
the release media in the appropriate drive and type in the following at a system prompt:
for x in `ls /dev/rfd*`(use the tick character left of the number 1, not the single quote)
> do >
echo "Device: $x "
> tar xvf $x
- Interactive UNIX system V/386
- SCO XENIX/UNlX
- Sun Microsystems
- ICL DRS
- Tan 5.25 Diskette: 360K
- Black 5.25 Diskette: 1.2M
- Black 3.5- Diskette: 720K
- Black 3.5- Diskette: 1.44M
- Cartridge Tape: Low density
- Remove media, re-insert and try again.
- If the release has multiple diskettes, try executing the extraction command on each diskette received. If all diskettes fail, reboot the system and repeat steps 1 through 3. Occasionally, UNIX drives can get messed up and require rebooting to correct. If only one diskette fails, it is an indication that the diskette is bad. Call Century Software Customer Support.
- If all diskettes fail again, try using a non-Century Software diskette. If it fails to read, the diskette
drive probably requires cleaning. If the non-Century Software disk works, the TERM product diskettes are damaged.
Call Century Software Customer Support.
Cartridge Tapes: If you are having problems reading a cartridge tape, follow the steps above. If the above steps fall, be sure to use the blocking option with the tar command. Century Software's tapes are usually written with a block size of 20. For example:
If adding the block size option doesn't help, try using the dd command as follows:
tar xvfb /dev/rct0 20
If this command doesn't work, try:
dd if = /dev/ < device > | tar xvf -
The first command does a data dump and pipes it through tar. The second command does a data dump, byte swaps the files and pipes it through tar. Some tape drives (i.e. NCR towers) do byte swapping when reading and/or writing tapes. If the above fails, it is probably due to bad media. Contact Century Software Customer Support.
dd if = /dev/ < device > conv = swab | tar xvf -
This will cause the tar command to be used on all the selected devices until the correct one is found. In order for this to work correctly, you must loop through the right files and directory. See item 2 above for example directory specifications and media formats.