HP Q1581A HP DDS/DAT drives UNIX, Linux and OpenVMS configuration guide (DW049 - Page 30

Using the seek and tell features of mt, directory. See your kernel documentation.

Page 30 highlights

available as either loadable modules (for example, usable with insmod and visible with lsmod) or 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 driver module has been added, a list of tape device files will be created automatically. They reside in the /dev/ directory and have the syntax: /dev/stp or dev/nstp where: p Instance number of the device file (0 if only one drive is connected to the system) n Indicates this is a no-rewind driver To enable large transfers under Linux (>64 KB per write), edit the file /usr/src/linux/drivers/scsi/st_options.h and change the definition of ST_BUFFER_BLOCKS. If you want requests to space to end of data (EOD) to be faster, you should also enable ST_FAST_MTEOM in the same file. After changing this file, rebuild the modules and install the new binary. At the very least, this requires: make modules make modules_install from the /usr/src/linux directory. See your kernel documentation. 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 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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

Linux (kernel 2.6.x) servers and workstations
30
available as either loadable modules (for example, usable with
insmod
and visible with
lsmod
) or
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
driver module has been added, a list of tape device files will be created automatically.
They reside in the
/dev/
directory and have the syntax:
/dev/stp or dev/nstp
where:
To enable large transfers under Linux (>64 KB per write), edit the file
/usr/src/linux/drivers/scsi/st_options.h
and change the definition of
ST_BUFFER_BLOCKS
.
If you want requests to space to end of data (EOD) to be faster, you should also enable
ST_FAST_MTEOM
in the same file. After changing this file, rebuild the modules and install the new
binary. At the very least, this requires:
make modules
make modules_install
from the
/usr/src/linux
directory. See your kernel documentation.
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
p
Instance number of the device file (0 if only one drive is connected to the system)
n
Indicates this is a no-rewind driver