1855860 Members
2289 Online
104107 Solutions
New Discussion

dds tape move action

 
SOLVED
Go to solution
Oliver Schmitz
Regular Advisor

dds tape move action

Dear all,
I have an dds tape device on my hp-ux10.20 maschine. I did not use it a long time now and forgott the method to move the tape.
I remember that there was a command to move from one resource on the tape to another and so on.
I have actually three tar depots on my tape and when I do a tar lt I only get the list of the first depot.

Thanks for a hint,

Oliver
Oliver Schmitz
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: dds tape move action

Oliver,

Could it be that you only get the last tar file ?

# mt -f /dev/rmt/0mnb rew
# tar -tvf /dev/rmt/0mnb

Hope it helps,
Robert-Jan
Stefan Farrelly
Honored Contributor

Re: dds tape move action

mt -t /dev/rmt/Xmn fsf 1

This will fast forward the tape 1 record (but not rewind it). Replace Xmn with your tape device, eg. 0mn
Im from Palmerston North, New Zealand, but somehow ended up in London...
Mark Grant
Honored Contributor

Re: dds tape move action

Oliver,

Have a look at the "mt" man page. Use the no-rewind device which will probably have an "n" at the end of it as in "/dev/rmt/0mn". Useful commands are "rew" to rewind the tape, fsf n, to move forward "n" records and "offl" to eject the tape.
Never preceed any demonstration with anything more predictive than "watch this"
Keith Bevan_1
Trusted Contributor

Re: dds tape move action

Oliver,

Rewind to beginning of tape :-

mt -f /dev/rmt/0mn rewind

0mn is for the no rewind device so you can move forwards and backwards without the tape rewinding automatically)

To move tape forward substitute the rewind with :-

fsf Forward space count files.
(ie mt -f /dev/rmt/0mn fsf 1)
fsr Forward space count records.


Top move backwards substitute the rew for :-

bsf Backward space count files.

bsr Backward space count records.


More information can be obtained from theman page by typing :-

man mt

Hope this helps.

Keith
You are either part of the solution or part of the problem