Eject DAT tape through command line

Can I eject a backup tape in a DAT drive from a command line ?
NorthumberlandAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

grbladesCommented:
Hi Northumberland,
Yes just use the command :-
mt -f /dev/st0 unload
0
NorthumberlandAuthor Commented:
grblades - I tried the command :

mt -f /dev/st0 unload

but it dosent like the unload option.  I have lock, unlock, load and a load of others.

0
grbladesCommented:
Sorry the command should be :-
mt -f /dev/st0 eject
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

NorthumberlandAuthor Commented:
Nope dont have an eject either I have :

usage: mt [-v] [--version] [-h] [ -f device ] command [ count ]
commands: weof, wset, eof, fsf, fsfm, bsf, bsfm, fsr, bsr, fss, bss, rewind,
          offline, rewoffl, retension, eod, seod, seek, tell, status,
          erase, setblk, lock, unlock, load, compression, setdensity,
          drvbuffer, stwrthreshold, stoptions, stsetoptions, stclearoptions,
          defblksize, defdensity, defdrvbuffer, defcompression, sttimeout,
          stlongtimeout, densities, setpartition, mkpartition, partseek,
          asf.
[root@linux root]#
0
grbladesCommented:
Use 'offline' or 'rewoffl' as they both do the same thing.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NorthumberlandAuthor Commented:
All that does is just eject the tape right - I can put another tape in and do a backup as normal without having to do anything else ?

0
grbladesCommented:
Yes thats correct. If you have an autoloader it will normally automatically load the next tape aswell.
0
NorthumberlandAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.