General discussion

Locked

Check drive for tapes

By John H. ·
We have scsi exabyte drives connected to our SCO boxes. We have had problems with getting the tapes into the drives in a timely manner because they are at another location. Is there a way to check the drive to see if a tape has been inserted? We can do it with Solaris, but haven't found anything for SCO.

This conversation is currently closed to new comments.

14 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Check drive for tapes

by John H. In reply to Check drive for tapes

Point value changed by question poster.

Collapse -

Check drive for tapes

by Skizz In reply to Check drive for tapes

I'm not a SCO expert, but running the file command against the /dev entry for the tape device will often provide useful info on some Unix platforms.

Collapse -

Check drive for tapes

by John H. In reply to Check drive for tapes

File command doesn't tell me if there is a tape in the drive or not. Does give other useful info though.

Collapse -

Check drive for tapes

by Skizz In reply to Check drive for tapes

Do you have tctl or mt commands, sending an mt rewind to the tape drive will either work, or give you an error if no tape is loaded....

Collapse -

Check drive for tapes

by John H. In reply to Check drive for tapes

tctl is not available and the mt command does not work. On our Solaris boxes, we can use mt with the status command to check the drive, but need something for our SCO boxes.

Collapse -

Check drive for tapes

by cpfeiffe In reply to Check drive for tapes

I'm not familiar with SCO either, just Solaris, HP and AIX. If you have mt available that would be good to use, but you probably don't want to rewind the tape (if you plan to store more than one image on a tape the rewind command will put it back to the beginning and your next write will overwrite what was on the tape). Try this syntax -- mt -f /dev/rmt/0n status, assuming /dev/rmt/0 is the location of your tape. The n is for no rewind and status gives you a simple three line status of the tape. If there is no tape then you will get an error when you run this command instead of a three line status output.

Good luck.

Collapse -

Check drive for tapes

by John H. In reply to Check drive for tapes

I tried mt with the status command and it didn't work. Status is not available on our SCO boxes.

Collapse -

Check drive for tapes

by Skizz In reply to Check drive for tapes
Collapse -

Check drive for tapes

by John H. In reply to Check drive for tapes

Poster rated this answer

Collapse -

Check drive for tapes

by cavedweller In reply to Check drive for tapes

On SCO systems the "tape" command replaces "mt". I use "tape status" in scripts and grep the output (silently) to check tape status. A while loop is good for this if you need to wait until a tape is loaded.

Back to Linux Forum
14 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums