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

Posted on 2003-02-20
Medium Priority
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.

Question by:simonuk1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

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.

Expert Comment

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.

Author Comment

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.

Accepted Solution

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

Community Support Moderator

Featured Post

Technology Partners: 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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month10 days, 20 hours left to enroll

770 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