Hi all,
I have just taken out my old Nakamichi MBR-7 7-CD changer from
longtime storage and am trying to use it under RH 7.2
(kernel 2.4 18).
My problem is that while the kernel recognizes the device,
I cannot mount any CD from there, it always tells me there is
no medium, even though I have a CD in the drive.
A second problem is that I also have a Minolta Film Scanner
hanging off the same SCSI bus which does not seem to be detected
at all. It is turned on.
When I try mounting eg platter 2 (/dev/scd1), it also does not
engage the disk-changing mechanism but immediately reports
no medium.
Any help is appreciated.
Here is a detailed description of my setup:
Most SCSI support (except for things like the sg driver)
are compiled in (see kernel-config excerpts below).
Here are the currently loaded modules:
[root@noisy root]# lsmod
Module Size Used by Tainted: PF
sg 29252 0 (unused)
cmpci 29588 0 (autoclean)
soundcore 4004 4 (autoclean) [cmpci]
mga 99536 1
agpgart 30880 3
binfmt_misc 6020 1
vmnet 19360 6
vmmon 18580 0 (unused)
i2c-viapro 3816 0 (unused)
i2c-dev 3712 0 (unused)
w83781d 17056 0 (unused)
i2c-proc 6240 0 [w83781d]
smbfs 34048 1 (autoclean)
loop 40428 6 (autoclean)
ide-scsi 7968 0
nls_iso8859-1 2816 1 (autoclean)
nls_cp437 4320 1 (autoclean)
vfat 9916 1 (autoclean)
fat 31672 0 (autoclean) [vfat]
My controller is an advansys (not sure which model):
[mathias@noisy linux]$ cat /proc/scsi/advansys/*
AdvanSys SCSI 3.3G: PCI Ultra: IO 0xD400-0xD40F, IRQ 0xB
Device Information for AdvanSys SCSI Host 0:
Target IDs Detected: 3, 7, (7=Host Adapter)
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 01
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 02
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 03
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 04
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 05
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 06
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
EEPROM Settings for AdvanSys SCSI Host 0:
Serial Number: AE54C717D542
Host SCSI ID: 7, Host Queue Size: 16, Device Queue Size: 8
cntl 0x7f00, no_scam 0x0
Target ID: 0 1 2 3 4 5 6 7
Disconnects: Y Y Y Y Y Y Y Y
Command Queuing: N N N N N N N N
Start Motor: Y Y Y Y Y Y Y Y
Synchronous Transfer: Y Y Y Y Y Y Y Y
Linux Driver Configuration and Information for AdvanSys SCSI Host 0:
host_busy 0, last_reset 0, max_id 8, max_lun 8, max_channel 0
unique_id 0, can_queue 16, this_id 7, sg_tablesize 50, cmd_per_lun 0
unchecked_isa_dma 0, use_clustering 1, loaded_as_module 1
flags 0x8, last_reset 0x0, jiffies 0x3e1354, asc_n_io_port 0x10
io_port 0xd400, n_io_port 0x10
queue_depth: 3:4
Linux Driver Statistics for AdvanSys SCSI Host 0:
queuecommand 31015, reset 0, biosparam 0, interrupt 61998
callback 31015, done 31015, build_error 0, build_noreq 0, build_nosg
0
exe_noerror 31015, exe_busy 0, exe_error 0, exe_unknown 0
cont_cnt 31015, cont_xfer 10085.0 kb avg_xfer 0.3 kb
Active and Waiting Request Queues (Time Unit: 100 HZ):
target 3
active: cnt [cur 0, max 1, tot 31009], time [min 0, max 1, avg 0.8]
waiting: cnt [cur 0, max 0, tot 0], time [min 0, max 0, avg 0.0]
Asc Library Configuration and Statistics for AdvanSys SCSI Host 0:
chip_version 10, lib_version 0x118, lib_serial_no 123, mcode_date
0x12c3
mcode_version 0x50d, err_code 0
Total Command Pending: 0
Command Queuing: 3:N
Command Queue Pending: 3:0
Command Queue Limit: 3:4
Command Queue Full: 3:N
Synchronous Transfer: 3:N
I also have a SONY IDE CD-RW on this machine, which is seen as SCSI
device also:
[mathias@noisy linux]$ cat /proc/scsi/ide-scsi/*
SCSI host adapter emulation for IDE ATAPI devices
Some info on the CDROM devices:
[mathias@noisy cdrom]$ ls -1 /proc/sys/dev/cdrom/*
/proc/sys/dev/cdrom/autoclose
/proc/sys/dev/cdrom/autoeject
/proc/sys/dev/cdrom/check_media
/proc/sys/dev/cdrom/debug
/proc/sys/dev/cdrom/info
/proc/sys/dev/cdrom/lock
[mathias@noisy cdrom]$ cat /proc/sys/dev/cdrom/*
1
0
0
0
CD-ROM information, Id: cdrom.c 3.12 2000/10/18
drive name: sr8 sr7 sr6 sr5 sr4 sr3
sr2 sr1 sr0
drive speed: 40 40 1 1 1 1
1 1 1
drive # of slots: 1 1 1 1 1 1
1 1 1
Can close tray: 1 1 1 1 1 1
1 1 1
Can open tray: 1 1 1 1 1 1
1 1 1
Can lock tray: 1 1 1 1 1 1
1 1 1
Can change speed: 1 1 0 0 0 0
0 0 0
Can select disk: 0 0 0 0 0 0
0 0 0
Can read multisession: 1 1 1 1 1 1
1 1 1
Can read MCN: 1 1 1 1 1 1
1 1 1
Reports media changed: 1 1 1 1 1 1
1 1 1
Can play audio: 1 1 1 1 1 1
1 1 1
Can write CD-R: 1 1 0 0 0 0
0 0 0
Can write CD-RW: 1 1 0 0 0 0
0 0 0
Can read DVD: 0 0 0 0 0 0
0 0 0
Can write DVD-R: 0 0 0 0 0 0
0 0 0
Can write DVD-RAM: 0 0 0 0 0 0
0 0 0
1
[mathias@noisy linux]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 01
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 02
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 03
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 04
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 05
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 03 Lun: 06
Vendor: NRC Model: MBR-7 Rev: 110
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: SONY Model: CD-RW CRX1611 Rev: TYS7
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 01
Vendor: SONY Model: CD-RW CRX1611 Rev: TYS7
Type: CD-ROM ANSI SCSI revision: 02
here is what happens ehwn I try executing a
# mount /dev/scd0 /mnt
[root@noisy root]# mount /dev/scd0 /mnt
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: No medium found
And here is the SCSI logging output captured with
# echo "scsi log all" >/proc/scsi/scsi
Apr 5 07:19:35 noisy kernel: scsi logging level set to 0xffffffff
Apr 5 07:19:38 noisy kernel: Open returning 1
Apr 5 07:19:38 noisy kernel: scsi_do_req (host = 0, channel = 0
target = 3, buffer =00000000, bufflen = 0, done = c01d7070, timeout
= 3000, retries = 3)
Apr 5 07:19:38 noisy kernel: command : 00 00 00 00 00 00
Apr 5 07:19:38 noisy kernel: Activating command for device 3 (1)
Apr 5 07:19:38 noisy kernel: Leaving scsi_init_cmd_from_req()
Apr 5 07:19:38 noisy kernel: Adding timer for command c184ce00 at
3000 (c01db930)
Apr 5 07:19:38 noisy kernel: scsi_dispatch_cmnd (host = 0, channel =
0, target = 3, command = c184ce58, buffer = 00000000,
Apr 5 07:19:38 noisy kernel: bufflen = 0, done = c01d7070)
Apr 5 07:19:38 noisy kernel: queuecommand : routine at c01e2730
Apr 5 07:19:38 noisy kernel: leaving scsi_dispatch_cmnd()
Apr 5 07:19:38 noisy kernel: Leaving scsi_do_req()
Apr 5 07:19:38 noisy kernel: Clearing timer for command c184ce00 1
Apr 5 07:19:38 noisy kernel: Command finished 1 0 0x8000002
Apr 5 07:19:38 noisy kernel: Notifying upper driver of completion for
device 3 8000002
Apr 5 07:19:38 noisy kernel: Deactivating command for device 3
(active=0, failed=0)
Apr 5 07:19:38 noisy kernel: Open returning 1
Apr 5 07:19:38 noisy kernel: scsi_do_req (host = 0, channel = 0
target = 3, buffer =00000000, bufflen = 0, done = c01d7070, timeout
= 3000, retries = 3)
Apr 5 07:19:38 noisy kernel: command : 00 00 00 00 00 00
Apr 5 07:19:38 noisy kernel: Activating command for device 3 (1)
Apr 5 07:19:38 noisy kernel: Leaving scsi_init_cmd_from_req()
Apr 5
...
read more »