Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-14-2010, 05:17 AM   #1
LQ Newbie
Registered: Oct 2009
Posts: 27

Rep: Reputation: 0
Script to Detect whether tape exist in tape drive or not

Not sure whether is feasible or not...

Any idea how to script to detect whether are there any tape media loaded in the tape drive ?
Old 12-14-2010, 05:26 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You probably want to use the `mt' command with the `status' operation.
1 members found this post helpful.
Old 12-15-2010, 01:17 AM   #3
LQ Newbie
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Can't seem to find the "mt" command though...
Which package should I install?

I'm using RHEL5.
Old 12-17-2010, 04:04 AM   #4
LQ Newbie
Registered: Oct 2009
Posts: 27

Original Poster
Rep: Reputation: 0
Found the package.


Thanks for the tips


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Tar file to tape drive faster than dir/files to tape drive? Runge_Kutta Linux - General 2 03-11-2009 08:13 AM
Check tape drive availability (full tape) TripleOne Linux - Server 0 02-12-2009 04:45 AM
Unable to insert the DAT72 Tape in tape drive. peddip Red Hat 8 01-08-2009 10:27 AM
Using a DDS5 tape drive to restore from a DDS3 backup tape. AndrewCAtWayofthebit Linux - Hardware 1 05-14-2006 10:15 AM
OpenBoot can't detect tape drive midlifecrisis Solaris / OpenSolaris 10 02-01-2006 08:34 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration