Author Topic: List CD write speeds or burning a CD properly  (Read 4629 times)

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
List CD write speeds or burning a CD properly
« on: 20 May 2006, 05:12 »
I've had lots of trouble burning CDs properly (mostly CD-Rs using cdrecord). Is there a way to list the possible supported speeds for a particular drive ? It seems I may have been trying to burn at way over the supported speed. The CDs come out seemingly ok, but upon inspection by md5sum they are either corrupt or I get input/output error (again corrupt).

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: List CD write speeds or burning a CD properly
« Reply #1 on: 20 May 2006, 07:27 »
Quote from: H_TeXMeX_H
I've had lots of trouble burning CDs properly (mostly CD-Rs using cdrecord). Is there a way to list the possible supported speeds for a particular drive ? It seems I may have been trying to burn at way over the supported speed. The CDs come out seemingly ok, but upon inspection by md5sum they are either corrupt or I get input/output error (again corrupt).


Isn't it written on the drive?  Usually the drive has 3 numbers like 40x/12x/48x.  The first is the burn speed.  The second is the speed in packet writing mode (if you use a cdrw like a big floppy disk instead of an erasable cdr), the third is the read speed.  If it's not written on the drive, you can get the model number easily enough of your linux boot sequence or  bios messages and look it up on the web.  

You can get corrupted media if you try to burn media faster than its rated speed.  It's a simple thing, but did you check the CD blanks?

But one thing to remember... burns are more reliable if you slow them down, no matter how fast a drive you have.
In brightest day, in darkest night, no evil shall escape my sight....

WMD

  • Global Moderator
  • Member
  • ***
  • Posts: 2,525
  • Kudos: 391
    • http://www.dognoodle99.cjb.net
Re: List CD write speeds or burning a CD properly
« Reply #2 on: 20 May 2006, 18:25 »
Try using k3b (seriously, it's good).  When you go to record, there's a drop-down box for speeds, and right next to it, there's a button that removes all non-supported speeds from the list.

Personally I've never used my desktop burner's full speed (52x).  I use 40x.  Not just for the sake of reliability, but also because 52x is fucking LOUD.
My BSOD gallery
"Yes there's nothing wrong with going around being rude and selfish, killing people and fucking married women, but being childish is a cardinal sin around these parts." -Aloone_Jonez

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: List CD write speeds or burning a CD properly
« Reply #3 on: 20 May 2006, 20:06 »
Yeah, I've used frontends for cdrecord ... like k3b and others, but how do they get the speeds ? I wanna know how to do this in command line. I think my drive supports at least 40x but it never burns that fast, fastest I can burn is 4x ... maybe I need new firmware ? I'll try ... assuming I can find a way to update the firmware.

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: List CD write speeds or burning a CD properly
« Reply #4 on: 20 May 2006, 23:34 »
Quote from: H_TeXMeX_H
Yeah, I've used frontends for cdrecord ... like k3b and others, but how do they get the speeds ? I wanna know how to do this in command line. I think my drive supports at least 40x but it never burns that fast, fastest I can burn is 4x ... maybe I need new firmware ? I'll try ... assuming I can find a way to update the firmware.


4x is very slow.  You should not have any reliability problems at that speed.  

Just what kind of drive is this?

If it is an external USB drive plugged into a USB 1.1 port, you are bandwidth limited to 4x and unless you manually set it to burn at 4x it can possibly foul things up.
If it is an internal IDE drive, are you using SCSI emulation?  That's really the way to go.
In brightest day, in darkest night, no evil shall escape my sight....

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: List CD write speeds or burning a CD properly
« Reply #5 on: 20 May 2006, 23:40 »
It's this one:

http://pcworld.about.com/news/Jun212002id102077.htm

        1,1,0   101) 'ASUS    ' 'CRW-4012A       ' '1.0 ' Removable CD-ROM

40X/12X/48X

Still, I can ony safely burn at 4x :(

WMD

  • Global Moderator
  • Member
  • ***
  • Posts: 2,525
  • Kudos: 391
    • http://www.dognoodle99.cjb.net
Re: List CD write speeds or burning a CD properly
« Reply #6 on: 21 May 2006, 01:16 »
Bah.  Get some patience.  I burn DVDs at 2x...and do I complain?  Rarely. :D
My BSOD gallery
"Yes there's nothing wrong with going around being rude and selfish, killing people and fucking married women, but being childish is a cardinal sin around these parts." -Aloone_Jonez

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: List CD write speeds or burning a CD properly
« Reply #7 on: 21 May 2006, 01:44 »
Ok, so it's an IDE/ATAPI drive, but are you using SCSI emulation?  I tried getting my ATAPI CD burner to work without SCSI emulation just to see how well the drivers worked, and everything was corrupted.

Here is a link with some  good instructions to setting up SCSI emulation.  http://www-128.ibm.com/developerworks/linux/library/l-cdburn.html

Only thing it doesn't mention is resetting your /dev/cdrom symbolic links and /etc/fstab...

Also, is your IDE controller using bus mastering on this drive?  You can check it with hdparm.
In brightest day, in darkest night, no evil shall escape my sight....

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: List CD write speeds or burning a CD properly
« Reply #8 on: 21 May 2006, 04:38 »
Here's the output of cdrecord -scanbus:

Quote

[Drax@knoppix ~]$ cdrecord -scanbus
Cdrecord-Clone 2.01.01a03-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2005 J

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: List CD write speeds or burning a CD properly
« Reply #9 on: 21 May 2006, 07:00 »
Code: [Select]

[root@hariel mobrien]# /sbin/hdparm /dev/hdc

/dev/hdc:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device


The "using_dma" is what you are looking for.  

You are apparently not using SCSI emulation.  Kernel 2.6 is supposed to have a much better ATAPI  support, but I have never tried it.  SCSI emulation is much more mature... and when you consider that ATAPI is essentially SCSI over the ATA  interface anyway, it makes perfect sense.  

If you are having problems, why don't you try SCSI emulation and see if it solves your problem?
In brightest day, in darkest night, no evil shall escape my sight....

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: List CD write speeds or burning a CD properly
« Reply #10 on: 21 May 2006, 22:10 »
Here is hdparm output:

Quote

[Drax@knoppix ~]$ /sbin/hdparm /dev/cdwriter

/dev/cdwriter:
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 HDIO_GETGEO failed: Inappropriate ioctl for device
[Drax@knoppix ~]$


How do you use SCSI emulation ?

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: List CD write speeds or burning a CD properly
« Reply #11 on: 23 May 2006, 02:23 »
To use scsi emulation, assuming your burner is on /dev/hdc.

Edit your grub.conf file.  

Copy your linux entry.  Call the copy something different, like linuxscsi.

Add an entry at the end of the kernel line saying

hdc=scsi

Reboot and use the new entry.  Your burner is no longer accessable under /dev/hdc at all.  Instead, it is accessible as /dev/scd0.  Reset your /dev/cdwriter symlink appropriately.
In brightest day, in darkest night, no evil shall escape my sight....

cymon

  • Member
  • **
  • Posts: 354
  • Kudos: 172
Re: List CD write speeds or burning a CD properly
« Reply #12 on: 23 May 2006, 04:16 »
Ugh. SCSI emulation over IDE, that's just unholy. Luckily for me, I don't need any emulation.

mobrien_12

  • VIP
  • Member
  • ***
  • Posts: 2,138
  • Kudos: 711
    • http://www.geocities.com/mobrien_12
Re: List CD write speeds or burning a CD properly
« Reply #13 on: 23 May 2006, 13:16 »
Quote from: cymon
Ugh. SCSI emulation over IDE, that's just unholy. Luckily for me, I don't need any emulation.


As I said before, the whole ATAPI specification is already essentially SCSI over IDE.  
The only emulation that's going on is the way the kernel interfaces with the drive.
There's nothing unholy or unnatural about it.

The new kernel 2.6 drivers which allow you to avoid the ide-scsi really only offer convenience in setup.
In brightest day, in darkest night, no evil shall escape my sight....

H_TeXMeX_H

  • Member
  • **
  • Posts: 1,988
  • Kudos: 494
    • http://draconishinobi.50webs.com/
Re: List CD write speeds or burning a CD properly
« Reply #14 on: 23 May 2006, 19:45 »
Well it don't work ... the writer drive is hdd and I put hdd=scsi in the kernel line, and hdd dissapeared, but /dev/scd0 did not appear :(