- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Tape device drives
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
05-11-2002 02:20 AM
05-11-2002 02:20 AM
I've used gtar and also tar for archiving and restoration.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2002 02:36 AM
05-11-2002 02:36 AM
SolutionIf you've got a tape in the drive you get this :-
root:raver:
/ > mt -t /dev/rmt/0m rewind
root:raver:
/ > echo $?
0
If the tape is in use you get this :-
root:raver:
/ > mt -t /dev/rmt/0m rewind
/dev/rmt/0m: Device busy
root:raver:
/ > echo $?
1
If there is not tape in the frive you get this :-
root:raver:
/ > mt -t /dev/rmt/0m rewind
/dev/rmt/0m: No such device or address
root:raver:
/ > echo $?
1
Therefore you can write a script to check the exit code.
A=$?
if [[ $A = 0 ]]
then
echo "Tape in drive"
else
echo "No tape in drive"
fi
HTH
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2002 02:36 AM
05-11-2002 02:36 AM
Re: Tape device drives
mt -t /dev/rmt/0m status
Drive: HP C1537A
Format:
Status: [0]
File: 0
Block: 0
mt -t /dev/rmt/1m status
no tape loaded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2002 02:36 AM
05-11-2002 02:36 AM
Re: Tape device drives
do command
mt rew
this will complain if no tape drive or no tape in drive
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2002 02:37 AM
05-11-2002 02:37 AM
Re: Tape device drives
also check man page for mt
man mt
there are lots of thiings you can do to manipulate the tape.
cheers
John.