Packet writing not working for me either... Willing to help debug.
I've read the previous threads about people not being able to get packet writing working for them, and I've tried just about every recomendation to no avail. First some background info: unit: SONY DVD+RW DRU-120A (its a cd, cd rw, dvd, dvd rw device) scsi emulation alumbox cdrwtool # ./cdrwtool -d /dev/sr0 -q using device /dev/sr0 1280KB internal buffer setting write speed to 12x Settings for /dev/sr0: Fixed packets, size 32 Mode-2 disc I'm going to do a quick setup of /dev/sr0. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now. ENTER to continue. Initiating quick disc blank wait_cmd: Invalid argument Command failed: a1 01 00 00 00 00 00 00 00 00 00 00 - sense 05.30.05 blank disc: Illegal seek Ok, also if i try blanking with cdrecord i get: alumbox cdrwtool # cdrecord dev=0,0,0 -blank=fast Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jö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 : 0 Response Format: 2 Capabilities : Vendor_info : 'SONY ' Identifikation : 'DVD+RW DRU-120A' Revision : '1.13' Device seems to be: Generic mmc2 DVD-ROM. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). Driver flags : SWABAUDIO Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R Starting to write CD/DVD at speed 11 in write mode for single session. Last chance to quit, starting real write in 7 seconds. 0 seconds. Operation starts. cdrecord: Input/output error. blank unit: scsi sendcmd: no error CDB: A1 01 00 00 00 00 00 00 00 00 00 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0C 00 00 00 00 30 05 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 9600s cdrecord: Cannot blank disk, aborting. The wierd part is this: The unit works perfectly in windows. Also, I can use the method at http://fy.chalmers.se/~appro/linux/DVD+RW/ to both format rw discs and use growisofs perfectly on the drive in linux. (not using any kernel patches at the chalmers site, just the userland tools). I can write 4 gig iso's all day long and mount em no problem. So... my guess is that this is some kind of option/protocol mismatch problem. I'd love to help debug this as a built in kernel solution to me is MUCH more preferable to a userland/isofs solution. I want to be able to create ext2 file systems, ect. I have experience coding, but none playing with the kernel or the guts of a dvd rw/packets so im not quite sure where to start debugging this. Anyone want to give me a quick heads up? -- Wayde Milas Rarcoa (630) 654-2580
On Mon, 15 Jul 2002, Wayde Milas wrote:
cdrecord: Input/output error. blank unit: scsi sendcmd: no error CDB: A1 01 00 00 00 00 00 00 00 00 00 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0C 00 00 00 00 30 05 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 9600s cdrecord: Cannot blank disk, aborting.
[...]
So... my guess is that this is some kind of option/protocol mismatch problem. I'd love to help debug this as a built in kernel solution to me is MUCH more preferable to a userland/isofs solution. I want to be able to create ext2 file systems, ect. I have experience coding, but none playing with the kernel or the guts of a dvd rw/packets so im not quite sure where to start debugging this. Anyone want to give me a quick heads up?
Some ideas: * This seems to be a problem with fast blanking, not packet writing, so asking Jörg Schilling or on the CD recording mailing list (there is a link on Jörg's web page) might help. * Does full blanking work in cdrecord? * Does cdrwtool work if you start with a blank CD and format it without blanking it from cdrwtool? (I think cdrwtool -m will format without blanking first, but I'm too lazy to check the source code.) * Does packet writing work if you start with a CD already formatted for packet writing? -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
On Monday 15 July 2002 06:43 pm, you wrote:
On Mon, 15 Jul 2002, Wayde Milas wrote:
cdrecord: Input/output error. blank unit: scsi sendcmd: no error CDB: A1 01 00 00 00 00 00 00 00 00 00 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0C 00 00 00 00 30 05 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 9600s cdrecord: Cannot blank disk, aborting.
[...]
So... my guess is that this is some kind of option/protocol mismatch problem. I'd love to help debug this as a built in kernel solution to me is MUCH more preferable to a userland/isofs solution. I want to be able to create ext2 file systems, ect. I have experience coding, but none playing with the kernel or the guts of a dvd rw/packets so im not quite sure where to start debugging this. Anyone want to give me a quick heads up?
Some ideas:
* This seems to be a problem with fast blanking, not packet writing, so asking Jörg Schilling or on the CD recording mailing list (there is a link on Jörg's web page) might help. I'll ask/look into it
* Does full blanking work in cdrecord?
* Does cdrwtool work if you start with a blank CD and format it without blanking it from cdrwtool? (I think cdrwtool -m will format without blanking first, but I'm too lazy to check the source code.) Welp, Since i have no way to "blank" a cd in linux (besides the format tool
No. : alumbox root # cdrecord dev=0,0,0 -blank all Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jö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 : 0 Response Format: 2 Capabilities : Vendor_info : 'SONY ' Identifikation : 'DVD+RW DRU-120A' Revision : '1.13' Device seems to be: Generic mmc2 DVD-ROM. Using generic SCSI-3/mmc CD-R driver (mmc_cdr). Driver flags : SWABAUDIO Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R Starting to write CD/DVD at speed 11 in write mode for single session. Last chance to quit, starting real write in 0 seconds. Operation starts. cdrecord: Input/output error. blank unit: scsi sendcmd: no error CDB: A1 00 00 00 00 00 00 00 00 00 00 00 status: 0x2 (CHECK CONDITION) Sense Bytes: 70 00 05 00 00 00 00 0C 00 00 00 00 30 05 00 00 Sense Key: 0x5 Illegal Request, Segment 0 Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0 Sense flags: Blk 0 (not valid) cmd finished after 0.000s timeout 9600s cdrecord: Cannot blank disk, aborting. that works from Andy Polyakov... and im not positive thats a real "blank") I guess i could boot into windows and try blanking there. Actually, I'll do that later tonight.
* Does packet writing work if you start with a CD already formatted for packet writing? See above, I'll try it tonight.
Wayde
* Does cdrwtool work if you start with a blank CD and format it without blanking it from cdrwtool? (I think cdrwtool -m will format without blanking first, but I'm too lazy to check the source code.)
Welp, Since i have no way to "blank" a cd in linux (besides the format tool that works from Andy Polyakov... and im not positive thats a real "blank") I guess i could boot into windows and try blanking there. Actually, I'll do that later tonight.
Ok, I blanked the CD in windows. there is absolutely nothing on it. : alumbox cdrwtool # ./cdrwtool -d /dev/sr0 -m 1000000 using device /dev/sr0 formatting 1000000 blocks 1280KB internal buffer setting write speed to 12x wait_cmd: Invalid argument Command failed: 04 17 00 00 00 00 00 00 00 00 00 00 - sense 05.24.00 format disc: Illegal seek in dmsg i get: sr0: CDROM (ioctl) reports ILLEGAL REQUEST. Same as before. cdrwtool is calling an ioctl obviously that just doesnt exist for the hardware.
* Does packet writing work if you start with a CD already formatted for packet writing?
Well, I'd love to but im confused as to how to do that. In Windows I use B's Recorder Gold. The thing is, I can blank a CD there but, being windows, there really is no way to jsut "format" a disc without also putting data on it, and, being windows, im not sure how it formats it. I guess I could try requesting a isofs and jsut assume it formats it as an isofs and put a few test files on it? Wayde
Ok, quick question.. are you using a CDRW, or a DVD+RW in your DVD+RW drive? If your using a DVD+RW, none of the packet stuff should be applicable. I think DVD+RW is closer to DVD-RAM and HD's in that you "format" the media. Once formated, you can freely write anywhere on the disc. (so all you'd have to do is run mkudffs on the disc - assuming the kernel thinks the device is R/W) Ben
On Mon, 15 Jul 2002, Wayde Milas wrote:
* Does packet writing work if you start with a CD already formatted for packet writing?
Well, I'd love to but im confused as to how to do that. In Windows I use B's Recorder Gold. The thing is, I can blank a CD there but, being windows, there really is no way to jsut "format" a disc without also putting data on it, and, being windows, im not sure how it formats it. I guess I could try requesting a isofs and jsut assume it formats it as an isofs and put a few test files on it?
I was thinking of formatting the CD in windows in such a way that you could then drag and drop files directly to the CD. If the drive really supports packet writing, this should be possible. Then take the CD to linux and try to mount it r/w with the pktcdvd module. -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
participants (3)
-
Ben Fennema
-
Peter Osterlund
-
Wayde Milas