Hi again,
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?
Ad-hoc I would have answered "of course". Good that I checked. It does not. Investigating why. Used 2.4.21 or so before till yesterday.
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
It sais: Jan 11 13:52:32 dg1kjd-lap kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray Jan 11 13:52:32 dg1kjd-lap kernel: sr0: mmc-3 profile capable, current profile: 0h Jan 11 13:52:32 dg1kjd-lap kernel: Uniform CD-ROM driver Revision: 3.12
You can also test with CONFIG_SCSI_LOGGING enabled. (read the config help text).
Good idea, will try and post again, thanks!
-- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
-- To unsubscribe, e-mail: packet-writing-unsubscribe@suse.com For additional commands, e-mail: packet-writing-help@suse.com
-- j