LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-12-2005, 11:31 AM   #1
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
CD Rom very slow


I have a notebook with a CDRW 24x16x4 (or something like that) speed. But when Im burning cds in linux I can only burn at 4x ... more than this give me an error. I know that it writes faster because in windows I can write at 16x and 4x for CDRW

Anyone knows why?
 
Old 08-12-2005, 12:01 PM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Is dma enabled? Open a terminal, type "su -", enter root password and type "hdparm -d /dev/hdc" if hdc is your burner. Typing "hdparm -d1 /dev/hdc" in the same terminal (as root) will attempt to set dma to 1.
 
Old 08-12-2005, 12:42 PM   #3
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
good question!

I have totaly forgot of checking that!

WHen I get home I will check that... thanks!
 
Old 08-13-2005, 03:22 PM   #4
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
DMA is on ...

so what can be causing this problem?
 
Old 08-13-2005, 07:46 PM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
The best way to find out is to burn in a root terminal using the command:
Code:
cdrecord dev=ATAPI:/dev/hdc image.iso
where "image.iso" is a test iso image ready for burning (see mkisofs) and /dev/hdc is the name of your (atapi) cdrw device.
Read the output and post any interesting messages.
 
Old 08-13-2005, 11:25 PM   #6
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
What program are you using to burn, and what else do you have running at the time?

You could be running up against a program that isn't savvy enough to use your CDROM's full buffer. Say you've got a 16mb buffer on the burner, and the program is only using 2mb. Result? At higher burning speeds, the bugger underruns and you get an error. I'd suggest you try a different program to see if you get the same error.
 
Old 08-14-2005, 01:26 AM   #7
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
Im using nautilus to burn cds or k3b ... both only burns at 4x ... if the speed is more them 4x I get an error...
my drive is a DW-P50A with firmware 1.8f ....
 
Old 08-14-2005, 04:45 AM   #8
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
in other words, cdrecord.
 
Old 08-15-2005, 05:34 PM   #9
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
well.. with cdrecord I get an error ... and noting happens, this is the output:

Code:
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12.3
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI:/dev/hdc'
devname: 'ATAPI:/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'SONY    '
Identifikation : 'DVD+RW DW-P50A  '
Revision       : '1.8f'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
cdrecord: DMA speed too slow (OK for 10x). Cannot write at speed 16x.
cdrecord: Max DMA data speed is 10.
cdrecord: Try to use 'driveropts=burnfree'.
 
Old 08-15-2005, 05:40 PM   #10
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
using cdrecord with speed=10 I get this (I think I lost a CD):

Code:
sing generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
Starting to write CD/DVD at speed 8 in real TAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Turning BURN-Free off
cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB:  2A 00 00 00 48 4B 00 00 1F 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F1 00 03 00 00 38 E5 12 00 00 00 00 0C 00 00 00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x3 Medium Error, deferred error, Segment 0
Sense Code: 0x0C Qual 0x00 (write error) Fru 0x0
Sense flags: Blk 14565 (valid)
cmd finished after 2.530s timeout 40s
write track data: error after 37902336 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
cdrecord: Input/output error. close track/session: scsi sendcmd: no error
CDB:  5B 00 02 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: F0 00 03 00 00 39 24 12 00 00 00 00 0C 08 00 00 00 00 00 00 00 00 00 00 00 00
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x0C Qual 0x08 (write error - recovery failed) Fru 0x0
Sense flags: Blk 14628 (valid)
cmd finished after 5.040s timeout 480s
cmd finished after 5.040s timeout 480s
cdrecord: Cannot fixate disk.
This drive must write at 16x (I already writed at 16x... I think the problem start after the firmware update to 1.8f, but I didnt find anyone reporting any problem).... :/
 
Old 08-15-2005, 05:41 PM   #11
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
Code:
#mount /mnt/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# dmesg | tail
[drm] Initialized radeon 1.16.0 20050311 on minor 0: ATI Technologies Inc Radeon IGP 330M/340M/350M
mtrr: 0xd8000000,0x4000000 overlaps existing 0xd8000000,0x2000000
agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
cdrom: This disc doesn't have any tracks I recognize!
scsi: unknown opcode 0x01
attempt to access beyond end of device
hdc: rw=0, want=68, limit=4
isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16
 
Old 08-15-2005, 05:43 PM   #12
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by maginotjr
well.. with cdrecord I get an error ... and noting happens, this is the output:

Code:
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jörg Schilling
cdrecord: Warning: Running on Linux-2.6.12.3
cdrecord: There are unsettled issues with Linux-2.5 and newer.
cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris.
scsidev: 'ATAPI:/dev/hdc'
devname: 'ATAPI:/dev/hdc'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.8'.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'SONY    '
Identifikation : 'DVD+RW DW-P50A  '
Revision       : '1.8f'
Device seems to be: Generic mmc2 DVD-ROM.
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96R RAW/R96R
cdrecord: DMA speed too slow (OK for 10x). Cannot write at speed 16x.
cdrecord: Max DMA data speed is 10.
cdrecord: Try to use 'driveropts=burnfree'.
It says "no dma, no high speed"
You may want to try scsi emulation, there is lots of help on lq for this, but it does require you to (possibly) re-compile your kernel and put this into your lilo.conf file:
Code:
append = "/dev/hdc=ide-scsi"
where hdc is your burner. (run lilo afterwards)
After a reboot try "cdrecord -scanbus"
 
Old 08-15-2005, 08:53 PM   #13
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
I have ide-scsi module, its always loaded, and I have dma in my cdrom:
Code:
dealer@slackbox:~$ lsmod
Module                  Size  Used by
radeon                 76800  1
drm                    60948  2 radeon
snd_pcm_oss            48288  0
snd_mixer_oss          17408  1 snd_pcm_oss
parport_pc             22724  0
parport                20928  1 parport_pc
rtc                    10936  0
ati_agp                 7180  1
usbhid                 32736  0
uhci_hcd               30352  0
ehci_hcd               29704  0
usbcore               108924  4 usbhid,uhci_hcd,ehci_hcd
ohci1394               32436  0
ieee1394               90676  1 ohci1394
joydev                  8256  0
evdev                   7552  0
pcmcia                 21512  2
yenta_socket           20744  1
rsrc_nonstatic         11392  1 yenta_socket
pcmcia_core            43416  3 pcmcia,yenta_socket,rsrc_nonstatic
ide_scsi               14468  0
agpgart                29896  2 drm,ati_agp
Code:
root@slackbox:/home/dealer# 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: Invalid argument

Last edited by maginotjr; 08-15-2005 at 08:54 PM.
 
Old 08-15-2005, 09:34 PM   #14
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 35
1) Instead of 'dev=ATAPI:/dev/hdc', try 'dev=/dev/hdc'

2) IIRC, ide-scsi is broken in 2.6?

Last edited by cathectic; 08-15-2005 at 09:38 PM.
 
Old 08-15-2005, 09:45 PM   #15
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 35
Im realy thinking about going back with a previous firmware version ...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CD-Rom reads/copies files slow. RoaCh Of DisCor Linux - Hardware 3 12-08-2004 11:49 AM
Debian sarge DVD-rom incredibly slow kikiloizo Linux - Hardware 0 12-04-2004 12:48 PM
DVD-ROM/CD-ROM unable to recognize debain boot CD gottfried Linux - Newbie 2 01-20-2004 12:39 PM
how to add cd-rom, dvd-rom, floppy, hard disk icons on gnome desktop? spyghost Linux - Software 6 09-21-2003 05:44 PM
DVD-ROM not detected CD-RW mistaken as CD-ROM Device DarkXtar Slackware 21 06-02-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration