On Sun, 11 Jan 2004, Jens David wrote:
I am trying packet writing and UDF for the first time. Unfortunately it does not quiete seem to work.
I am using a 2.4.24 kernel with the 2.4.23 packet writing patch. ... I associate the packet device using:
pktsetup /dev/pktcdvd0 /dev/cdrom
where /dev/cdrom is /dev/scsi/host0/bus0/target0/lun0/cd (obviouly using idescsi translation). Using pktsetup /dev/pktcdvd0 /dev/hdc it does not work at all:
drive not ready : Invalid argument
Does /dev/hdc work when mounting a cd read-only without the pktcdvd driver?
So I use idescsi (or whatever this is called these days). When I try to write something:
dd if=/etc/passwd of=/dev/pktcdvd0 bs=2048
the following happens (syslog):
pktcdvd: v0.0.2p 03/03/2002 Jens Axboe (axboe@suse.de) pktcdvd: writer sr0 sucessfully registered pktcdvd: inserted media is CD-RW pktcdvd: Fixed packets, 32 blocks, Mode-2 disc pktcdvd: Max. media speed: 4 pktcdvd: speed (R/W) 6/4 pktcdvd: 551488kB available on disc I/O error: dev 0b:00, sector 0 pktcdvd: pktcdvd0: WRITE error sector 0 pktcdvd: pktcdvd0: WRITE error sector 4 ... pktcdvd: pktcdvd0: WRITE error sector 124
Of course the data does not end up on the disc. Any idea? How can I debug this?
How is the drive identified during boot? There should be a line in dmesg looking something like this: sr0: scsi3-mmc drive: 32x/40x writer cd/rw xa/form2 cdda tray If it says scsi1, the cdrom driver will not even try to write to it. (I've seem this happen with some usb drives.) You can also test with CONFIG_SCSI_LOGGING enabled. (read the config help text). -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340