SCSI Tape/Library Problem
Brett I. Holcomb
brettholcomb
Mon May 17 11:43:09 PDT 2004
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