RE: hdparm questions
No, this is not being run on Debian startup. Editing either /etc/default/ hdparm or (I made a) /etc/hdparm.conf has not effect. Where does one fine hwtools? apt-get did not work. How might one add and a script /etc/rc#/hdparm? (Just take one of the other, leave the preambles and simply do hdparm?) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hdparm questions
On Wed, Jan 14, 2004 at 09:47:37AM +0100, David Baron wrote: No, this is not being run on Debian startup. Editing either /etc/default/ hdparm or (I made a) /etc/hdparm.conf has not effect. Where does one fine hwtools? apt-get did not work. How might one add and a script /etc/rc#/hdparm? (Just take one of the other, leave the preambles and simply do hdparm?) The best way to do that would be to make the script in /etc/init.d that looks like this -- CUT -- !#/bin/sh case $1 in start) # your hdparm commands here ;; *) echo Usage: $0 start esac -- CUT -- Call it hdparm or something similar and then symlink to it in the runlevels you wish for it to be run under (2 is the default for most systems). Eg $ ln -s /etc/init.d/hdparm /etc/rc2.d/S20hdparm The name of the link is important here, S specifies the script is to be started and 20 is its prefered start order. -- Cheers, rinmak [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hdparm questions
On Wed, Jan 14, 2004 at 09:47:37AM +0100, David Baron wrote: No, this is not being run on Debian startup. Editing either /etc/default/ hdparm or (I made a) /etc/hdparm.conf has not effect. Where does one fine hwtools? apt-get did not work. How might one add and a script /etc/rc#/hdparm? (Just take one of the other, leave the preambles and simply do hdparm?) Hello David, I find the Debian packages hwtools and hdparm on my Debian cdroms. With hdparm, you can adjust the performance of your hd's and cdrom's. With hwtools, you get the program 'irqtune', allowing you to reorder the priority of your system's irq's; simply running '/usr/sbin/irqtune' will optimize serial line performance (for internet connections) without impairing your IDE-performance. On my private system, I wrote '/etc/init.d/hdparm.sh' containing just a single command: . /etc/default/hdparm.sh ('chown root:root hdparm.sh' 'chmod 0755 hdparm.sh') within '/etc/rcS.d', I set a single calling link: 'ln ../init.d/hdparm.sh S05hdparm.sh' (no stop command required at shutdown) The real shell script 'hdparm.sh' I put into '/etc/default/', in order to have my basic system configuration combined within one directory. The following shows my shell script '/etc/default/hdparm.sh'; (old motherboard with two year old HD's; your optimization may vary): ## (Begin of shell script): # hdparm.sh Tune harddisc + cdrom \wwf 14.5.03 # # This prog should be called early from /etc/rcS.d # Common Params for both HDs /sbin/hdparm -A1 -c1 -d1 -X34 -k1 -m16 -u1 -S192 /dev/hda /dev/hdb # Params for CDROM /sbin/hdparm -c1 -d1 -X34 -k1 -u1 /dev/hdc # Some params briefly explained: # - - - - - - - - - - - - - - - - # -A1 = set drive read-lookahead # -c1 = set IDE 32-bit IO setting # -d1 = set using_dma flag # -X34 = select multiword DMA mode2 # -k1 = keep_settings_over_reset flag # -m16 = set multiple sector count (hdparm -i - MaxMultSect=16) # -u1 = set unmaskirq flag # -S192 = set spindown timeout = 192 * 5 sec == 16 min ## (End of shell script) Good luck Wilko -- Wilko Fokken Education is a man's going Landschaftspolder 67 from cocksure ignorance D-26831 Dollartto thoughtful uncertainty. Tel. 04953-382 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: hdparm questions
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 13 January 2004 11:47 pm, David Baron wrote: No, this is not being run on Debian startup. Editing either /etc/default/ hdparm or (I made a) /etc/hdparm.conf has not effect. Where does one fine hwtools? apt-get did not work. There must be a problem with your system . clos:/home/pabi# apt-get -s install hwtools Reading Package Lists... Done Building Dependency Tree... Done hwtools is already the newest version. hwtools has been a package for quite some time, this output is from a Testing system. '/etc/init.d/hwtools' is a good place to put 'hdparm' comands, afaik. How might one add and a script /etc/rc#/hdparm? (Just take one of the other, leave the preambles and simply do hdparm?) - -- Greg Madden Debian GNU/Linux -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFABhZYk7rtxKWZzGsRAvj4AJ0Yp//1+NET78b1dpex8pBveNCOHwCfctRj 7PXgXRTAp3Lm6hImMEIccIU= =v28L -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]