LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-25-2005, 08:40 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
eject tape drive


I hv a external sdlt tape drive on my RH linux server , how can I eject the tape in the tape drive , I tried eject , but it can only eject the tape in the internal drive ? please advise .
 
Old 01-25-2005, 08:52 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If you know what the device is, you could use that to specify what gets ejected.
eject /dev/<nameofdevice>
 
Old 01-25-2005, 09:26 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply ,

how do i know what is the device ? thx
 
Old 01-25-2005, 09:54 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
It should be /dev/st? where ? is the number like 0 1 2 3 4 ....
You could run the command: dmesg and look for similar wording or just try your luck with
eject /dev/st0
 
Old 01-26-2005, 04:46 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
You'll need to know the device name (as others mentioned). Manipulating tapes can also be done generically using "mt". In your case, the command would probably be
Code:
mt -f /dev/nst0 rewoffl
where "rewoffl" stands for "rewind and take offline". You still have to flip the handle on your sdlt drive to eject the cartridge; it won't do that unless it's part of a library.

Hope this helped a bit...
 
  


Reply



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
Disabling CD-ROM drive eject button Nobber Linux - Hardware 16 06-05-2009 09:45 AM
Floppy drive interfaced tape drive in Slackware isolationist Linux - Hardware 6 02-13-2006 05:54 AM
Program to eject cdrom drive ... doubt tuxfood Programming 3 07-20-2005 03:33 AM
eject tape drive ust Linux - General 1 01-05-2005 10:04 AM
eject tape juno Linux - General 3 09-23-2002 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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