Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Checking for write protection on a tape, without writing to it !!!

Posted on 2003-02-20
5
Medium Priority
?
222 Views
Last Modified: 2010-04-21
Checking for write protection on a tape, without writing to it !!!

Is there anyway of doing this.

I presume the hardware know, but how can you find out??

Thanks for any help.

Simon
0
Comment
Question by:simonuk1
4 Comments
 
LVL 2

Expert Comment

by:ellesd
ID: 7987402
Use the tape command with the status argument:

tape status

You might have to supply other info depending on your tape drive.  Read the man page on tape command.
0
 
LVL 7

Expert Comment

by:sppalser
ID: 7999139
Depends on your version of Unix.  Check your man pages for the "tape" command as ellsd suggested above.  Some of the unices used "ioctl", "tctl", "tioctl" and I am sure other commands. Also may want to do a "man HW tape" to see if that may reveal any related information. If you are using a third part backup utility check the utility menus or command line switches for anything that may poll the drive for its status.

Good Luck.
0
 

Author Comment

by:simonuk1
ID: 8002477
We have tried tctl as we run aix , but this only shows the status of the drive, avaliable - etc as it having a tape drive, but nothing about the tape.

Have found a solutiont hat requires using extended libraries.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 10706404
PAQed, with points refunded (50)

CetusMOD
Community Support Moderator
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

569 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question