LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 03-15-2005, 08:06 PM   #1
bmquintas
LQ Newbie
 
Registered: Nov 2003
Distribution: Mdk 9.2
Posts: 2

Rep: Reputation: 0
Angry Tapeware+FCIII+Dat 24i


Hi, have been trying to get the tape drive to function with Tapeware, but no success.

Tape drive is recognized:
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST336607LW Rev: 0007
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST336607LW Rev: 0007
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: HP Model: C1537A Rev: L111
Type: Sequential-Access ANSI SCSI revision: 02

And is accessible:
mt status (with no tape)
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN

mt status (with tape)
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN

This is my lsmod:
ide_scsi 19273 0
st 39133 0
aic79xx 196829 3
sd_mod 20545 5
scsi_mod 115777 4 ide_scsi,st,aic79xx,sd_mod

I can get it to work doing the following:
rmmod st
modprobe sg

Then my lsmod looks like this:

Module Size Used by
ide_scsi 19273 0
st 39133 0
aic79xx 196829 3
sd_mod 20545 5
scsi_mod 115777 4 ide_scsi,st,aic79xx,sd_mod

Then.. stopping the Tapeware Service
twunxsvc -x
Restarting....
twunxsvc -s

And then everything is ok!
What should i do to make this permanent?

(sorry for the long post, just trying to provide as much info as i can)
 
Old 04-11-2005, 09:19 AM   #2
t3gah
Member
 
Registered: Dec 2004
Distribution: SuSE, RedHat, ubuntu, Debian
Posts: 734

Rep: Reputation: 30
Re: Tapeware+FCIII+Dat 24i

Quote:
Originally posted by bmquintas
Hi, have been trying to get the tape drive to function with Tapeware, but no success.

Tape drive is recognized:
Code:
cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST336607LW       Rev: 0007
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 01 Lun: 00
  Vendor: SEAGATE  Model: ST336607LW       Rev: 0007
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 03 Lun: 00
  Vendor: HP       Model: C1537A           Rev: L111
  Type:   Sequential-Access                ANSI SCSI revision: 02
And is accessible:
mt status (with no tape)
Code:
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
 DR_OPEN IM_REP_EN
mt status (with tape)
Code:
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x25 (DDS-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
This is my lsmod:
Code:
ide_scsi               19273  0
st                     39133  0
aic79xx               196829  3
sd_mod                 20545  5
scsi_mod              115777  4 ide_scsi,st,aic79xx,sd_mod
I can get it to work doing the following:
Code:
rmmod st
modprobe sg
Then my lsmod looks like this:
Code:
Module                  Size  Used by
ide_scsi               19273  0
st                     39133  0
aic79xx               196829  3
sd_mod                 20545  5
scsi_mod              115777  4 ide_scsi,st,aic79xx,sd_mod
Then.. stopping the Tapeware Service
Code:
twunxsvc -x
Restarting....
twunxsvc -s
And then everything is ok!
What should i do to make this permanent?

(sorry for the long post, just trying to provide as much info as i can)
What do you mean by "permanent"?

You say it works at the end there just before your question.... (And then everything is ok!)
 
Old 04-11-2005, 10:27 AM   #3
bmquintas
LQ Newbie
 
Registered: Nov 2003
Distribution: Mdk 9.2
Posts: 2

Original Poster
Rep: Reputation: 0
Re: Re: Tapeware+FCIII+Dat 24i

Quote:
Originally posted by t3gah
What do you mean by "permanent"?

You say it works at the end there just before your question.... (And then everything is ok!)
I want it to work without having to do at each reboot:

rmmod st
modprobe sg
twunxsvc -x
twunxsvc -s
 
Old 05-04-2005, 02:38 PM   #4
linuxles
Member
 
Registered: Mar 2004
Location: Austin, TX
Distribution: CentOS Fedora RHEL SLES Knoppix
Posts: 78

Rep: Reputation: 15
Typically adding the following entry to /etc/modprobe.conf should do the trick:

alias char-major-21 sg


If you are running a newer 2.6.x Kernel, UDEV may be the culprit. Not sure if
Mandrake is using UDEV & Hotplug, but the problem is with the way that UDEV
is defining (or isn't defining) the devices in the newer Kernels.

Edit the /etc/hotplug/scsi.agent file, and change the following line:

1) TYPE=tape ; MODULE=st ;;

to

1) TYPE=tape ; MODULE=sg ;;

The next time you reboot, it should work properly.

Note: You shouldn't have to unload the st module for the sg module to work.
Having them both loaded should have no affect on the other. It just gives you
two different ways of accessing the device.

/Les
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tapeware problem in FreeBSD 5.3 jademan83 *BSD 1 06-07-2005 11:55 PM
Tapeware isn't detecting drive imemyself Linux - Software 0 11-21-2004 09:42 PM
Dat Drive unixpirate Linux - Hardware 0 08-20-2003 01:11 PM
DAT with tar/mt dguy Linux - Newbie 11 07-23-2003 01:23 PM
Dat Drive wylie1001 Linux - Software 2 07-08-2002 04:34 PM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration