Results 1 to 6 of 6

Thread: hard drive spin down - /etc/hdparm.conf

  1. #1
    Join Date
    Jun 2008
    Beans
    Hidden!

    hard drive spin down - /etc/hdparm.conf

    I am running a file server on my home network (nfs and samba). It has 2 drives, one for storage that is shared and one for the OS. The shares are not accessed all that frequently so I would like to be able to have the storage drive spin down whenever possible to preserve the life of the drive.

    I found the /etc/hdparm.conf file. Would this be the best way to accomplish this? I heard it can be dangerous but idk why...

    Also a passing thought... Will samba/nfs/something else be randomly accessing the drive all the time? I don't want it to constantly be spinning up and down, that would wear it out even faster.
    "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
    -- Albert Einstein

  2. #2
    Join Date
    Jun 2008
    Beans
    Hidden!

    Re: hard drive spin down - /etc/hdparm.conf

    Also, is it possible that the drive spins down on its own already? Maybe there is already a setting in the OS or is handled by the drive itself?
    "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
    -- Albert Einstein

  3. #3
    Join Date
    Jan 2011
    Beans
    1

    Re: hard drive spin down - /etc/hdparm.conf

    BUMP. I would like to know how to do this as well. Seeing as this is a high google search return, I feel this should be answered.

  4. #4
    Join Date
    Sep 2010
    Beans
    898

    Re: hard drive spin down - /etc/hdparm.conf

    Here's an old example I've used. It causes device /dev/hda to spin down after 20 minutes of inactivity. The values are documented in "man hdparm" (see description of -S option).

    Code:
    /dev/hda {
    spindown_time = 240
    }

  5. #5
    Join Date
    Jan 2010
    Beans
    62

    Re: hard drive spin down - /etc/hdparm.conf

    Quote Originally Posted by Zenze View Post
    Will Ext4/Samba/something else be randomly accessing the drive all the time? I don't want it to constantly be spinning up and down, that would wear it out even faster.
    I'd like to understand if this is the case too. I've also read that ext4 writes journal entries to each drive every 5 seconds which would impact their ability to sleep. Can anyone clarify?

  6. #6
    Join Date
    Jan 2010
    Beans
    62

    Re: hard drive spin down - /etc/hdparm.conf

    Quote Originally Posted by ThePol1 View Post
    I'd like to understand if this is the case too. I've also read that ext4 writes journal entries to each drive every 5 seconds which would impact their ability to sleep. Can anyone clarify?
    Bump

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •