Buffer Underrun?

vbimport

#1

I’ve been trying to get nerolinux working with a Sony DRU-720A. It starts OK, but then the buffer starts routinely running down to 0% then refilling to 100%.

When the burn is completed, nerolinux reports no errors, but the disk is unmountable. Here’s some relevant output from my shell:

[root@flux ~]# hdparm /dev/hdg

/dev/hdg:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 238216/16/63, sectors = 240121728, start = 0
[root@flux ~]# hdparm -t /dev/hdg

/dev/hdg:
 Timing buffered disk reads:  170 MB in  3.00 seconds =  56.67 MB/sec

hdc: attached ide-scsi driver.
hdd: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: TDK       Model: CDRW161040X       Rev: 5.30
  Type:   CD-ROM                             ANSI SCSI revision: 02
  Vendor: SONY      Model: DVD RW DRU-720A   Rev: JY01
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray

( from /var/log/messages )
Apr 25 14:12:38 flux kernel: SCSI cdrom error : host 0 channel 0 id 1 lun 0 return code = 28000000
Apr 25 14:12:38 flux kernel: Current sd0b:01: sns = 70  4
Apr 25 14:12:38 flux kernel: ASC= 8 ASCQ= 3
Apr 25 14:12:38 flux kernel: Raw sense data:0x70 0x00 0x04 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x08 0x03 0x00 0x00 0x00 0x00
Apr 25 14:12:38 flux kernel:  I/O error: dev 0b:01, sector 64
Apr 25 14:12:38 flux kernel: isofs_read_super: bread failed, dev=0b:01, iso_blknum=16, block=16
Apr 25 14:12:46 flux kernel: SCSI cdrom error : host 0 channel 0 id 1 lun 0 return code = 28000000
Apr 25 14:12:46 flux kernel: Current sd0b:01: sns = 70  4
Apr 25 14:12:46 flux kernel: ASC= 8 ASCQ= 3
Apr 25 14:12:46 flux kernel: Raw sense data:0x70 0x00 0x04 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x08 0x03 0x00 0x00 0x00 0x00
Apr 25 14:12:46 flux kernel:  I/O error: dev 0b:01, sector 64
Apr 25 14:12:46 flux kernel: isofs_read_super: bread failed, dev=0b:01, iso_blknum=16, block=16

#2

Is your device an IDE internal one or is it the USB external version ? As far as I see, your device is connected via the ide-scsi driver, so you must be using a 2.4 kernel.

Maybe try this: Look at the DMA status for your device. To do this, identify the real IDE device name, and type:

hdparm -d /dev/hdXX (where hdXX is your device name)

If DMA is not enable, then enable it. It is a nice option to also pass -X66 to enable UDMA, that is not set by default with 2.4 kernels.