Douglas J Hunley wrote:
> #!/bin/sh
# -q  = disable output unless an error occurs
# -d1 = use DMA
# -m8 = read/write 8 sectors per I/O request
# -u1 = unmask other interrupts during disk interrupt processing,
#       improving overall system responsiveness on IDE-based systems
# -W1 = Enable IDE write-behind caching
> for d in /proc/ide/hd*
> do
>  if [ `cat $d/media` = 'disk' ] ; then
>     hdparm -qm8 -qu1 -qd1 -qW1 /dev/${d##*/}
>   fi
>   if [ `cat $d/media` = 'cdrom' ] ; then
> 
>     hdparm -qu1 -qd1 /dev/${d##*/}
>   fi
> done


Kurt
-- 
Young men think old men are fools; but old men know young men are fools.
                -- George Chapman
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to