On Wed, 2003-02-12 at 21:30, Tom Brinkman wrote:
> On Wednesday February 12 2003 08:16 pm, ryan wrote:
> > Hi, for the life of me I can't figure out how to enable DMA on my
> > CD burner.  Burning a CD brings my system to a halt and it takes
> > around 10 minutes to copy data from CD to hd.  Any help would be
> > greatly appreciated.
> >
> > Thanks,
> > Ryan
> 
>    What Mandrake version?, do you have 'hdparm' installed? What 
> hardware? Is your cdrw /dev/hdc?   I'll be usin that as an example. 
> 
>  If it's not, install hdparm, then type (as root) 'hdparm -v /dev/hdc' 
> in a terminal and you should see somethin like this
> 
>  tom# hdparm -v /dev/hdc
> /dev/hdc:
>  HDIO_GET_MULTCOUNT failed: Invalid argument
>  IO_support   =  1 (32-bit)
>  unmaskirq    =  1 (on)
>  using_dma    =  1 (on)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    =  8 (on)
>  HDIO_GETGEO failed: Invalid argument
> 
>    Don't worry about "failed: Invalid argument", cd drives don't 
> support these parameters.  What you're concerned about is 
> 'using_dma=1 (on)'    If it's '=0' , then read on, if it's =1, dma is 
> already enabled and you've got some other problem.
> 
>    If it's Mandrake 9.0 or later (I don't remember for 8.x), as root 
> in a terminal,
> 
> cd /etc/sysconfig/
> 
>    then use an editor to uncomment this line in the  'harddisks' file
>    USE_DMA=1   (IOW's remove the  # in front of that line and save the   
>    edited file). Then,
> 
> cp harddisks harddiskhdc
>     
>    If you also have a cdrom on /hdd
> 
> cp harddisks harddiskhdd
> 
>    You can reboot but you don't need to.  You can start dma on your 
> cdrw for this uptime, by (as root) runnin 'hdparm -d1 /dev/hdc'
> (and the same for /hdd if you have one)
> Future boots will have dma enabled by the harddisk* files.
> 
>     Now for the disclaimer:  Some cdroms don't suport dma, or don't do 
> it very well at all.  If this is the situation the problem can go all 
> the way back to the motherboard and/or power supply being the 
> culprit(s).  Afterall, the warning is right there in the harddisks 
> file
> 
> # Set this to 1 to enable DMA. This might cause some
> # data corruption on certain chipset / hard drive
> # combinations. This is used with the "-d" option
> USE_DMA=1
> 
>    But you'll probly be OK ;)
> -- 
>     Tom Brinkman                  Corpus Christi, Texas
> 
> ----
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com

Hi, I'm using 9.0, my drive is a Creative Labs 12/10/32 on /dev/hdc.I've
turned DMA on for this drive by using hdparm and creating a harddiskhdc
file.  However anytime the drive is accessed my CPU usage shoots up to
around 75% (normally I can't hardly get it past 10%) which shouldn't
happen if its using DMA.  I know for a fact the drive supports DMA as
I've had it about 2 years.  There isn't a problem with the drive either
as I booted into windows and burned a CD with the CPU usage never going
above 2%.  I don't recall having this problem when I had 8.2 installed. 
I've also used this drive w/ Debian and it worked fine in there.

Thanks,
Ryan


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to