hdparm and Linpus Linux

Discussion in 'Linux' started by tomt, Dec 31, 2008.

  1. tomt

    tomt

    Joined:
    Nov 28, 2008
    Messages:
    170
    Likes Received:
    0
    HI
    I've installed hdparm via add/remove programs within Linpus.

    It didn't create a /etc/hdparm.conf
    So I manually created the file and added the following to it:

    command_line {
    hdparm -B 254 /dev/sda
    }

    When I reboot I still get the faint clicking.
    If run the command from a terminal the clicking stops, which make me think that /etc/hdparm.conf isn't being read on start up.

    How do I fix that ??

    Thanks :)
     
    tomt, Dec 31, 2008
    #1
  2. tomt

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    hdparm are for ata drives. Look at sdparm for sata drives.

    Cheers.
     
    rbil, Dec 31, 2008
    #2
  3. tomt

    tomt

    Joined:
    Nov 28, 2008
    Messages:
    170
    Likes Received:
    0
    I thought the acer was a pata drive ??

    Reading on this forum, there are lots of suggestions to use hdparm.

    So is that not right ??

    Thanks
     
    tomt, Jan 1, 2009
    #3
  4. tomt

    melhiore

    Joined:
    Sep 3, 2008
    Messages:
    1,503
    Likes Received:
    0
    Location:
    Bolton, Lancashire, UK
    rbil is right. AA1 uses SATA drive and sdparm is the command you need.
     
    melhiore, Jan 1, 2009
    #4
  5. tomt

    hillsoft

    Joined:
    Nov 30, 2008
    Messages:
    89
    Likes Received:
    0
    I believe hdparm works fine with sata drives if the kernel has the "ATA passthrough" patch added.

    I believe most of the recent kernels have it patched.

    hdparm works fine for me on my AA1. It has worked for me with the stock 8.04.1 Linux kernels, and sickboy's.

    Since it works for the original poster when he manually types it in, his system must not be checking the hdparm.conf file on startup.

    I am using Ubuntu 8.04.1 and it may be when installing hdparm it gets added to the system setup. If using Linpus or other distros you may have to set it to start on boot manually.
     
    hillsoft, Jan 1, 2009
    #5
  6. tomt

    tomt

    Joined:
    Nov 28, 2008
    Messages:
    170
    Likes Received:
    0
    Thanks for the advice..

    So should I remove hdparm from Linpus and install sdparm or should I leave it installed and set it start on boot ??
    If I need to set it to start on boot how do I do that ??

    I've installed Ubuntu as a dual boot and hdparm starts on boot with that and seems to be working fine. I'm using Sickboy's kernel..
    again should I stick with hdparm or install sdparm ?

    Thanks
     
    tomt, Jan 1, 2009
    #6
  7. tomt

    hillsoft

    Joined:
    Nov 30, 2008
    Messages:
    89
    Likes Received:
    0
    It hdparm works (which it seems to for you) just set it to start on bootup.

    Been awhile since I played with RedHat or Fedora, but I think you can edit /etc/rc.d/rc.local and add the call to hdparm there with the parameters you want.

    Then it should start on bootup. Let me know if that doesn't work and I will check into it further
     
    hillsoft, Jan 1, 2009
    #7
  8. tomt

    tomt

    Joined:
    Nov 28, 2008
    Messages:
    170
    Likes Received:
    0
    Thanks.

    I'll take a look at that and will let you know how I get on !!
     
    tomt, Jan 1, 2009
    #8
  9. tomt

    rbil

    Joined:
    Aug 14, 2008
    Messages:
    730
    Likes Received:
    0
    Location:
    The Wet Coast, Canada
    sdparm comes installed on Linpus in the /sbin directory.

    Cheers.
     
    rbil, Jan 1, 2009
    #9
  10. tomt

    tomt

    Joined:
    Nov 28, 2008
    Messages:
    170
    Likes Received:
    0
    So how do I configure sdparm ?? is it the same as hdparm ? (sdparm -B 254 /dev/sda ?? )

    How do I get this to start on boot up ?

    Thanks :)
     
    tomt, Jan 2, 2009
    #10
  11. tomt

    melhiore

    Joined:
    Sep 3, 2008
    Messages:
    1,503
    Likes Received:
    0
    Location:
    Bolton, Lancashire, UK
    Code:
    man sdparm
     
    melhiore, Jan 2, 2009
    #11
  12. tomt

    tomt

    Joined:
    Nov 28, 2008
    Messages:
    170
    Likes Received:
    0
    :eek: Thanks :)

    I was hoping someone who has done this before could offer some advice.. I'd hate to damage this nice netboot !!
     
    tomt, Jan 2, 2009
    #12
  13. tomt

    hillsoft

    Joined:
    Nov 30, 2008
    Messages:
    89
    Likes Received:
    0
    Do you have an /etc/rc.d/rc.local file like I had mentioned previously?

    If so edit it and put in a call to hdparm or sdparm.

    For hdparm the added line to rc.local would be

    hdparm -B 254 /dev/sda

    You might have to put the full path to hdparm in there though. I don't use linpus so I don't know where it is located. Might be something like

    /sbin/hdparm -B 254 /dev/sda
     
    hillsoft, Jan 2, 2009
    #13
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.