no-rewind tape device driver

How is it possible to write a block to a magnetic tape forcing the device driver not to rewind after having completed the write?

I know it could be done using 'mt' to seek the end of tape after the write, but it is not efficient because the tape rewinds and fast forwards to seek exactly the same position as before.

In AIX I use /dev/rmt0.1 instead of using /dev/rmt0.

In my linux system I use to write tapes using /dev/st0. I can't find /dev/st0.1 or something like that for no-rewind option.

Any hint is welcome.
LVL 3
mliberiAsked:
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.

samriCommented:
mliberi,

   Beats me, have you tried /dev/st0n  <-- n stands for no rewind.

:)   not sure it works though, but in Solaris /dev/rmt/0n will serve the purpose.

You might want to try tough.

Samri
0
edicomCommented:
well, using /dev/nst0 should solve the problem.

Quoting Linux documanetation:

 9 char        SCSI tape devices
                  0 = /dev/st0          First SCSI tape, mode 0
                  1 = /dev/st1          Second SCSI tape, mode 0
                    ...
                 32 = /dev/st0l         First SCSI tape, mode 1
                 33 = /dev/st1l         Second SCSI tape, mode 1
                    ...
                 64 = /dev/st0m         First SCSI tape, mode 2
                 65 = /dev/st1m         Second SCSI tape, mode 2
                    ...
                 96 = /dev/st0a         First SCSI tape, mode 3
                 97 = /dev/st1a         Second SCSI tape, mode 3
                      ...
                128 = /dev/nst0         First SCSI tape, mode 0, no rewind
                129 = /dev/nst1         Second SCSI tape, mode 0, no rewind
                    ...
                160 = /dev/nst0l        First SCSI tape, mode 1, no rewind
                161 = /dev/nst1l        Second SCSI tape, mode 1, no rewind
                    ...
                192 = /dev/nst0m        First SCSI tape, mode 2, no rewind
                193 = /dev/nst1m        Second SCSI tape, mode 2, no rewind
                    ...
                224 = /dev/nst0a        First SCSI tape, mode 3, no rewind
                225 = /dev/nst1a        Second SCSI tape, mode 3, no rewind
                    ...

                "No rewind" refers to the omission of the default
                automatic rewind on device close.  The MTREW or MTOFFL
                ioctl()'s can be used to rewind the tape regardless of
                the device used to access it.


Regards
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
mliberiAuthor Commented:
Thank you, it works!

where did you find the quoted informations?
0
edicomCommented:
that linux doc regarding devices can be found in /usr/src/linux/Documentation/devices.txt if you have installed kernel sources.
Regards,
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.