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