What I did :
(my ide doesn't support DMA)
To run in 32bit mode instead of 16:
I created an exec. file /etc/rc.d/init.d/disk32
contains:
hdparm -c 1 /dev/hda
hdparm -c 1 /dev/hdb
(have 2 hd's)
Selected it to start-up at boot.
Eric MC
Chmouel Boudjnah wrote:
>
> "J . A . Magallon" <[EMAIL PROTECTED]> writes:
>
> > Hi, cookers.
> >
> > A comment about hdparm package and initscripts.
> > I was looking for a way to do automatically an hdparm at boot. Grep'ing
> > throug init scripts I found some lines in rc.sysinit that do that automatic
> > hdparam at boot for the disks if there is a file named
> > /etc/sysconfig/harddisk{hda,hdb,hdc...}.
> >
> > I could guess the format of the file from what is done in rc.sysinit,
> > but is there any place where it is
> > documented ? Perhaps the hdparm or the initscripts package should include
> > some docs or samples... ro even they are there and I did not found them.
>
> /usr/share/doc/initscripts-5.60/sysconfig.txt:
>
> /etc/sysconfig/harddisks
> These options are used to tune (E)IDE hard drives -
> read the hdparm man page for more information
>
> USE_DMA=1
> Set this to 1 to enable DMA. This might cause some
> data corruption on certain chipset / hard drive
> combinations. USE WITH CAUTION AND BACKUP.
> This is used with the "-d" option
>
> MULTIPLE_IO=16
> Multiple sector I/O. a feature of most modern IDE hard drives,
> permitting the transfer of multiple sectors per I/O interrupt,
> rather than the usual one sector per interrupt. When this feature
> is enabled, it typically reduces operating system overhead for disk
> I/O by 30-50%. On many systems, it also provides increased data
> throughput of anywhere from 5% to 50%. Some drives, however (most
> notably the WD Caviar series), seem to run slower with multiple mode
> enabled. Under rare circumstances, such failures can result in
> massive filesystem corruption. USE WITH CAUTION AND BACKUP.
> This is the sector count for multiple sector I/O - the "-m" option
>
> EIDE_32BIT=3
> (E)IDE 32-bit I/O support (to interface card). USE WITH CAUTION.
>
> LOOKAHEAD=1
> Enable drive read-lookahead (safe)
>
> EXTRA_PARAMS=<anything>
> Add any extra parameters you want to pass to hdparm here.
>
> --
> MandrakeSoft Inc http://www.chmouel.org
> --Chmouel