disable dma on scsi emulated ide secondry-slave
Hi.
my system halts when mounting my 2nd cd-wr drive (samsung ide drive with scsi emulation parameter sent to kernel by grub) from reading other threads on this site i believe it is because of corruption dureing dma (direct memory access) how do i disable it ???? i cannot refere to it as hdd, (because of scsi) and i know it has a symbolic link /dev/cdrom1. i dont know how to find out what the link points to. anyway, how do i disable dma for this drive only ??? thankyou. |
do you know what ide channel that cd is on? hdb or hdc, etc.
as root: hdparm -d0 /dev/hdX where X is b, c, d, etc... also check if you enable dma in any scripts on start up or what not and delete that line if there is. for redhat, a common place to enable dma manually is /etc/rc.d/rc.local. and maybe post your grub.conf file. |
the drive WOULD be hdd (secondry slave)
BUT.. because of scsi emulation is cannot be accessed as ide anymore. and therefore it is accessed at /dev/scd0 (scsi drive) i cannot turn dma off with the usual method of hdpram -d 0 /dev/scd0 because. i get the error message hdpram does not suppord scsi. so, my question is, what is the usual methos of turning offf dma for scsi devices ? |
and my grub.conf file has a hdd=ide-scsi in the kernel parameter, (scsi emulation on an ide device)
|
no, dma access is still uses /dev/hdX. that's what you want to use for hdparm. scdX is not hdparm accessible. seriously.
hdparm -d0 /dev/hdd i turn on dma in my /etc/rc.d/rc.local for my scsi emulated cdrw (hdb) and dvdrom (hdc). Code:
[root prompt]# hdparm -I /dev/hdc the line in my grub.conf: Code:
kernel /boot/vmlinuz-XXXXXXXXX ro root=/dev/hda11 hdb=ide-scsi hdc=ide-scsi |
EXCELENT !!!!
i can now mount cd's on my faster drive without fearing a freeze. thanX ThanKs for the Help :) |
Quote:
|
dma is on on all devices by defualt on mv redhat 9 install.
as far as i now, i cannot find and reference to dma in any of the usual startup scripts. but i have added the code to turn dma off on hdd in the last script rc.local just incase. |
All times are GMT -5. The time now is 09:57 PM. |