Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a western digital special edition hard drive with an 8 meg buffer. these are the results i get when i -t -T it....
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.23 seconds =556.52 MB/sec
Timing buffered disk reads: 64 MB in 12.64 seconds = 5.06 MB/sec
when i try to turn dma on...
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off)
I am also using redhat 7.3. I looked in my kernel and it seems that all the dma related stuff is turned on. Can somone please tell me what to do. and if its not a problem with my kernel, could it just be an incompatable drive? BTW, i looked in windows and my HD is using DMA5. Thanks in advance.
See that little '*' infront of the udma5, that's what the drive is running at... but that's weird that the parm is so slow, what's the rpm and size of this monster? Also, is it hooked up to a normal IDE controller or an ata100 controller? Also, do you have it hooked up with an ata 80wire cable or just the normal 48?
Its reading off of that cache at a ridiculous fast speed, but that seek read needs work... even still, if the drive is huge, say 80Gb+, its just hard to get around that.
7200rpm 8.9 ms seek time and its a 100 gig. But the linux partition is only og 50 gigs of it. This drive IS insanely fast. Thats why i got it. I has an 8 meg buffer as i said. I dont think its on a bad cable because im using the ones that came with the board. Also, i dont know if i said this, windows picks it up as UDMA5. Also, it may have the * because i used -X69 just to see what the drive would do, but i still cant enable dma...anyone have any ideas?
just so you know what its doing...
if i go to UNRAR something or burn a cd, or transfer files over a network, it will go for like 5 seconds, then freeze for 5 seconds, mouse and music stop...then it will go for 5, freeze for 5, etc. This is obviously beyond annoying.
Maybe a stupid question but it is here -
Are you root? /sbin/hdparm -d1 /dev/hda also you might want to use -X flag but before doing so read the man hdparm
Quote:
-X Set the IDE transfer mode for newer (E)IDE/ATA2 drives. This is typically used in combination with -d1
when enabling DMA to/from a drive on a supported interface chipset, where -X34 is used to select multi-
word DMA mode2 transfers. With systems which support UltraDMA burst timings, -X66 is used to select
UltraDMA mode2 transfers (you'll need to prepare the chipset for UltraDMA beforehand). Apart from that,
use of this flag is seldom necessary since most/all modern IDE drives default to their fastest PIO
transfer mode at power-on. Fiddling with this can be both needless and risky. On drives which support
alternate transfer modes, -X can be used to switch the mode of the drive only. Prior to changing the
transfer mode, the IDE interface should be jumpered or programmed (see -p flag) for the new mode setting
to prevent loss and/or corruption of data. Use this with extreme caution! For the PIO (Programmed
Input/Output) transfer modes used by Linux, this value is simply the desired PIO mode number plus 8.
Thus, a value of 09 sets PIO mode1, 10 enables PIO mode2, and 11 selects PIO mode3. Setting 00 restores
the drive's "default" PIO mode, and 01 disables IORDY. For multiword DMA, the value used is the desired
DMA mode number plus 32. for UltraDMA, the value is the desired UltraDMA mode number plus 64.
yes i am root, and yes i sent the X already. Beleive me, i did read the manual and i have had many people who are much more knoweldgeabe than i try it. I did state somewhere in this thread that i tried the -X69 and it set something to UDMA5 however, i still cant enable dma. Also, i set the IO mode from 16 to 32, that helped a little. I can change anything else except for the -d1. I am on root, and i did do the -X69....im at a loss...no one can seem to figure this one out...Also, i went into the kernel config and all the geenric dma stuff was on...I dont know what else to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.