k3b incorrectly identifies scsi r/w drive as read-only -- Mode sense fails

Oliver Iberien oliver-forward at charter.net
Sat Mar 25 21:38:46 UTC 2006


On Saturday 25 March 2006 11:46, Andrea Venturoli wrote:
> Duane Whitty wrote:
>
> Please forgive me for stepping in, but I'm having the same problem,
> asked sometime ago and did not get any answer.
>
> My Yamaha burner is still detected as a read-only device.
>
>   bye & Thanks
>         av.

There is a thread here:

http://lists.freebsd.org/mailman/htdig/freebsd-ports/2005-March/021958.html

of someone with a scsi cd-r/w that was giving the same errors. The thread goes 
on to post some kind of fix to a flac decoder:

http://lists.freebsd.org/mailman/htdig/freebsd-ports/2005-March/021969.html

...but I don't understand how this is related or how it is to be implemented.

I have found a number of postings of similar problems with k3b and scsi drives 
dating from after mid-2004, which is when it started happening to me, but 
none gives a fix.

http://linux.derkeiler.com/Mailing-Lists/SuSE/2005-03/1489.html
http://72.14.203.104/search?q=cache:wOJpu0m4BcwJ:k3b.plainblack.com/feedback%3Ffunc%3Dview%26wid%3D29%26forumId%3D1000%26forumOp%3DviewThread%26forumPostId%3D100898+k3b+%22mode+sense%22&hl=en&gl=us&ct=clnk&cd=1&ie=UTF-8
http://www.linuxhardware.de/deutsch/dcoulh/news_38206.html
http://linuxfromscratch.org/pipermail/blfs-support/2004-June/050551.html
http://72.14.203.104/search?q=cache:Dh1vQLiRy40J:bbs.cse.yzu.edu.tw/show.php%3Ftype%3Dpost%26board%3Dbsd-ports%26pageno%3D15+k3b+%22mode+sense%22&hl=en&gl=us&ct=clnk&cd=6&ie=UTF-8
http://lurker.oltrelinux.com/message/20040211.213612.0308c619.en.html

Oliver


> k3b on FreeBSD 6.0 incorrectly identifies my SCSI CD-R/W as read-only. It
> reports "mode sense" failure, which, Plextor tells me, can be a sign of a
> problem with the drive or the media. I've appended this part of the output
> at the bottom.
>
> However, cdrecord is able correctly to query the drive. Here is that
> output:
>
> Cdrecord-Clone 2.01 (i386-unknown-freebsd6.0) Copyright (C) 1995-2004 Jörg
> Schilling
> TOC Type: 0 = CD-DA
> scsidev: '0,0'
> scsibus: 0 target: 0 lun: 0
> Using libscg version 'schily-0.8'.
> SCSI buffer size: 64512
> atapi: 0
> Device type    : Removable CD-ROM
> Version        : 2
> Response Format: 2
> Capabilities   : SYNC
> Vendor_info    : 'PLEXTOR '
> Identifikation : 'CD-R   PX-W4012S'
> Revision       : '1.01'
> Device seems to be: Generic mmc CD-RW.
> Current: 0x0009
> Profile: 0x0008
> Profile: 0x0009 (current)
> Profile: 0x000A
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE VARIREC FORCESPEED SINGLESESSION
> HIDECDR
> Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
> Drive buf size : 2394336 = 2338 KB
> Drive DMA Speed: 13933 kB/s 79x CD 10x DVD
> FIFO size      : 4194304 = 4096 KB
>
> This looks as if the information is there for the asking, but I am no SCSI
> expert. It went on to burn without a hitch.
>
> k3b worked with this drive when I used SuSE 9.1, and when I experimentally
> put in the old drive that had SuSE on it with its old version of k3b, it
> identified the drive without problems. Any clues leading towards getting
> k3b working would be much appreciated it.
>
> Thanks,
>
> Oliver
>
>
>
> k3b output (extract):
>
>
> k3b: (K3bDevice::openDevice) open device /dev/pass0 succeeded.
> k3b: (K3bDevice::openDevice) open device /dev/pass0 succeeded.
> k3b: (K3bDevice::ScsiCommand) transport command 5a, length: 9
> k3b: (K3bDevice::ScsiCommand) transport failed (4): 336896
> k3b: (K3bDevice::ScsiCommand) failed:
> k3b:              command:  MODE SENSE (5a)
> k3b:              errorcode: 70
> k3b:              sense key: ILLEGAL REQUEST (5)
> k3b:              asc:    24
> k3b:              ascq:    0
> k3b: (K3bDevice::Device) /dev/cd0: MODE SENSE length det failed.
> k3b: (K3bDevice::Device) /dev/cd0: modeSense 0x05 failed!
> k3b: (K3bDevice::Device) /dev/cd0: Cannot check write modes.
> k3b: (K3bDevice::ScsiCommand) transport command 5a, length: 9
> k3b: (K3bDevice::ScsiCommand) transport failed (4): 336896
> k3b: (K3bDevice::ScsiCommand) failed:
> k3b:              command:  MODE SENSE (5a)
> k3b:              errorcode: 70
> k3b:              sense key: ILLEGAL REQUEST (5)
> k3b:              asc:    24
> k3b:              ascq:    0
> k3b: (K3bDevice::Device) /dev/cd0: MODE SENSE length det failed.
> k3b: (K3bDevice::Device) /dev/cd0: read mode page 2A failed!
> k3b: (K3bDevice::ScsiCommand) transport command 5a, length: 9
> k3b: (K3bDevice::ScsiCommand) transport failed (4): 336896
> k3b: (K3bDevice::ScsiCommand) failed:
> k3b:              command:  MODE SENSE (5a)
> k3b:              errorcode: 70
> k3b:              sense key: ILLEGAL REQUEST (5)
> k3b:              asc:    24
> k3b:              ascq:    0
> k3b: (K3bDevice::Device) /dev/cd0: MODE SENSE length det failed.
> k3b: (K3bDevice::ScsiCommand) transport command 5a, length: 9
> k3b: (K3bDevice::ScsiCommand) transport failed (4): 336896
> k3b: (K3bDevice::ScsiCommand) failed:
> k3b:              command:  MODE SENSE (5a)
> k3b:              errorcode: 70
> k3b:              sense key: ILLEGAL REQUEST (5)
> k3b:              asc:    24
> k3b:              ascq:    0
> k3b: (K3bDevice::Device) /dev/cd0: MODE SENSE length det failed.
> k3b: (K3bDevice::Device) /dev/cd0: modeSense 0x05 failed!
> k3b: (K3bDevice::Device) /dev/cd0: Cannot check write modes.
>
> devfs.conf extract:
> # Permissions for CD-ROM and DVD devices
> own     acd0    root:wheel
> own     cd0     root:wheel
> own     pass0   root:wheel
> perm    pass0   0666
> perm    acd     0666
> perm    cd0     0666
> perm    /cdrom  0666
> perm    /cdrom1 0666
> own     /cdrom  0666
> own     /cdrom1 0666
> perm    xpt0    0666


More information about the freebsd-questions mailing list