LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-09-2005, 03:30 PM   #1
avantman42
Member
 
Registered: Jul 2003
Location: Stoke on Trent, UK
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
How to check a Python tape drive on Debian?


I was recently given a Dell PowerEdge 2400 server with a Python tape drive. I've now got Debian 3.0 (Woody) happily running on it, but I can't work out whether or not the tape drive works.

The output of dmesg includes the following:

Code:
scsi : 1 host.
  Vendor: SEAGATE   Model: ST34572W          Rev: 0784
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 0, lun 0
(scsi0:0:0:2) Synchronous at 40.0 Mbyte/sec, offset 8.
  Vendor: NEC       Model: CD-ROM DRIVE:464  Rev: 1.05
  Type:   CD-ROM                             ANSI SCSI revision: 02
Detected scsi CD-ROM sr0 at scsi0, channel 0, id 5, lun 0
(scsi0:0:5:1) Synchronous at 4.0 Mbyte/sec, offset 15.
  Vendor: ARCHIVE   Model: Python 04106-XXX  Rev: 715G
  Type:   Sequential-Access                  ANSI SCSI revision: 02
(scsi0:0:6:1) Synchronous at 10.0 Mbyte/sec, offset 15.
scsi : detected 1 SCSI cdrom 1 SCSI disk total.
The server was sat in a cupboard gathering dust for some time before I got it, so it's entirely possible that the tape drive doesn't work, but I'm hoping it does

I've little experience with tape drives, and absolutely none with tape drives on Linux, so if someone could give me some pointers to work out whether or not the drive works, I'd be very grateful.

Russ
 
Old 03-09-2005, 08:14 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
I will assume the device ID for the tape drive is /dev/st0, /dev/nst0 and the tape utility mt is already installed. Using /dev/st0 the tape will rewind after a command completes. Using /dev/nst0 the tape will not be rewound after a command completes.

for drive status:
mt -f /dev/st0 status

A simple check to write to tape:
tar -cvf /dev/st0 some_file

To read the file from tape.
change to another directory
tar -xvf /dev/st0

The file will be read from tape and created on the other directory.
 
Old 03-10-2005, 07:09 AM   #3
avantman42
Member
 
Registered: Jul 2003
Location: Stoke on Trent, UK
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks, that's just the sort of information I was looking for. I've done what you suggested, and I think my tape drive isn't working. Here's the output of some commands:

Code:
junction:~# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 512 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
I created a small text file named foobar, then tried to write it to the tape:

Code:
junction:~# tar -cvf /dev/st0 foobar
foobar
tar: /dev/st0: Warning: Cannot close: Input/output error
I then changed to a new directory, and tried to read the file back:

Code:
junction:~/test# tar -xvf /dev/st0
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
Does this mean that my tape drive doesn't work? Or is it worth me trying something else? The tapes are new, it's just the drive that is old.

Russ
 
Old 03-10-2005, 09:16 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
I haven't used my DLT tape drive in awhile as so decided to check it out. I'm having the same problems as you. I usally only read data from this drive and that seems to work ok.
 
Old 03-14-2005, 05:00 PM   #5
avantman42
Member
 
Registered: Jul 2003
Location: Stoke on Trent, UK
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
I've got my tape drive working now. The fix? I borrowed a cleaning cartridge from work and ran that through it. Now it works fine

Thanks for your help, and I hope the same fix works for you

Russ
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Floppy drive interfaced tape drive in Slackware isolationist Linux - Hardware 6 02-13-2006 05:54 AM
tape drive tincat2 Linux - Hardware 1 02-13-2006 05:50 AM
about tape drive and more mchitrakar Linux - General 4 06-29-2004 01:49 PM
Boot disk; check. CD in drive; check. Doesn't work; check. Hal DamnSmallLinux 7 02-04-2004 02:10 AM
check if python headers are installed true_atlantis Linux - Newbie 3 01-28-2004 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration