Problem with hdparam

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark Berry

    Problem with hdparam

    Hi,

    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?

    Very many thanks in advance!

    MJB
  • Walter Roberson

    #2
    Re: Problem with hdparam

    In article <ftloga$mmk$1@a ioe.org>, Mark Berry <nospam@nospam. comwrote:
    >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?
    Not a clue. Which section of the C which C standard describes
    hdparam ?

    When I check around, hdparam seems more likely to be a Linux
    utility, not a C library call. If so and I haven't merely had
    a major memory lapse about what is in the C library, you would
    be better checking a forum devoted to your brand of Linux.
    --
    "After all, what problems has intellectualism ever solved?"
    -- Robert Gilman

    Comment

    • Kenneth Brody

      #3
      Re: Problem with hdparam

      Mark Berry wrote:
      >
      Hi,
      >
      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?
      Yes. There's an error on line 42.

      --
      +-------------------------+--------------------+-----------------------+
      | Kenneth J. Brody | www.hvcomputer.com | #include |
      | kenbrody/at\spamcop.net | www.fptech.com | <std_disclaimer .h|
      +-------------------------+--------------------+-----------------------+
      Don't e-mail me at: <mailto:ThisIsA SpamTrap@gmail. com>

      Comment

      • Antoninus Twink

        #4
        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 misunderstandin g 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.

        Comment

        • Mark Berry

          #5
          Re: Problem with hdparam

          Aha, that explains it! It's slightly annoying, though...

          Thanks to everyone who answered.


          Antoninus Twink wrote:
          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 misunderstandin g 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.
          >

          Comment

          • Default User

            #6
            Re: Problem with hdparam - TPA

            Mark Berry wrote:
            Aha, that explains it! It's slightly annoying, though...
            Please don't top-post. Your replies belong following or interspersed
            with properly trimmed quotes. See the majority of other posts in the
            newsgroup, or:
            <http://www.caliburn.nl/topposting.html >

            Comment

            • Richard Tobin

              #7
              Re: Problem with hdparam - TPA

              In article <667na1F2ivefgU 1@mid.individua l.net>,
              Default User <defaultuserbr@ yahoo.comwrote:
              >Please don't top-post. Your replies belong following or interspersed
              >with properly trimmed quotes.
              Though this is good practice during a conversation, I see no reason
              to apply it rigidly when thanking someone for an explanation.

              -- Richard
              --
              :wq

              Comment

              • Kenny McCormack

                #8
                Re: Problem with hdparam - TPA

                In article <ftm9jh$22ob$1@ pc-news.cogsci.ed. ac.uk>,
                Richard Tobin <richard@cogsci .ed.ac.ukwrote:
                >In article <667na1F2ivefgU 1@mid.individua l.net>,
                >Default User <defaultuserbr@ yahoo.comwrote:
                >
                >>Please don't top-post. Your replies belong following or interspersed
                >>with properly trimmed quotes.
                >
                >Though this is good practice during a conversation, I see no reason
                >to apply it rigidly when thanking someone for an explanation.
                Um, Default Loser doesn't care about such sublties.
                He just sees an opportunity to do one of his beloved TPAs, and boom!

                Comment

                • Richard

                  #9
                  Re: Problem with hdparam - TPA

                  "Default User" <defaultuserbr@ yahoo.comwrites :
                  Mark Berry wrote:
                  >
                  >Aha, that explains it! It's slightly annoying, though...
                  >
                  Please don't top-post. Your replies belong following or interspersed
                  with properly trimmed quotes. See the majority of other posts in the
                  newsgroup, or:
                  <http://www.caliburn.nl/topposting.html >
                  Oh, for goodness sake. It was a one liner thank you. Grow up.

                  Comment

                  • Noob

                    #10
                    Re: Problem with hdparam - TPA

                    Kenny McCormack wrote:
                    X doesn't care about such sublties.
                    ITYM subtilties or subtleties

                    Comment

                    • Kenny McCormack

                      #11
                      Re: Problem with hdparam - TPA

                      In article <47ff8732$0$120 81$426a74cc@new s.free.fr>,
                      Noob <root@localhost wrote:
                      >Kenny McCormack wrote:
                      >
                      >X doesn't care about such sublties.
                      >
                      >ITYM subtilties or subtleties
                      Probably so. But I definitely meant Default Loser, not X.

                      Comment

                      • Richard Harter

                        #12
                        Re: Problem with hdparam - TPA

                        On Fri, 11 Apr 2008 19:34:39 +0000, Richard Heathfield
                        <rjh@see.sig.in validwrote:
                        >Default User said:
                        >
                        >Richard Harter wrote:
                        >>
                        >>On 11 Apr 2008 15:53:31 GMT, "Default User"
                        >><defaultuserb r@yahoo.comwrot e:
                        >>
                        >There's no reason for the person to quote the whole message to post
                        >a thanks. He could trim all but a small slice to establish
                        >identity, then correctly post under that.
                        >>>
                        >>He could have, but he chose not to, just as you could choose not
                        >>to be a bandwidth wasting public nuisance but instead choose to
                        >>be one.
                        >>
                        >You are entitled to your opinion. You could also have, long ago, put in
                        >a filter for the "-TPA" that I so thoughtfully add to the subject line.
                        As though I should know or care what -TPA might signify.
                        >>
                        >*plonk*
                        All things considered, in this case being plonked might be
                        considered to be an honor. In any case it's quite alright with
                        me. Quite as an aside, and without any application to the
                        current thread, many consider those who publicly announce that
                        they are plonking someone as being overly full of themselves, as
                        though their indignation was a matter of concern to the world.
                        No doubt it is no such thing, but rather merely a matter of lack
                        of self control and the inability to refrain from spewing
                        emotional reactions into the internet.
                        >
                        >Of course you're right that the top-poster shouldn't have done it - he
                        >should have snipped and context-posted. Nevertheless, killfiling
                        >reasonable people like Richard Harter rather than listening to what they
                        >have to say about the subject is not itself a reasonable act. Neither is
                        >it reasonable that a significant fraction of your contributions to this
                        >newsgroup seem to consist entirely of net-copping.
                        >
                        >I suggest that you look through your Sent directory at, say, the last 100
                        >articles you've posted to this group, and just work out what percentage of
                        >them contain actual technical content. You may be alarmed to discover just
                        >how low the number is, and just how high is your proportion of net-nit
                        >articles.
                        >
                        >If you are, as I continue to believe, a reasonable fellow, you might not
                        >follow the above advice but you'll at least stop to think about it.
                        >
                        >Alternativel y, you could always plonk me, too. There is no dishonour in
                        >sharing a killfile with Richard Harter.
                        I thank you for your kind words. To be fair, I dare say "default
                        user" doesn't recognize that people might perceive his
                        "correction s" as being an annoyance - in part because he
                        killfiles anyone who might suggest such a thing. Also, to be
                        fair, I hadn't rapped his knuckles before so I can't blame him
                        for being upset.

                        That said, I am quite done with the subject. Unlike some I was
                        not put on this Earth to admonish the usenet pecadillos of
                        others. If I do so from time to time, it is merely the
                        expression of exasperation. It is a fault; I own it. I know
                        quite well net nuisances will be what they will be and that
                        casting animadversions is a seed that will bear no fruit.

                        Also unlike some, I have no killfiles. If "default user" chooses
                        to apologize, I will cheerfully accept his apologies.


                        Richard Harter, cri@tiac.net
                        http://home.tiac.net/~cri, http://www.varinoma.com
                        Save the Earth now!!
                        It's the only planet with chocolate.

                        Comment

                        • Richard Heathfield

                          #13
                          Re: Problem with hdparam - TPA

                          Default User said:

                          <snip>
                          I don't see any more reason this time than the last that you
                          complained.
                          <shrug>
                          Then I came up with a way for you to not be bothered, which
                          I see you aren't even using.
                          Actually, I do have a filter set up for TPA. My filters are only on
                          *sometimes*, though - those who, like me, use KNode will perhaps
                          understand this better than others. KNode includes filtered articles in
                          its counts, so you don't *know* that you've read everything you want to
                          and not read everything you don't want to until you've turned off the
                          filter and eyeballed the scores of the remaining articles. Not ideal, but
                          there you are. Anyway, when I saw an article by Richard Harter in the
                          'unread' pile, naturally I wanted to read it - so I did.
                          >Alternativel y, you could always plonk me, too. There is no dishonour
                          >in sharing a killfile with Richard Harter.
                          >
                          Are you to going to rude and insulting, like him?
                          That sentence no verb. I don't agree that Richard Harter was either
                          particularly rude or particularly insulting (although tactful he was
                          *not*). I don't completely agree with his position on net-copping, but he
                          does have a point, and he was expressing that point. I think he was
                          uncharitable to say that you are a bandwidth-wasting public nuisance. But
                          had he said (what I suspect he actually meant) that a large proportion of
                          your articles are a bandwidth-wasting public nuisance, I'd have agreed.
                          If so, then you will plonked.
                          Why should I care about that? You hardly ever provide technical corrections
                          to my articles, so of what value is it to me that you read my articles?
                          Why, in fact, should your plonking me bother me in the slightest? Why, in
                          fact, should it bother *anyone*?

                          Okay, so you've been silly enough to plonk Richard Harter. I reckon that's
                          going to cost you more knowledge than it will cost him.

                          If not, I don't see why I would. I believe you are unfairly
                          maligning my reasons for plonking him.
                          And I believe you should not net-cop people unless you are, at the very
                          least, also in a position to provide them with good technical help.

                          --
                          Richard Heathfield <http://www.cpax.org.uk >
                          Email: -http://www. +rjh@
                          Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
                          "Usenet is a strange place" - dmr 29 July 1999

                          Comment

                          • Richard

                            #14
                            Re: Problem with hdparam - TPA

                            "Default User" <defaultuserbr@ yahoo.comwrites :
                            Richard Harter wrote:
                            >
                            >On 11 Apr 2008 15:53:31 GMT, "Default User"
                            ><defaultuserbr @yahoo.comwrote :
                            >
                            There's no reason for the person to quote the whole message to post
                            a thanks. He could trim all but a small slice to establish
                            identity, then correctly post under that.
                            >>
                            >He could have, but he chose not to, just as you could choose not
                            >to be a bandwidth wasting public nuisance but instead choose to
                            >be one.
                            >
                            You are entitled to your opinion. You could also have, long ago, put in
                            a filter for the "-TPA" that I so thoughtfully add to the subject line.
                            >
                            *plonk*
                            >
                            >
                            >
                            Brian
                            TPA? LOL. Who do you think you are? Pedantic busy body.

                            Comment

                            • Richard

                              #15
                              Re: Problem with hdparam - TPA

                              Richard Heathfield <rjh@see.sig.in validwrites:
                              Default User said:
                              >
                              >Richard Harter wrote:
                              >>
                              >>On 11 Apr 2008 15:53:31 GMT, "Default User"
                              >><defaultuserb r@yahoo.comwrot e:
                              >>
                              >There's no reason for the person to quote the whole message to post
                              >a thanks. He could trim all but a small slice to establish
                              >identity, then correctly post under that.
                              >>>
                              >>He could have, but he chose not to, just as you could choose not
                              >>to be a bandwidth wasting public nuisance but instead choose to
                              >>be one.
                              >>
                              >You are entitled to your opinion. You could also have, long ago, put in
                              >a filter for the "-TPA" that I so thoughtfully add to the subject line.
                              >>
                              >*plonk*
                              >
                              Of course you're right that the top-poster shouldn't have done it - he
                              should have snipped and context-posted. Nevertheless, killfiling
                              reasonable people like Richard Harter rather than listening to what they
                              have to say about the subject is not itself a reasonable act. Neither is
                              it reasonable that a significant fraction of your contributions to this
                              newsgroup seem to consist entirely of net-copping.
                              Significant being a euphemism for at least 90% I hope.

                              All Brian does is post "me toos" and tell people off for posting
                              styles. Possibly more useless than Chuck. Twink and Kenny had his number
                              a long time ago.

                              Comment

                              Working...