2001-11-01 23:46:12

by Dan Podeanu

[permalink] [raw]
Subject: ide-scsi bug, or..?


Hello,

Upon trying to mount a CD-RW I get the following error:

ide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:01 (hdc), sector 64
isofs_read_super: bread failed, dev=16:01, iso_blknum=16, block=32
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,

Note that I use the hdd=ide-scsi parameter and that the CD is detected as
SCSI:

hdc: CD-W54E, ATAPI CD/DVD-ROM drive

SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TEAC Model: CD-W54E Rev: 1.1B
Type: CD-ROM ANSI SCSI revision: 02

Attached is my .config
Also note that the cdwriter worked fine with 2.4.8.

Please advise.


Attachments:
.config (22.04 kB)

2001-11-02 07:24:04

by Jens Axboe

[permalink] [raw]
Subject: Re: ide-scsi bug, or..?

On Fri, Nov 02 2001, Dan Podeanu wrote:
>
> Hello,
>
> Upon trying to mount a CD-RW I get the following error:
>
> ide-scsi: hdc: unsupported command in request queue (0)
> end_request: I/O error, dev 16:01 (hdc), sector 64
> isofs_read_super: bread failed, dev=16:01, iso_blknum=16, block=32
> mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
>
> Note that I use the hdd=ide-scsi parameter and that the CD is detected as
> SCSI:
>
> hdc: CD-W54E, ATAPI CD/DVD-ROM drive
>
> SCSI subsystem driver Revision: 1.00
> scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> Vendor: TEAC Model: CD-W54E Rev: 1.1B
> Type: CD-ROM ANSI SCSI revision: 02

You are trying to mount /dev/hdc and that is handled by ide-scsi. Mount
/dev/sr0 instead. For that you must also remember to configure SCSI
CD-ROM support, which you haven't done:

# CONFIG_BLK_DEV_SR is not set

--
Jens Axboe

2001-11-02 08:45:23

by Dan Podeanu

[permalink] [raw]
Subject: Re: ide-scsi bug, or..?

On Fri, 2 Nov 2001, Jens Axboe wrote:

> On Fri, Nov 02 2001, Dan Podeanu wrote:
> >
> > Hello,
> >
> > Upon trying to mount a CD-RW I get the following error:
> >
> > ide-scsi: hdc: unsupported command in request queue (0)
> > end_request: I/O error, dev 16:01 (hdc), sector 64
> > isofs_read_super: bread failed, dev=16:01, iso_blknum=16, block=32
> > mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
> >
> > Note that I use the hdd=ide-scsi parameter and that the CD is detected as
> > SCSI:
> >
> > hdc: CD-W54E, ATAPI CD/DVD-ROM drive
> >
> > SCSI subsystem driver Revision: 1.00
> > scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> > Vendor: TEAC Model: CD-W54E Rev: 1.1B
> > Type: CD-ROM ANSI SCSI revision: 02
>
> You are trying to mount /dev/hdc and that is handled by ide-scsi. Mount
> /dev/sr0 instead. For that you must also remember to configure SCSI
> CD-ROM support, which you haven't done:
>
> # CONFIG_BLK_DEV_SR is not set
>

That config was after several attempts of getting a functional kernel in
that aspect.

With CONFIG_BLK_DEV_SR=y, the same result. Also note that mount/cat/etc.
on hdc _should_ work, but it fails both there and on /dev/sg0, etc.

2001-11-02 08:51:43

by Jens Axboe

[permalink] [raw]
Subject: Re: ide-scsi bug, or..?

On Fri, Nov 02 2001, Dan Podeanu wrote:
> > You are trying to mount /dev/hdc and that is handled by ide-scsi. Mount
> > /dev/sr0 instead. For that you must also remember to configure SCSI
> > CD-ROM support, which you haven't done:
> >
> > # CONFIG_BLK_DEV_SR is not set
> >
>
> That config was after several attempts of getting a functional kernel in
> that aspect.

A failed attempt :-)

> With CONFIG_BLK_DEV_SR=y, the same result. Also note that mount/cat/etc.
> on hdc _should_ work, but it fails both there and on /dev/sg0, etc.

No it should not, not if you are passing control to ide-scsi. /dev/sg0
is the sg char device, you cannot mount that. Look at your messages:

ide-scsi: hdc: unsupported command in request queue (0)
end_request: I/O error, dev 16:01 (hdc), sector 64
isofs_read_super: bread failed, dev=16:01, iso_blknum=16, block=32
mount: wrong fs type, bad option, bad superblock on /dev/hdc1,

You are mounting major 16h (22, hdc), not /dev/scd0. This is a user
error, not a bug.

--
Jens Axboe

2001-11-02 11:04:54

by Sergey S. Kostyliov

[permalink] [raw]
Subject: Re: ide-scsi bug, or..?

> On Fri, 2 Nov 2001, Jens Axboe wrote:
> > On Fri, Nov 02 2001, Dan Podeanu wrote:
> > > Hello,
> > >
> > > Upon trying to mount a CD-RW I get the following error:
> > >
> > > ide-scsi: hdc: unsupported command in request queue (0)
> > > end_request: I/O error, dev 16:01 (hdc), sector 64
> > > isofs_read_super: bread failed, dev=16:01, iso_blknum=16, block=32
> > > mount: wrong fs type, bad option, bad superblock on /dev/hdc1,
> > >
> > > Note that I use the hdd=ide-scsi parameter and that the CD is detected
> > > as SCSI:
> > >
> > > hdc: CD-W54E, ATAPI CD/DVD-ROM drive
> > >
> > > SCSI subsystem driver Revision: 1.00
> > > scsi0 : SCSI host adapter emulation for IDE ATAPI devices
> > > Vendor: TEAC Model: CD-W54E Rev: 1.1B
> > > Type: CD-ROM ANSI SCSI revision: 02
> >
> > You are trying to mount /dev/hdc and that is handled by ide-scsi. Mount
> > /dev/sr0 instead. For that you must also remember to configure SCSI
> > CD-ROM support, which you haven't done:
> >
> > # CONFIG_BLK_DEV_SR is not set
>
> That config was after several attempts of getting a functional kernel in
> that aspect.
>
> With CONFIG_BLK_DEV_SR=y, the same result. Also note that mount/cat/etc.
> on hdc _should_ work, but it fails both there and on /dev/sg0, etc.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

try mount /dev/scd0 (not /dev/sg0) It works for me

Best regards,
Sergey S. Kostyliov