[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hard drive question



try this remedy

test a speed of your disk

hdparm -Tt /dev/hda

optimize parameters for HDD

hdparm -c1 -d1 -u1 -m16 -A /dev/hda

and test again

hdparm -Tt /dev/hda

if it worked for you add a file into /etc/init.d as startup script

#! /bin/sh

set -e

case "$1" in
  start)
        echo -n "Setting Drive Parameters: "
        /sbin/hdparm -q -qc1 -qd1 -qX66 -qm1 -qu1 /dev/hda
        echo "/dev/hda"
        ;;
  *)
        N=/etc/init.d/$NAME
        echo "Usage: $N {start}" >&2
        exit 1
        ;;
esac

exit 0

and link it from  /etc/rcS.d

ln -s /etc/init.d/hdparm /etc/rcS.d/S01hdparm

Now your system will comeup with optimized setting for you HDD.

In case of my new computer it kicked from 2MB/s to 40MB/s with kernel 2.4.18-bf.



NOTE: kernel should be compiled with support DMA for HDD otherwise you will not
get significant performance improvement for your disk.

Good luck

Andrey


Matthew Daubenspeck wrote:

> > > Which to me shows that it is using ATA100... However:
> >
> > Don't believe that's quite the case.  That is reading what the drive is
> > capable of.  Per the hdparm man page:
> >
> >   -i     Display the identification info that  was  obtained
> >          from the drive at boot time, if available.
> >
> > What does "hdparm /dev/hda" return (that's how the drive is currently
> > configured).
>
> burnt:/home/mellofone# hdparm /dev/hda
>
> /dev/hda:
>  multcount    =  0 (off)
>  I/O support  =  0 (default 16-bit)
>  unmaskirq    =  0 (off)
>  using_dma    =  0 (off)
>  keepsettings =  0 (off)
>  nowerr       =  0 (off)
>  readonly     =  0 (off)
>  readahead    =  8 (on)
>  geometry     = 4865/255/63, sectors = 78165360, start = 0
>  HDIO_GET_BUSSTATE failed: Input/output error
>
> I'm no expert, but that doesn't look good :)
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: