Page 1 of 1

HDparm

Posted: Wed May 07, 2003 10:56 am
by Ghost [PX]
I dug up some stuff of the net, and I found how to enable UDMA 100 using HDparm.


list of types
hdparm -X33 -> MDMA 1 13.3MB/sec
hdparm -X34 -> MDMA 2 16.6MB/sec
hdparm -X64 -> UDMA 0 (ATA16) 16.7MB/sec
hdparm -X65 -> UDMA 1 (ATA 25) 25MB/sec
hdparm -X66 -> UDMA 2 (ATA 33) 33MB/sec
hdparm -X67 -> UDMA 3 (ATA 44) 44.4MB/sec
hdparm -X68 -> UDMA 4 (ATA 66) 66MB/sec
hdparm -X69 -> UDMA 5 (ATA 100)100MB/sec
make sure your bios has UDMA enabled

Now, if I can just find how to add this to scripts.

Howto make a script

Posted: Wed May 07, 2003 11:03 am
by [PX]Kal Bob
nano /usr/bin/harddisk-script

hdparm -d1 -X69 -c3 -M16 /dev/hda

Save this file.

then:

chmod o+x /usr/bin/harddisk-script

then at the any terminal

harddisk-script

that will run the script.

Posted: Wed May 07, 2003 11:50 am
by Ghost [PX]
There are a few more args than just those that should be added to the command which will improve performance (which I am still looking into). Thanks for the scripting though. Do you have any idea as to how to add that to the start-up?