Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.