Enable dma on ide drives in linux

From CPanelDirect

Jump to: navigation, search

The command hdparm on linux can be used to enable DMA on drives. A drive should have DMA enabled otherwise it will be very slow. To see if its enabled run

hdparm /dev/hda

Where hda is the main drive.

For example:

hdparm /dev/hda

/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 19457/255/63, sectors = 312581808, start = 0

How To Enable DMA

If using_dma shows off enable it with

hdparm -d1 /dev/hda

It will output

hdparm -d1 /dev/hda

/dev/hda:
 setting using_dma to 1 (on)
 using_dma    =  1 (on)
Personal tools