- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Check wether tape is writable?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2000 07:25 AM
10-30-2000 07:25 AM
Check wether tape is writable?
Does anyone know if it is possible to check if a tape is writable without writing to it?
Greetz, Danny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2000 07:28 AM
10-30-2000 07:28 AM
Re: Check wether tape is writable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2000 09:47 AM
10-30-2000 09:47 AM
Re: Check wether tape is writable?
If the tape is writable, you'll get:
Drive: HP C1537A
Format: DDS-1 format
Status: [41111300] BOT online compression immediate-report-mode
File: 0
Block: 0
If it's write protected, you'll get:
Drive: HP C1537A
Format: DDS-1 format
Status: [45111300] BOT write-protected online compression immediate-report-mode
File: 0
Block: 0
Notice the words "write-protected" in the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2000 09:54 AM
10-30-2000 09:54 AM
Re: Check wether tape is writable?
Not that I know of, 'mt status' doesn't seem to give any indication.
However if you position to end of tape (by mt fsf until it fails or mt eod for DDS drives) then you can reposition to the final tape mark (mt bsf 1) and then attempt to rewrite it (mt eof 1). The latter will fail if the tape is write proteced and if it works you've not changed any of the tape's contents.
The only problem with the above technique is the time that it can take to get to end of tape.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2000 11:15 AM
10-30-2000 11:15 AM
Re: Check wether tape is writable?
mt -f /dev/rmt/#mn status
I just used the command on my internal DDS drive and it works like a charm.