Hi, I have a problem writing anything to a external USB cdrw. Using cdrwtool -d /dev/scd0 -q -t 4 it is formated without any problems. Then I can mount it and see the content, the detected speeds are OK. But any write produces a lot of "pktcdvd0: WRITE error sector xxx" messages. It should not be related to a bad medium, I tried several with the same result and I think the drive doesn't even try to write, as the red LED is never active. I used packet-2.4.19-2 and packet-2.4.20-pre11 and with cdrecord the writer works without any problems. Any ideas? Honza Fikar Oct 30 21:30:45 vaio kernel: pktcdvd: writer sr0 sucessfully registered Oct 30 21:30:52 vaio kernel: pktcdvd: inserted media is CD-RW Oct 30 21:30:52 vaio kernel: pktcdvd: Fixed packets, 32 blocks, Mode-2 disc Oct 30 21:30:52 vaio kernel: pktcdvd: Max. media speed: 4 Oct 30 21:30:53 vaio kernel: pktcdvd: speed (R/W) 6/4 Oct 30 21:30:54 vaio kernel: pktcdvd: 551232kB available on disc Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG lowlevel.c:57:udf_get_last_session: XA disk: no, vol_desc_start=0 Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:1414:udf_read_super: Multi-session=0 Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:407:udf_vrs: Starting at sector 16 (2048 byte sectors) Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:750:udf_load_pvoldesc: recording time 1036000871/119213, 2002/10/30 20:01 (1078) Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:760:udf_load_pvoldesc: volIden t[] = 'LinuxUDF' Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:767:udf_load_pvoldesc: volSetIdent[] = '3dc02c77LinuxUDF' Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:959:udf_load_logicalvol: Partition (0:0) type 2 on volume 1 Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:969:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=32, partition=0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:797:udf_load_partdesc: Searching map: (0 == 0) Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:838:udf_load_partdesc: unalloc SpaceBitmap (part 0) @ 0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:879:udf_load_partdesc: Partition (0:0 type 1522) starts at physical 1408, block length 273920 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:1212:udf_load_partition: Using anchor in block 256 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:1441:udf_read_super: Lastblock=0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:722:udf_find_fileset: Fileset at block=32, partition=0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:783:udf_load_fileset: Rootdir at block=64, partition=0 Oct 30 21:30:55 vaio kernel: UDF-fs INFO UDF 0.9.6 (2002/03/14) Mounting volume 'LinuxUDF', timestamp 2002/10/30 19:01 (103c) ... Oct 30 20:41:49 vaio kernel: pktcdvd: read failure (61:00, sec 1280) Oct 30 20:41:49 vaio kernel: 1280 not uptodate Oct 30 20:41:49 vaio kernel: I/O error: dev 0b:00, sector 1280 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1280 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1284 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1288 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1292 ... Cdrecord 1.11a36 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J<F6>rg Schilling scsidev: '0,0,0' scsibus: 0 target: 0 lun: 0 Linux sg driver version: 3.1.24 Using libscg version 'schily-0.6' Device type : Removable CD-ROM Version : 2 Response Format: 2 Capabilities : Vendor_info : 'LITE-ON ' Identifikation : 'LXR-24101A ' Revision : '8S03' Device seems to be: Generic mmc CD-RW. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). Driver flags : MMC-3 SWABAUDIO BURNFREE Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
I ran into the same problem with my external USB 2.0 (buslink)
the problem turned out to be the drive is an "unusual dev" which
doesn't know all 6 byte scsi commands and needs them translated to 10 byte
cmds.One of these cmds is mode_sense which detects the scsi drive capabilities
in sr.c
look at sr ... lines in dmesg output. I had scsi cdrom instead of scsi/mmc3 cdrw
so that misdetection caused the writable flag not being set hence the errors.
I sent the patch for the unusual entry last week to marcelo and mdharm but it's not in rc1 :(
anyway here it is try changing the vendor:devid if it's not the exact same model :)
the first two members of the list.
--- unusual_devs.h.orig Tue Oct 22 11:23:52 2002
+++ unusual_devs.h Tue Oct 22 11:27:37 2002
@@ -527,6 +527,13 @@
US_SC_SCSI, US_PR_BULK, NULL,
US_FL_START_STOP ),
+/* Submitted by jani@iv.ro */
+UNUSUAL_DEV( 0x0caf, 0x3acd, 0x0000, 0xffff,
+ "Buslink",
+ "USB 2.0 Optical Drive",
+ US_SC_SCSI, US_PR_BULK, NULL,
+ US_FL_MODE_XLATE ),
+
/* Reported by Dan Pilone
Hi,
I have a problem writing anything to a external USB cdrw. Using cdrwtool -d /dev/scd0 -q -t 4 it is formated without any problems. Then I can mount it and see the content, the detected speeds are OK. But any write produces a lot of "pktcdvd0: WRITE error sector xxx" messages. It should not be related to a bad medium, I tried several with the same result and I think the drive doesn't even try to write, as the red LED is never active. I used packet-2.4.19-2 and packet-2.4.20-pre11 and with cdrecord the writer works without any problems.
Any ideas? Honza Fikar
Oct 30 21:30:45 vaio kernel: pktcdvd: writer sr0 sucessfully registered Oct 30 21:30:52 vaio kernel: pktcdvd: inserted media is CD-RW Oct 30 21:30:52 vaio kernel: pktcdvd: Fixed packets, 32 blocks, Mode-2 disc Oct 30 21:30:52 vaio kernel: pktcdvd: Max. media speed: 4 Oct 30 21:30:53 vaio kernel: pktcdvd: speed (R/W) 6/4 Oct 30 21:30:54 vaio kernel: pktcdvd: 551232kB available on disc Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG lowlevel.c:57:udf_get_last_session: XA disk: no, vol_desc_start=0 Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:1414:udf_read_super: Multi-session=0 Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:407:udf_vrs: Starting at sector 16 (2048 byte sectors) Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:750:udf_load_pvoldesc: recording time 1036000871/119213, 2002/10/30 20:01 (1078) Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:760:udf_load_pvoldesc: volIden t[] = 'LinuxUDF' Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:767:udf_load_pvoldesc: volSetIdent[] = '3dc02c77LinuxUDF' Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:959:udf_load_logicalvol: Partition (0:0) type 2 on volume 1 Oct 30 21:30:54 vaio kernel: UDF-fs DEBUG super.c:969:udf_load_logicalvol: FileSet found in LogicalVolDesc at block=32, partition=0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:797:udf_load_partdesc: Searching map: (0 == 0) Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:838:udf_load_partdesc: unalloc SpaceBitmap (part 0) @ 0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:879:udf_load_partdesc: Partition (0:0 type 1522) starts at physical 1408, block length 273920 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:1212:udf_load_partition: Using anchor in block 256 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:1441:udf_read_super: Lastblock=0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:722:udf_find_fileset: Fileset at block=32, partition=0 Oct 30 21:30:55 vaio kernel: UDF-fs DEBUG super.c:783:udf_load_fileset: Rootdir at block=64, partition=0 Oct 30 21:30:55 vaio kernel: UDF-fs INFO UDF 0.9.6 (2002/03/14) Mounting volume 'LinuxUDF', timestamp 2002/10/30 19:01 (103c)
...
Oct 30 20:41:49 vaio kernel: pktcdvd: read failure (61:00, sec 1280) Oct 30 20:41:49 vaio kernel: 1280 not uptodate Oct 30 20:41:49 vaio kernel: I/O error: dev 0b:00, sector 1280 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1280 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1284 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1288 Oct 30 20:41:49 vaio kernel: pktcdvd: pktcdvd0: WRITE error sector 1292
...
Cdrecord 1.11a36 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J<F6>rg Schilling scsidev: '0,0,0' scsibus: 0 target: 0 lun: 0 Linux sg driver version: 3.1.24 Using libscg version 'schily-0.6' Device type : Removable CD-ROM Version : 2 Response Format: 2 Capabilities : Vendor_info : 'LITE-ON ' Identifikation : 'LXR-24101A ' Revision : '8S03' Device seems to be: Generic mmc CD-RW. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). Driver flags : MMC-3 SWABAUDIO BURNFREE Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
-- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com
Dear Jani, thank you for quick and accurate answer.
look at sr ... lines in dmesg output. I had scsi cdrom instead of scsi/mmc3 cdrw
Yes, it's the same here, your patch worked perfectly, only my IDs for LITE-ON LXR-24101A USB2/1 are (taken from /proc/bus/usb/devices) ... +UNUSUAL_DEV( 0x05ab, 0x0060, 0x0000, 0xffff, + "In-System Design", + "USB Storage Adapter", ... Can you, please, send it to the kernel guys. I hope it will appear in 2.4.20. Best regards, Honza Fikar
participants (2)
-
Honza Fikar
-
Jani Monoses