Using The Seek And Tell Features Of Mt - HP 157770-001 - DAT Drive 20/40 Tape Configuration Manual

Dds/dat evolution ii drives
Hide thumbs Also See for 157770-001 - DAT Drive 20/40 Tape:
Table of Contents

Advertisement

available as either loadable modules (for example, usable with
are statically built into your kernel.
NOTE:
To add drivers to the statically built kernel you need the Linux source code available on disk
and knowledge of how to use the kernel building tools that ship with various Linux distributions. This
should not be attempted by novice users.
In order to determine if the drive has been detected by the tape driver at module load time, execute:
dmesg | grep "st"
This should find a number of lines. One should look like:
Detected SCSI tape st0 at scsi1, channel 0, id 5, lun 0
To load the tape driver module if it is not loaded as above, execute:
insmod st
to load it. This should happen naturally if your system is rebooted after attaching the drive.
When the
ST
They reside in the
/dev/stp or dev/nstp
where:
Instance number of the device file (0 if only one drive is connected to the system)
p
Indicates this is a no-rewind driver
n
To enable large transfers under Linux (>64 KB per write), edit the file
/usr/src/linux/drivers/scsi/st_options.h
If you want requests to space to end of data (EOD) to be faster, you should also enable
ST_FAST_MTEOM
binary. At the very least, this requires:
make modules
make modules_install
from the
/usr/src/linux

Using the seek and tell features of mt

To use the seek and tell features of mt, you must tell the st driver that DDS-format drives use logical
block addressing:
mt -f <device file> stsetoptions scsi2logical
where /dev/stp is the device file.
Note however that this information is not preserved across reboots, so you need to execute this
command each time the system comes up. The stinit utility offers a convenient way of handling
30
Linux (kernel 2.6.x) servers and workstations
driver module has been added, a list of tape device files will be created automatically.
directory and have the syntax:
/dev/
in the same file. After changing this file, rebuild the modules and install the new
directory. See your kernel documentation.
and visible with
insmod
and change the definition of
) or
lsmod
.
ST_BUFFER_BLOCKS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents