burncd block size

Dag-ErlingSmørgrav des at des.no
Fri Nov 7 01:10:58 PST 2003

I've been having a variety of problems burning CDs with atang:

 - burncd consistently failing in exactly the same spot in the ISO,
   and reporting "only wrote 0 of 32768 bytes: Unknown error: 0"

 - burncd failing right at the start with "only wrote -1 of 32768
   bytes: Input/output error" (this generally happens after a couple
   of the previous, and once it starts happening I have to reboot)

 - burncd getting stuck in acdcld for a long time while fixating

 - a *lot* of "sensekey=ILLEGAL REQUEST error=4<ABORTED>"; fixating a
   CD causes about half a dozen TEST_UNIT_READY failures, and I
   failures as well, all of them with "status=51<READY,DSC,ERROR>
   sensekey=ILLEGAL REQUEST error=4<ABORTED>"

I've discovered that reducing the buffer size in burncd fixes at least
the first problem, and possibly the second, but not the third.  I've
attached a patch that adds a command-line option for that (the default
will still be 16 blocks at a time, but you can specify anything from 1
to 64 on the command line)

The drive is an LG 8400B with which I've previously had little or no
trouble; prior to atang, it burned CDs just fine at 40x with a failure
rate of precisely 0.

# dmesg | grep acd
acd0: CDRW <HL-DT-ST GCE-8400B> at ata1-master WDMA2
# atacontrol info ata1
Master: acd0 <HL-DT-ST GCE-8400B/1.00> ATA/ATAPI rev 0
Slave:       no device present
# atacontrol cap ata1 0
ATA channel 1, Master, device acd0:

ATA/ATAPI revision    0
device model          HL-DT-ST GCE-8400B
serial number
firmware revision     1.00
cylinders             0
heads                 0
sectors/track         0
lba supported
lba48 not supported
dma supported
overlap not supported

Feature                      Support  Enable    Value   Vendor
write cache                    no       no
read ahead                     no       no
dma queued                     no       no      0/0x00
SMART                          no       no
microcode download             no       no
security                       no       no
power management               no       no
advanced power management      no       no      0/0x00
automatic acoustic management  no       no      0/0x00  0/0x00

Dag-Erling Smørgrav - des at des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: burncd.diff
Type: text/x-patch
Size: 10325 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20031107/b251ca0d/burncd.bin

More information about the freebsd-current mailing list