On the server, which I’m running for the department originally had
this SCSI setup (couple of discs on the two onboard channels and two
tapes in an external housing on an additional Adaptec):
Output of cdrecord (unused SCSI ids deleted):
scsibus0:
0,0,0 0) 'FUJITSU ' 'MAJ3091MC ' '5207' Disk
0,1,0 1) 'FUJITSU ' 'MAH3091MC ' '5207' Disk
0,2,0 2) 'FUJITSU ' 'MAE3091LC ' '5210' Disk
0,3,0 3) 'FUJITSU ' 'MAG3091LC ' '5210' Disk
0,4,0 4) 'SEAGATE ' 'ST39173LC ' '6218' Disk
0,5,0 5) 'FUJITSU ' 'MAG3182LC ' '3707' Disk
0,8,0
'SDR ' 'GEM318 ' '0 ' Processor
scsibus1:
1,0,0 100) 'SEAGATE ' 'ST336706LC ' '9305' Disk
1,1,0 101) 'SEAGATE ' 'ST336706LC ' '9305' Disk
1,2,0 102) 'SEAGATE ' 'ST39173LC ' '5990' Disk
1,3,0 103) 'FUJITSU ' 'MAN3735MC ' '5207' Disk
1,4,0 104) 'SEAGATE ' 'ST318404LC ' '3253' Disk
1,8,0 108) 'SDR ' 'GEM318 ' '0 ' Processor
scsibus2:
2,2,0 202) 'EXABYTE ' 'EXB-85058HE-0000' '0102' Removable Tape
2,3,0 203) 'HP ' 'C1537A ' 'L810' Removable Tape
Then sometime later an additional CDROM and an older Plextor 12x CD
burner became available. I also put them in an external housing onto
the same bus as the two tapes with the id’s 4 and 5. All of this done
online, with the help of scsiadd without a single
reboot. Well I wouldn’t do this, when a backup is running on the
tapes. But since the bus is quiet otherwise, this can be done
online. Additionally I loaded ide-scsi for the internal
CDROM drive. Anyway, all new devices showed up nicely in the output of
cat /proc/scsi/scsi. However the output of cdrecord
-scanbus would only list the Plextor on id 4 and not the two
CDROMs, which should appears after the Plextor. Once I saw the error
message of the command cdrecord -reset dev=2,5,0, it
dawned on me. The error message basically said, that
cdrecord couldn’t open a /dev/sg* file. So
looking in /dev I only found 16 /dev/sg*
devices. After creating an additional three device nodes, I saw, what
I wanted to see:
2,4,0 204) 'PLEXTOR ' 'CD-R PX-W1210S' '1.05' Removable CD-ROM
2,5,0 205) 'TOSHIBA ' 'CD-ROM XM-6201TA' '1400' Removable CD-ROM
scsibus3:
3,0,0 300) 'MITSUMI ' 'CD-ROM FX4830T!B' 'R02E' Removable CD-ROM
On a related note, a colleague also had problems with
cdrecord on a laptop, which wouldn’t list the internal
DVD/CD-RW drive under SuSE 9.1. Under Knoppix 3.4 the drive turned up
nicely under kernel 2.6, but Knoppix is using the
ide-scsi SCSI emulation. On another of my servers, I also
wouldn’t see the internal IDE CDROM with
cdrecord. Unfortunately this could have been easily
fixed by RTFM. Simply use the right arguments to
cdrecord and you would have seen something like this:
Output of cdrecord -scanbus dev=ATAPI:
Cdrecord-Clone 2.01a28 (i686-pc-linux-gnu)
Copyright (C) 1995-2004 Jörg Schilling
scsidev: 'ATAPI:'
devname: 'ATAPI'
scsibus: -1 target: -1 lun: -1
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.8'.
scsibus0:
0,0,0 0) 'HL-DT-ST' 'DVD-ROM GDR8162B' '0017' Removable CD-ROM
0,1,0 1) '_NEC ' 'DVD+RW ND-1100A ' '1.80' Removable CD-ROM