Re: Problem with hdparam



On 10 Apr 2008 at 19:06, Mark Berry wrote:
I'm trying to use the -k (or -K) switch to hdparam, which is meant to
keep settings after a restart.

But if I do
hdparam -k1 /dev/hda
and then reboot, calling
hdparam -k /dev/hda
to find the "keep settings" status shows that it's now turned itself off
again!

Can anyone explain what's going on?

First up, the program is called hdparm, not hdparam.

As to your problem, you're misunderstanding what the -k and -K flags do:
they preserve certain settings (dmu options for -k, and APWSXZ options
for -K), but only across soft resets (e.g. if the IDE bus gets reset as
part of an error recovery sequence) - there's no reason to expect the
flags to preserve anything across a reboot.

.



Relevant Pages

  • Re: Problem with hdparam
    ... keep settings after a restart. ... hdparam -k1 /dev/hda ... but only across soft resets (e.g. if the IDE bus gets reset as ... flags to preserve anything across a reboot. ...
    (comp.lang.c)
  • Re: Virus?
    ... >years using windows 98 SE. ... >It suddenly would only boot in safe mode for no apparent reason. ... Performed a step by step reboot and the ... Rebooted and checked the BIOS settings again ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: Update of Windows Update fails with error 0x80070005
    ... Do a reboot again. ... Then check if you can start and stop the Automatic Updates service ... What are the settings (registry ...
    (microsoft.public.windowsupdate)
  • Virus?
    ... years using windows 98 SE. ... It suddenly would only boot in safe mode for no apparent reason. ... Performed a step by step reboot and the ... Rebooted and checked the BIOS settings again ...
    (comp.sys.ibm.pc.hardware.chips)
  • Re: Server is working but unable to logon by any means
    ... I changed the registry settings back to original settings and rebooted after ... So I've rebooted the server with no changes done at all. ... Safe Mode is not working - same issue it will not display logon screen ... difference after reboot. ...
    (microsoft.public.windows.server.general)