How will I know what the name of the tape drive is?

And how can I access the drive (mount)?

gariecAsked:
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.

kencunninghamCommented:
I assume we're talking Solaris here? If it's the only tape on your system, it's probably called /dev/rmt/0, with options for 0c (compression), 0n (no-rewind) and combinations of these. Use mt to control your tape -

mt -f /dev/rmt/0cn fsf 1 will fastforward your tape to the next logical tape on a physical tape (if one exists). Man mt for more options like rewind etc. Man tar, cpio, ufsdump for backup and restore methods.

Hope this helps.
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
OtetelisanuCommented:
look with
ls -l /dev/rmt/

Example:
[root@pluto:] ls -la /dev/rmt/
total 58
drwxr-xr-x   2 root     sys          512 Feb 27 14:09 .
drwxr-xr-x  14 root     sys         4096 Mar  5 11:47 ..
lrwxrwxrwx   1 root     root          45 Feb 27 14:09 0 -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0b -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:b
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0bn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:bn
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0c -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:c
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0cb -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:cb
lrwxrwxrwx   1 root     root          48 Feb 27 14:09 0cbn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:cbn
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0cn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:cn
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0h -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:h
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0hb -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:hb
lrwxrwxrwx   1 root     root          48 Feb 27 14:09 0hbn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:hbn
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0hn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:hn
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0l -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:l
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0lb -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:lb
lrwxrwxrwx   1 root     root          48 Feb 27 14:09 0lbn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:lbn
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0ln -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:ln
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0m -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:m
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0mb -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:mb
lrwxrwxrwx   1 root     root          48 Feb 27 14:09 0mbn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:mbn
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0mn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:mn
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0n -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:n
lrwxrwxrwx   1 root     root          46 Feb 27 14:09 0u -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:u
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0ub -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:ub
lrwxrwxrwx   1 root     root          48 Feb 27 14:09 0ubn -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:ubn
lrwxrwxrwx   1 root     root          47 Feb 27 14:09 0un -> ../../devices/pci@1f,0/pci@1/scsi@1,1/st@4,0:un
[root@pluto]





 


0
OtetelisanuCommented:
and after what
kencunningham write.


0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

jwelterCommented:
I don't know if you really ever mount a tape for general purpose, like you might a file system.  Commands like tar, ufsdump, etc... write/read to/from tapes in the drive... (if you tell them to)

JW  (<~~~ Captain Obvious)
0
OtetelisanuCommented:
If you install a new tape
on the server you can
with
drvconfig (as root)
the tape install ('mount')
and after ls -la /dev/rmt/
if is OK.

0
elf_binCommented:
You can use devfsadm -c tape (-s means class, of which tape is the class we're interested in).

You can then use the mt commands to control the device (so like if we use st0 as the SCSI tape, we'd use mt -f /dev/rmt/st0 rewind to rewind the tape).

To do backups use tar/cpio and/or ufsdump.  In Solaris 9 you can snapshot the filesystem so you don't have to kick everybody off first (way cool!)

Best of luck.
0
liddlerCommented:

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Points split  kencunningham & Otetelisanu

Please leave any comments here within the next four days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

liddler
EE Cleanup Volunteer
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
Unix OS

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.