2000-11-23 23:35:19

by Roland Orre

[permalink] [raw]
Subject: Can't mount SCSI CDROM in 2.4.*

Since I started running the 2.4.0-test kernels a couple of months ago
I'm not able to use my scsi cdrom and cdwriter.

Today I installed 2.4.0-test11, still the same problem.

bayes:/dev# ls -l /dev/scd0
brw-rw---- 1 root cdrom 11, 0 Oct 21 04:53 /dev/scd0

bayes:/dev# mount -t iso9660 /dev/scd0 /cdrom
mount: /dev/scd0 has wrong major or minor number

bayes:/dev# mount -V
mount: mount-2.10o

Each time I want to access the cdrom or cdwriter I have to reboot w 2.2.17
where it works fine.

I've even tried with creating a generic block device
bayes:/dev# ls -l /dev/scg0
brw-r--r-- 1 root root 21, 0 Nov 23 23:41 /dev/scg0

byes:/dev# mount -t iso9660 /dev/scg0 /cdrom
mount: /dev/scg0 has wrong major or minor number

Apart from this the 2.4.0-test kernels have been running very stable
for me. My systems are dual PII on ASUS PL97-DS and P2B-DS

According to Documentation/devices.txt nothing has changed according
major numbers for these devices from 2.2 to 2.4.

I'm grateful for any hint.

Best regards
Roland Orre


2000-11-24 16:41:30

by Roland Orre

[permalink] [raw]
Subject: Re: Can't mount SCSI CDROM in 2.4.*

Douglas Gilbert <[email protected]> Fri Nov 24 wrote:
> Roland,
> What does 'cat /proc/scsi/scsi' output on your machine?
> Which SCSI adapter do you have?
> Doug Gilbert

My scsi adapter is adaptec 7880 on one machine and 7890 on
the other, i.e. driver is aic7xxx

This is what 'cat /proc/scsi/scsi' says when I've booted with 2.4.0-test11
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: DNES-318350W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: PIONEER Model: CD-ROM DR-U06S Rev: 1.05
Type: CD-ROM ANSI SCSI revision: 02

And when I give the mount command:
bayes:~# mount -t iso9660 /dev/sr0 /cdrom
mount: /dev/sr0 has wrong major or minor number

And this is what 'cat /proc/scsi/scsi' says when I've booted with 2.2.17
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: DNES-318350W Rev: SA30
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 04 Lun: 00
Vendor: PIONEER Model: CD-ROM DR-U06S Rev: 1.05
Type: CD-ROM ANSI SCSI revision: 02

And when I give the mount command then:
bayes:~# mount -t iso9660 /dev/sr0 /cdrom
mount: block device /dev/sr0 is write-protected, mounting read-only
I.e. the mounting works fine.

And this is the other machine, at the moment running 2.4.0-test7
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: DRVS18V Rev: 00E5
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: PIONEER Model: DVD-ROM DVD-303 Rev: 1.10
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 05 Lun: 00
Vendor: YAMAHA Model: CRW6416S Rev: 1.0b
Type: CD-ROM ANSI SCSI revision: 02

bayes:/home/orre# mount -t iso9660 /dev/sr0 /cdrom
mount: /dev/sr0 has wrong major or minor number

As I said in last mail, major number= 11 and minor = 0, which is
in accordance with the documentation for both 2.2. and 2.4.

So what can this be? Can somebody that are running scsi cdrom/cdwriter
under 2.4.0-test* kernel send me a .config file so I can see if there
is any significant difference, if you don't have any other idea of
what it can be?

Best regards
Roland Orre

2000-11-25 03:00:39

by Roland Orre

[permalink] [raw]
Subject: Re: Can't mount SCSI CDROM in 2.4.*

Doug Gilbert wrote:
> Roland,
> Assuming "sr" is a module and 'lsmod' doesn't
> show it as loaded then what does 'modprove sr_mod'
> report?

Thanks Doug, sometimes I'm totally blind it seems like.
Of some reason (probably mine fault...) it seems as the flag
CONFIG_BLK_DEV_SR=y
which I've had enabled as long as I can remember of some reason was
missed when I transferred the .config file from 2.2.17 to 2.4.0

Best regards
Roland