hdparm.conf
Wenzhuo Zhang
wenzhuo at zhmail.com
Thu Jul 28 23:37:37 UTC 2005
On Thu, Jul 28, 2005 at 07:43:29PM +0200, John Nilsson wrote:
> > CONFIG_IDEDMA_ONLYDISK checked. So, DMA is not enabled for IDE CDROMs.
>
> I didn't get DMA for the disk either. This is what I had to ebable:
>
>
> /dev/hda {
> mult_sect_io = 16
> interrupt_unmask = on
> dma = on
> }
>
> /dev/hdc {
> dma = on
> }
Two possible reasons:
1. The kernel does not support your chipset well.
2. The hdparm init script gets run very early in the sysinit stage, and the ide
drivers haven't been loaded yet; i.e. "Setting disc parameters..." occurs
before "Loading modules...". This problem can be easily resolved by updating
the initrd image to load the required ide drivers first.
$ sudo su -
# cp -p /etc/mkinitrd/modules /etc/mkinitrd/modules.orig
# vi /etc/mkinitrd/modules
and add the following lines to /etc/mkinitrd/modules:
piix
ide-core
ide-cd
ide-disk
ide-generic
Depending on your motherboard chipset, you may have to replace piix with
something relevant.
Then, regenerate the initrd image:
# cp -p /boot/initrd.img-2.6.10-5-686 /boot/initrd.img-2.6.10-5-686.orig
# mkinitrd -o /boot/initrd.img-2.6.10-5-686 2.6.10-5-686
Hope it helps,
Wenzhuo
More information about the ubuntu-users
mailing list