On Mon, 22 Sep 2003 16:06:19 +0200
[EMAIL PROTECTED] wrote:
>
> I believe:
>
>
> - When you boot up, hdparm is run with your parameters from the
> /etc/init.d/hdparm script.
> - Then you make your manual changes, including the 'kepsettings' flag.
> - Then you do a shutdown
> - At shutdown, the hdparm 'service' is run with the 'stop' parameter.
> - The hdparm stop will reset all flags to 0 (zero) and your manually set
> 'keepsettings' is lost.
>
> (Though I may be wrong. ;-)
Ok, here's some output. ;)
xerxes root # hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 1 (on)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14946/255/63, sectors = 240121728, start = 0
[note: i'm assuming this next bit is what happens during a reboot - i.e. the
service is stopped, then restarted next bootup]
xerxes root # /etc/init.d/hdparm restart
* WARNING: you are stopping a boot service.
* Stopping hdparm... [ ok ]
* Starting hdparm...
* Running hdparm on disc0... [ ok ]
* Running hdparm on cdrom0... [ ok ]
* Running hdparm on cdrom1... [ ok ]
xerxes root # hdparm /dev/hda
/dev/hda:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 1 (on)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14946/255/63, sectors = 240121728, start = 0
So it appears that hdparm isn't what is resetting the keepsettings flag, so what is?
:oS
--
[EMAIL PROTECTED] mailing list