View previous topic :: View next topic |
Author |
Message |
flipy Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 15 Jul 2004 Posts: 236
|
Posted: Tue Jun 22, 2010 8:46 am Post subject: [SOLVED] cannot write CD/DVD SATA DVD drive |
|
|
I'm having problems trying to write CD/DVD with a brand new HP DVD-R DL drive.
The device is correctly identified by the kernel, and it can read without problems.
Quote: | [1:0:0:0] cd/dvd hp DVD-RAM GH40L RB0E /dev/sr0 |
But when trying to write it fails with the error below:
Quote: | acalvo@AS5 ~/Downloads/ISO $ cdrecord -dao -dev=/dev/cdrw -v clonezilla-live-20100521-lucid.iso
Cdrecord-ProDVD-ProBD-Clone 2.01.01a75 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2010 Jörg Schilling
TOC Type: 1 = CD-ROM
scsidev: '/dev/cdrw'
devname: '/dev/cdrw'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.9'.
SCSI buffer size: 64512
atapi: 1
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'hp '
Identifikation : 'DVD-RAM GH40L '
Revision : 'RB0E'
Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD+RW
Profile: DVD+R
Profile: DVD+R/DL
Profile: DVD-ROM
Profile: CD-R (current)
Profile: CD-RW
Profile: CD-ROM
Profile: Removable Disk
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
Drive buf size : 1016064 = 992 KB
Drive pbuf size: 1966080 = 1920 KB
cdrecord: Warning: DMA resid 0 for 'read buffer', actual data is too short.
cdrecord: Warning: The DMA speed test has been skipped.
FIFO size : 4194304 = 4096 KB
Track 01: data 126 MB
Total size: 144 MB (14:20.16) = 64512 sectors
Lout start: 145 MB (14:22/12) = 64512 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Disk Is not unrestricted
Disk Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Capacity Blklen/Sparesz. Format-type Type
0 2048 0x00 No Media Present or Unknown Capacity
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 295334
Starting to write CD/DVD/BD at speed 40 in real SAO mode for single session.
Last chance to quit, starting real write 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is OFF.
Performing OPC...
Sending CUE sheet...
cdrecord: WARNING: Drive returns wrong startsec (0) using -150
Writing pregap for track 1 at -150
Starting new track at sector: 0
Track 01: 0 of 126 MB written.cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB: 2A 00 00 00 01 74 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 2A 00 00 80 30 05 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x30 Qual 0x05 (cannot write medium - incompatible format) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.003s timeout 200s
write track data: error after 761856 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
Writing time: 25.130s
Average write speed 34.3x.
Fixating...
Fixating time: 0.004s
cdrecord: fifo had 76 puts and 13 gets.
cdrecord: fifo was 0 times empty and 5 times full, min fill was 92%.
|
Kernel config: http://pastebin.com/4NNCU7Uc
I've been reading the wiki and some other pages, but didn't anything related.
Thanks in advance.
Last edited by flipy on Thu Jul 01, 2010 2:48 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ziggysquatch Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/18885333244b3a0ac6662e3.png)
Joined: 16 Nov 2004 Posts: 172 Location: /USA/Minnesota
|
Posted: Tue Jun 22, 2010 12:41 pm Post subject: |
|
|
Looks like it has a problem with the media. What kind of disc are you trying to burn, CD, DVD? If it's DVD have you checked if your drive supports +R or -R or both?
If the drive supports the discs you are trying to use, I would try a different brand (probably Verbatim just to be sure) and see if they are any different. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flipy Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 15 Jul 2004 Posts: 236
|
Posted: Thu Jul 01, 2010 9:26 am Post subject: |
|
|
I've tried several media, but always fail.
Is a brand new desktop, and I've had the opportunity to try it in a new one (just changing the hard disk) and still fails.
Quite confused, and I've the feeling that'll be some configuration that I'm doing wrong... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54832 Location: 56N 3W
|
Posted: Thu Jul 01, 2010 11:49 am Post subject: |
|
|
flipy,
As its a new system, and supports,
Code: | Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM.
Current: CD-R
Profile: DVD-RAM
Profile: DVD-R sequential recording
Profile: DVD-R/DL sequential recording
Profile: DVD-R/DL layer jump recording
Profile: DVD-RW sequential recording
Profile: DVD-RW restricted overwrite
Profile: DVD+RW
Profile: DVD+R
Profile: DVD+R/DL
Profile: DVD-ROM
Profile: CD-R (current)
Profile: CD-RW
Profile: CD-ROM |
With supported modes
Code: | Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R LAYER_JUMP |
why does it say
I suspect the write buffer in the drive is becoming empty, and with burn-free off, the system is not able to recover.
Fix the problem causing the system not delivering data to the drive fast enough, burn at a lower speed or turn on burn-free, or all three. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flipy Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 15 Jul 2004 Posts: 236
|
Posted: Thu Jul 01, 2010 2:48 pm Post subject: Solved! |
|
|
I've solved it by passing two parameters to the kernel
Code: | libata.atapi_an=0 libata.dmadir=1 |
Some new SATA CD/DVD don't handle some ATAPI commands. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flipy Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 15 Jul 2004 Posts: 236
|
Posted: Thu Oct 14, 2010 3:58 pm Post subject: |
|
|
With the latest kernel (>=2.6.35) works out of the box. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|