Re: issues with new sata dvd-drive

From: Alexander Best <arundel_at_freebsd.org>
Date: Wed, 18 May 2011 08:27:47 +0000
sorry. i wanted to cc freebsd-scsi and accidently wrote freebsd-cam.

On Wed May 18 11, Alexander Best wrote:
> hi there,
> 
> i recently switched my old pata dvd-drive with a new sata one:
> 
> cd0: <HL-DT-ST DVDRAM GH24NS50 XP02> Removable CD-ROM SCSI-0 device 
> cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
> cd0: cd present [355062 x 2048 byte records]
> 
> however now i experience the following issues:
> 
> 1)
> otaku% recoverdisk /dev/cd0 ~/test.iso 
> Bigsize = 1048576, medsize = 65536, minsize = 2048
>         start    size     block-len state          done     remaining    % done
>     617611264  514048        514048     0     617611264        514048  99.91684
> 617611264 514048 failed (Device not configured)
> 
> 2)
> otaku% dd if=/dev/cd0 of=/home/arundel/test.iso bs=1048576 
> dd: /dev/cd0: Device not configured
> 589+0 records in
> 589+0 records out
> 617611264 bytes transferred in 120.144189 secs (5140584 bytes/sec)
> 
> 3)
> otaku% dd if=/dev/cd0 of=/home/arundel/test.iso bs=65536  
> dd: /dev/cd0: Device not configured
> 9431+0 records in
> 9431+0 records out
> 618070016 bytes transferred in 120.345870 secs (5135781 bytes/sec)
> 
> 4)
> otaku% dd if=/dev/cd0 of=/home/arundel/test.iso bs=2048 
> load: 0.20  cmd: dd 50488 [physrd] 219.96r 0.17u 8.41s 1% 1016k
> 203127+0 records in
> 203127+0 records out
> 416004096 bytes transferred in 219.746150 secs (1893112 bytes/sec)
> dd: /dev/cd0: Device not configured
> 301817+0 records in
> 301817+0 records out
> 618121216 bytes transferred in 371.835266 secs (1662352 bytes/sec)
> 
> ...also when issuing this command (4)), at some point the drive starts spinning
> down and then up again several times. this doesn't happen with a larger
> blocksize (see 1-3)). i hit ctrl+t at the exact moment the drive started
> spinning down the first time.
> 
> i'm seeing the following warnings via dmesg:
> 
> (cd0:ahcich2:0:0:0): READ(10). CDB: 28 0 0 4 9a c0 0 0 3b 0 
> (cd0:ahcich2:0:0:0): CAM status: SCSI Status Error
> (cd0:ahcich2:0:0:0): SCSI status: Check Condition
> (cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST csi:28,a,0,80 asc:64,0 (Illegal mode for this track)
> (cd0:ahcich2:0:0:0): cddone: got error 0x6 back
> (cd0:ahcich2:0:0:0): READ(10). CDB: 28 0 0 4 9a c0 0 0 3b 0 
> (cd0:ahcich2:0:0:0): CAM status: SCSI Status Error
> (cd0:ahcich2:0:0:0): SCSI status: Check Condition
> (cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST csi:28,a,0,80 asc:64,0 (Illegal mode for this track)
> (cd0:ahcich2:0:0:0): cddone: got error 0x6 back
> (cd0:ahcich2:0:0:0): READ(10). CDB: 28 0 0 4 9a c0 0 0 3b 0 
> (cd0:ahcich2:0:0:0): CAM status: SCSI Status Error
> (cd0:ahcich2:0:0:0): SCSI status: Check Condition
> (cd0:ahcich2:0:0:0): SCSI sense: ILLEGAL REQUEST csi:28,a,0,80 asc:64,0 (Illegal mode for this track)
> (cd0:ahcich2:0:0:0): cddone: got error 0x6 back
> 
> i'm running a recent HEAD (r221878) on amd64. my kernel contains
> 
> device ahci
> device scbus
> device cd
> device pass
> 
> this my sata controller:
> 
> ahci0: <Intel ICH9 AHCI SATA controller> port 0xe600-0xe607,0xe700-0xe703,0xe800-0xe807,0xe900-0xe903,0xea00-0xea1f mem 0xfa206000-0xfa2067ff irq 19 at device 31.2 on pci0
> ahci0: AHCI v1.20 with 6 3Gbps ports, Port Multiplier supported
> 
> two other issues i'm experiencing (if their really are issues and not me doing
> something wrong are:
> 
> 1)
> when running cdrecord(1) to burn a DVD (DVD+R) i get the following warning:
> 
> cdrecord: DMA speed too slow (OK for 10x). Cannot write at speed 18x.
> 
> 2)
> otaku% sudo cdrecord blank=fast
> Cdrecord-ProDVD-ProBD-Clone 3.01a04 (amd64-unknown-freebsd9.0) Copyright (C) 1995-2010 Joerg Schilling
> Using libscg version 'schily-0.9'.
> No target specified, trying to find one...
> Using dev=2,0,0.
> Device type    : Removable CD-ROM
> Version        : 0
> Response Format: 2
> Capabilities   : 
> Vendor_info    : 'HL-DT-ST'
> Identifikation : 'DVDRAM GH24NS50 '
> Revision       : 'XP02'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE 
> Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
> Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single session.
> Last chance to quit, starting real write    0 seconds. Operation starts.
> 
> taku% dd if=/dev/random of=./test.file bs=1m count=10
> 10+0 records in
> 10+0 records out
> 10485760 bytes transferred in 0.635699 secs (16494850 bytes/sec)
> 
> otaku% sudo cdrecord test.file
> cdrecord: No write mode specified.
> cdrecord: Assuming -sao mode.
> cdrecord: If your drive does not accept -sao, try -tao.
> cdrecord: Future versions of cdrecord may have different drive dependent defaults.
> Cdrecord-ProDVD-ProBD-Clone 3.01a04 (amd64-unknown-freebsd9.0) Copyright (C) 1995-2010 Joerg Schilling
> Using libscg version 'schily-0.9'.
> No target specified, trying to find one...
> Using dev=2,0,0.
> Device type    : Removable CD-ROM
> Version        : 0
> Response Format: 2
> Capabilities   : 
> Vendor_info    : 'HL-DT-ST'
> Identifikation : 'DVDRAM GH24NS50 '
> Revision       : 'XP02'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE 
> Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
> Starting to write CD/DVD/BD at speed 4 in real SAO mode for single session.
> Last chance to quit, starting real write    0 seconds. Operation starts.
> Turning BURN-Free off
> cdrecord: WARNING: Drive returns wrong startsec (0) using -150
> Track 01: Total bytes read/written: 10485760/10485760 (5120 sectors).
> 
> otaku% dd if=/dev/cd0 of=./test.dao bs=1m count=10
> 10+0 records in
> 10+0 records out
> 10485760 bytes transferred in 9.587938 secs (1093641 bytes/sec)
> 
> otaku% sudo cdrecord blank=fast                       
> Cdrecord-ProDVD-ProBD-Clone 3.01a04 (amd64-unknown-freebsd9.0) Copyright (C) 1995-2010 Joerg Schilling
> Using libscg version 'schily-0.9'.
> No target specified, trying to find one...
> Using dev=2,0,0.
> Device type    : Removable CD-ROM
> Version        : 0
> Response Format: 2
> Capabilities   : 
> Vendor_info    : 'HL-DT-ST'
> Identifikation : 'DVDRAM GH24NS50 '
> Revision       : 'XP02'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE 
> Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
> Starting to write CD/DVD/BD at speed 4 in real BLANK mode for single session.
> Last chance to quit, starting real write    0 seconds. Operation starts.
> 
> otaku% sudo cdrecord -tao test.file                   
> Cdrecord-ProDVD-ProBD-Clone 3.01a04 (amd64-unknown-freebsd9.0) Copyright (C) 1995-2010 Joerg Schilling
> Using libscg version 'schily-0.9'.
> No target specified, trying to find one...
> Using dev=2,0,0.
> Device type    : Removable CD-ROM
> Version        : 0
> Response Format: 2
> Capabilities   : 
> Vendor_info    : 'HL-DT-ST'
> Identifikation : 'DVDRAM GH24NS50 '
> Revision       : 'XP02'
> Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
> Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
> Driver flags   : MMC-3 SWABAUDIO BURNFREE 
> Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP
> Starting to write CD/DVD/BD at speed 4 in real TAO mode for single session.
> Last chance to quit, starting real write    0 seconds. Operation starts.
> Track 01: Total bytes read/written: 10485760/10485760 (5120 sectors).
> otaku% dd if=/dev/cd0 of=./test.tao bs=1m count=10
> 10+0 records in
> 10+0 records out
> 10485760 bytes transferred in 6.694222 secs (1566390 bytes/sec)
> 
> otaku% diff test.file test.dao
> 
> otaku% diff test.file test.tao
> 
> ...so eventually nothing gets broken by the warning about the wrong startsec.
> 
> cheers.
> alex
> 
> -- 
> a13x
> 

-- 
a13x
Received on Wed May 18 2011 - 06:27:47 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:14 UTC