Configuring Linux to Support a Tape Drive

by Grace Nelson.

Share
|
Homepage | Submit your article | Contact | TOS
More articles on storage devices  

You are here: Categories » Computers and technology » Storage devices

The ease of configuring Linux to support a tape drive depends on the Linux distribution and version, the type of drive, the interface it uses, and whether the drive is present when Linux is installed or is added later. If you use a modern, mainstream ATAPI or SCSI drive with a recent Linux distribution, installation will likely be straightforward. If you use an older distribution, an obsolescent or proprietary drive, or a drive that uses an interface other than ATAPI or SCSI, you may encounter significant problems getting the drive to work, if indeed you can get it working at all. You can use the following tape drives with Linux:

Travan, DDS, and AIT tape drives

Recent Linux releases natively support a wide variety of Travan, DDS, and AIT tape drives with ATAPI or SCSI interfaces. If you install and configure the drive and interface properly before you install Linux, the Linux installer will likely recognize the drive and automatically configure Linux to use it. In fact, Linux often does a better job than Windows 2000/XP of recognizing and configuring Travan, DDS, and AIT tape drives.

If you install a tape drive in a system with Linux already installed, log in as root and run the hardware detection utility (e.g., Kudzu in Redhat or Mandrake and Discover in Debian). If the drive is supported, the utility detects the drive, installs drivers, and automatically configures Linux to use the drive. If the drive is not recognized, check the web sites for the drive and your Linux distro to determine how to configure the drive manually.

USB and FireWire (IEEE-1394) drives require a 2.4 or higher Linux kernel.

OnStream ADR tape drives

Linux support for OnStream tape drives differs according to the command set used by the drive. All second-generation (ADR2) drives and first-generation (ADR) ADR30, ADR50, and ADR50e SCSI drives use the standard SCSI command set, so the standard st (SCSI tape) driver suffices to interface the drive to the backup application (the ATAPI ADR2.60IDE drive requires both the ide-scsi and st drivers).

Most first-generation OnStream ADR drives—the DI30, DI30 FAST, DP30, USB30, SC30, SC30e, SC50, SC50e, and FW30—use a proprietary command set that optimizes those drives for storing streaming video. That command set differs significantly from the standard ATAPI and SCSI command sets, which means the standard st driver does not support these drives. Full (or even partial) Linux support requires a kernel rebuild or various workarounds. Fortunately, a modified version of the st driver, called the osst driver, is available. The osst driver interfaces standard backup applications to the proprietary command set of older ADR drives.

Although the ide-tape driver supports the OnStream DI30 drive, we strongly recommend using the ide-scsi and osst drivers instead. The ide-tape driver writes tapes in LIN3 logical format, whereas osst writes tapes in LIN4 logical format. That means the osst driver reads tapes written with ide-tape, but the ide-tape driver cannot read tapes written with osst. Also, various problems have been reported using ide-tape with DI30 drives, ranging from inability to restore files to complete failure to recognize the drive.

FDC-based drives

Travan TR-3 and earlier QIC drives use the floppy drive controller (FDC) interface, either directly or in some cases via a parallel port connection. These drives are now so old that most have been retired, but if for some reason you must use an FDC-based tape drive on a Linux system, you may be able to get it running using ftape. The ftape driver supports QIC-40, QIC-80, QIC-3010 (TR-2), QIC-3020 (TR-3), Iomega Ditto 2GB, and Ditto Max drives. For more information about ftape, see http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Ftape-HOWTO.html.

We do not recommend using ftape in PCI-based systems, which is to say in any modern system at all. The ftape driver has known incompatibilities with some PCI motherboards. For details, view README.PCI in the ftape distribution.

Once Linux recognizes a tape drive, you can use bundled Linux applications such as tar, mt, mtx, dump, restore, and cpio to write and read tapes in the drive. You can also use full-featured backup applications such as BRU (http://www.tolisgroup.com/), Amanda (http://www.amanda.org/), and Arkeia (http://www.arkeia.com/) to implement a formal backup program.

Here are some useful sites that cover various aspects of using tape drives with Linux:

http://www.linuxtapecert.org
http://www.tldp.org/LDP/sag/index.html
Leave a comment or ask a question
Total comments: 0

Storage devices Disclaimer

  • The e-articles directory is not responsible for any and all copyright infringements by writers and authors. If you suspect the information contained by this page for any copyright infringements, please contact us to investigate the issue
CD Erasable - Optical media sing a siren's song with their high storage densities. They captivate engineers with the dream of building a better hard disk, a device that can read and write like a hard disk but (more...)
DVD Specifications and Standards - The initials stand for Digital Versatile Disc, the second generation of photomechanical data storage. Using two-sided technology developed by Toshiba, each DVD disc can store 4.3 gigabytes of in (more...)
CD Care - Two aspects of the design of the Compact Disc make the media resistant to abuse. Because the laser that reads the disc shines through the polycarbonate plastic base before reaching the data, i (more...)
Tape Technologies - Tape systems are often described by how they work, that is, the way they record data onto the tape. For example, although the term "streaming tape" that's appended to many tape drives may conju (more...)
AV Drives - A new class of hard disks has been developed that has direct application to multimedia and, in particular, authoring. Called AV drives because their primary application is in the storag (more...)
Hard Disks Low Level Formatting - A new hard disk is like a newborn babe: Although some abilities are built-in, its mind and memory are essentially blank. It has to learn about the world before it can do what it was designed for (more...)
History of floppy disks - The concept of the floppy disk arose long before the PC was conceived. When the floppy was first conceived, personal computers didn't exist and no one appeared to have any need for the medium as (more...)
Iomega ZipDisk - First on the market was the ZipDisk, developed by Iomega Corporation. Although initially a proprietary system, Iomega has licensed Zip to other companies. Both drives and media are now available (more...)
CD DA systems - Developed jointly by Philips and Sony Corporation, the CD-Digital Audio system was first introduced in the United State in 1983. The standard CD-DA disc holds up to about 70 minutes of stereo mu (more...)
CD ROM - As its name implies, CD-Read Only Memory is fundamentally an adaptation of the Compact Disc to storing digital information-rock and roll comes to computer storage. Contrary to the implications o (more...)

 
free content
    Copyright © 2006 - 2012 e-articles.info.
The texts, articles and tutorials in the directory are property of their respective owners and authors.