SCSI Tape/Library Problem

Brett I. Holcomb brettholcomb
Mon May 17 11:43:10 PDT 2004


Well, I found the answer. - Matthew and Lonnie were on the right track.  I've not worked with the devfs (device file system) before.  After much reading of many docs on devfs I did find a a /dev/st directory that contains the devices.  If I symlink /dev/tape0 to the proper /dev/st file it then it all works.

However, the docs reference modes 0,1,2, and 3 (rewind and norewind) for tapes.  What is the difference in the modes.

I learned more about devfs so it was a good afternoon!

On Tue, 14 Jan 2003 11:05:14 -0500
"Brett I. Holcomb" <brettholcomb at charter.net> wrote:

> I have a Cybernetics tape library (SCSI) with tape drive (also SCSI).  I'm attempting to test it with simple commands like tar -cvf /dev/tape0 /somedir.  This gives a list of files ,then "write 0 of 1024 blocks, error not recoverable"
> 
> If i use mt -f /dev/tape0 status I get "operation not permitted).
> 
> The tape device (see cat /proc/scsi/scsi below) is id 0 on host 1 while the library is ID 1 on host 1.  The /dev/sg1 is linked (by gentoo) to the /scsi device so I created a link /dev/tape0 to /dev/sg1.
> 
> lr-xr-xr-x    1 root     root           36 Jan 14 10:01 /dev/sg1 ->scsi/host1/bus0/target0/lun0/generic
> 
> Why does mt tell me the operation is not allowed?  The /scsi entries have the correct permissions.  I'm doing this as root - any ideas?
> This system is using the devfs file system. 
> 
> For  /dev/scsi/host1/bus0/target0/lun0
> crwxrwxrwx    1 brett    root      21,   1 Dec 31  1969 generic
> 
> For /dev/scsi/host1/bus0/target1/lun0
> crw-rw----    1 brett    root      21,   2 Dec 31  1969 generic
> 
> 
> Here's /proc/scsi/scsi
> 
> bash-2.05b$ cat /proc/scsi/scsi
> Attached devices: 
> Host: scsi0 Channel: 00 Id: 00 Lun: 00
>   Vendor: ADAPTEC  Model: RAID-5           Rev: 370F
>   Type:   Direct-Access                    ANSI SCSI revision: 02
> Host: scsi1 Channel: 00 Id: 00 Lun: 00
>   Vendor: EXABYTE  Model: Mammoth2         Rev: v04b
>   Type:   Sequential-Access                ANSI SCSI revision: 02
> Host: scsi1 Channel: 00 Id: 01 Lun: 00
>   Vendor: SPECTRA  Model: 215              Rev: 1008
>   Type:   Medium Changer                   ANSI SCSI revision: 02
> Host: scsi1 Channel: 00 Id: 04 Lun: 00
>   Vendor: MATSHITA Model: DVD-RAM LF-D200  Rev: A120
>   Type:   CD-ROM                           ANSI SCSI revision: 04
> 


More information about the Linux-users mailing list