How do I automatically spin down the hard drive to save power?

I have searched for this in the wiki and the forums, so if I've missed something, please point it out to me, but is there a way to have Arch automatically spin down hard drives and/or suspend the machine to ram to save power? I'm not really interested in the full suspend to disk because I don't think my BIOS will do a wake on lan, and I'm trying to run a home server here.
Anyway, I'm just looking for ways to save on my electricity usage. Any ideas?

If the HD is just used for storage, hdparm is your friend. with hdparm -S you can set the timeout until the disk spins down.
If its a system disk hdparm will work too, but the HD will spin up after 2 secs (or less, depending on your HD) again because of the OS accessing the disk (logs, journal etc). Laptop-mode-tools works very well on laptops because it automatically sets the journal-rewrite time, file-write-cache size and the time when new data gets written to the disk. If you are not reading anything or anything thats not in the cache, it works very well - but thats on laptops. I tried using laptop-mode-tools on my desktop, but without luck (yes, it detected that i wasnt using a laptop).
You could try using cpudyn with the cpu-idling stuff disabled (option  -i 0). I know it has a feature that spins down a specific HD after a certain amount of time. But i don't know for sure if cpudyn automatically remounts the HD, so that it caches all the write activity (like laptop-mode-tools).
Good luck.

Similar Messages

  • MANUALLY spinning down the hard drive/s?

    I have a early 2004 G5.
    I want to know if there is a way to MANUALLY (as is on demand) spin down the hard drive/s WITHOUT putting the computer to sleep.
    As I recall this was a piece of functionality that was in the old pre OSX operating system but as far as we can see is no longer available (besides checking the "put the hard disk to sleep when possible" box in the Energy Saver system pref).
    THX
    RTM

    Hi RTM,
    All I can think of only comes close to your query: spinning them down sooner than the default ten minutes that you have to wait for when checking the "put the hard disk to sleep when possible" box in Energy Saver.
    Set it to one minute, by running this Terminal command:
    *sudo pmset -a disksleep 1*
    (set it back to default ten minutes with this command:
    *sudo pmset -a disksleep 10* )
    Note that spinning HDs up and down and up and down all the time shortens their life.
    I guess you need to spin them down as soon as possible because they dont wake up often in the way you use your Mac?

  • How can I erase (or remove) the hard drive from a dead Time Capsule?

    How can I erase (or remove) the hard drive from a dead Time Capsule?

    I found this having had the same problem...
    http://forums.macrumors.com/showthread.php?t=553818
    Having removed the hard drive I'm finding I can't reformat it. I manage to mount the HD but Disk Utility crashes when trying to format (HD attached to Mac via Newer Tech. SATA cables to USB) and causes what I think is a kernal panic on my Mac which hard crashes. I see 3 partitions when attempting to mount one of which is AFP. Anyone got any ideas about how to do this? I've dug around but the only progress I've made is to note others have had to work around ACL's when replacing the logic board of the TC. Not sure if this even relates to the problem. However the tool for doing this seems to have been removed from SL. (Forum references to this procedure all relate to 10.5).

  • How to install archlinux2008.6 from the hard drive?

    How to install archlinux2008_6 by archlinux2008_6_i686.iso in  hard drive?
    i get the booting files(archlive.img,vmlinuz26) in the archlinux2008_6_i686.iso and put them in c:\
    in the grub command mode the use of these code:
    root   (hd0,0)
    kernel (hd0,0)/vmlinuz26
    initrd (hd0,0)/archlive.img
    boot
    i get those from : http://blog.chinaunix.net/u/31909/showart_1121360.html
    but  it stopped  , some  code  printing on the screen...................it can not continue..
    from the  google  i  find :"this method must use  the "vmlinz "and the "initrd.img",this files is from  archlinux2008.03.iso
    i don't understand .......
    i must download the archlinux2008.03.iso?...........it's too much  trouble.
    How to install archlinux2008.6 from the hard drive? or  who could give me the two files (the "vmlinz "and the "initrd.img")  from  archlinux2008.03.iso?
    e mail: [email protected]
    THS.
    --------this is my  topic for the first time in english, I hope that you can  know what i said ~~~
    Last edited by 自学linux (2008-08-29 03:14:54)

    自学linux wrote:
    http://blog.chinaunix.net/u/31909/showart_1121360.html
    A waste of CD-ROM...........,in china, many people install linux  just  by iso,don't burn the iso,
    could you give me the two files (the "vmlinz "and the "initrd.img") in  archlinux2008.03.iso, those  can't  find  in  archlinux2008.06.iso
    my email :[email protected]
    Do you have a USB stick you could copy the image to? Where I live, a CD costs $0.50 at most. To put that into perspective. A coffee costs a $1.00. Either a CD costs a lot more than a coffee where you live or are you telling me you'd rather get a lot of grey hair than buy half a coffee?
    Sorry I can't be of much help. I don't know how to do this method of installation. If you're desperate, you could try making an extra partition, and trying something with that. Take a look at these:
    http://wiki.archlinux.org/index.php/Fas … nux_System
    http://wiki.archlinux.org/index.php/Ins … her_distro
    Last edited by solarwind (2008-08-27 04:37:59)

  • How do I deactivate DreamWeaver when the hard drive died?

    How do I deactivate DreamWeaver when the hard drive died?  It will not reinstall on the new PC because it wants the old one deactivated, which is impossible.  There is no way I can deactivate it and I have a legitimate copy.  I had it on one PC that died, so I bought a new PC and put it on that.  A few days later I had to return the new one because of problems with the PC.  They give me a replacement which seems to be working OK, only now Adobe thinks I have DreamWeaver all over the place.  I don't have it anywhere.  All I want to do is put my legitimate copy on my new PC.  HELP!!!

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.  They can take care of the deactivation for the lost drive.  Chat operates 24/7.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • How do I make room on the hard drive??

    I need to make room on my older MacBook laptop (2 GHZ Intel Core Duo, 1 GB 667 MHz).  I am new to Mac and can't figure out how to manage the space.  I am using 5x the amount I think I should be. What is using the space on my harddrive?  Does any know any easy way to make room on the hard drive?  Are there programs I can delete?
    Thanks.

    You might look at this FAQ: http://www.thexlab.com/faqs/freeingspace.html

  • How do I delete items from the hard drive?

    Im trying to make more space in my hard drive and want to delete items that I no longer want or need. How do I see everything I have in my hard drive and delete it?

    Visit The XLab FAQs and read the FAQ on freeing up space on the hard drive. Also Freeing space on your Mac OS X startup disk.
    There are a few utilities for scanning the drive. One good one that is free - OmniDiskSweeper.

  • How to delete SMS text from the hard drive of a IPhone 3gs

    How do I delete SMS text from the hard drive of a iPhone 3GS

    If you want to delete the messages from within the text app, swipe over the name or number of the sender and hit delete.
    If you are afraid that someone will be able to restore them by ckecking your HD, you will have to set up the phone "as new device" or choose "erase all content and Settings" in Settings/General/Reset. But this willerase the whole phone, not only your text messages.
    How to set up your iPhone or iPod touch as a new device
    Message was edited by: Ingo2711

  • How to install a DVD on the hard drive

    I have only used DVDs that are not supposed to be copied.  Now I have a video course that recommends installing the DVD to the hard drive, and suggests launching the program from the hard drive will be better.  
    I have no clue how to install a DVD.  
    Thanks,
    Tom

    Insert the DVD, double-click it to show the folder, and drag that to the desktop, then it will copy.

  • How to Hyperlink an image on the hard drive

    We are converting to iMac from Windows and keep our photography business data in excel spreadsheets. Each image name links to an image on the PC hard drive. On the iMac in Numbers, I can link text in a cell to a webpage or an email but if I use the path to the location on the hard drive, it doesn't work. What I would like is to pop the image in Safari when I click the hyperlink in the Numbers cell. Example:
    The iMac name is butterfly, the user is reniepoole and the path to the image is Documents/image.jpg. If I put file://butterfly/users/reniepoole/Documents/image.jpg into the address bar in Safari, it will render the image OK. If I use the same address as the URL when I try to insert the image as a hyperlink in a Numbers cell, it doesn't work. Does anyone know how to render the image in Safari from a link in Numbers?

    Here is a script doing the trick.
    --[SCRIPT openFileFromNumbers]
    Enregistrer le script en tant que Script : openFileFromNumbers.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Sélectionner une cellule contenant un chemin d'accès à un fichier.
    menu Scripts > Numbers > openFileFromNumbers
    Le script ouvrira le fichier.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    (* à vérifier avec Snow Leopard *)
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as Script : openFileFromNumbers.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Select a cell containing a link to a file.
    menu Scripts > Numbers > openFileFromNumbers
    The script will open the file.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2009/12/28
    --=====
    property useSafari : true
    true = use Unix paths and open thru Safari
    example : file://Macintosh HD/Users/yvan_koenig/Documents/95.jpg
    false = use HFS paths and open thru Finder
    example : Macintosh HD:Users:yvan_koenig:Documents:95.jpg
    on run
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    set thePath to value of cell rowNum1 of column colNum1
    end tell
    if useSafari then
    tell application "Safari" to open location thePath
    else
    tell application "Finder" to open file thePath
    end if
    end run
    --=====
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
    end if
    return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
    apply to named row or named column !
    on decipher(n, d, s, t)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) lundi 28 décembre 2009 18:38:42

  • TS1372 How much is it to replace the hard drive in my iPod classic

    I've had my iPod classic for about three and a half years now and a few days ago it started to freak out on me. So when it stopped responding, I did the hard reset like I'd already done a million times before. Only this time, it said that I had to plug into iTunes to restore it. Long story short it didn't work and when I took it to Best Buy they said that the hard drive had failed. To get it repaired they also said that I would have to ship it to Kentucky. I live in New Mexico and I'm just wondering if anyone knows how much that costs and wether or not it's just a better idea to get a new one.

    Here is the Apple iPod repair price list, I think US$179
    For 3rd Party service, US$50 to US$130, Google for "IPOD CLASSIC REPAIR New Mexico", for one near your area.
    Good Luck!

  • How do I erase info on the hard drive

    how do I erase info on the hard drive

    If you want to give him a really clean new laptop, the best thing to do would be to erase it (or secure erase it, if there's stuff on there you don't want being found if the machine were to get stolen or something) and reinstall the system from scratch
    If you want a simpler method, it's probably easiest to just securely delete anything sensitive (put it in the trash and choose Finder -> Secure Empty Trash) and then create a new user for your son.  Make him an admin user, then log in as him and delete your old user, making sure to tell it to delete your user folder when asked.  Of course, you'll want to make sure your data is safely stored away elsewhere first!
    As far as applications go, if they were bought from the App Store, you can legally use them on multiple machines in your household, but you could also delete them by just dragging them to the trash.  For other apps, if they required an installer, look for an uninstaller provided by the company that made the app.  If not, just drag it to the trash.

  • How do I remove programmes from the hard drive

    Hi This may seem stupid but as a new Mac user I can find no way of deleting an installed photoshop and skype from the hard drive. Can anyone help please?

    I do not recommend the "drag and drop" method since there may be artifacts left behind that have been installed into other folders.
    Suggest you go to Photoshop and Skype support web site. Carolyn's advice is also good too. 
    For Adobe Photoshop:
    Use the Uninstaller in Utilities/Adobe Installers.
    If that doesn't work, download this, read the instructions very carefully and follow them.
    http://www.adobe.com/support/contact/cs3clean.html

  • Spinning down external hard drives

    A while back I wrote a little app called sumount, for safely unmounting usb hard drives.  While try to make it work a little more reliably, I came across hd-idle.  Hd-idle does a fantastic job, much better than my little hacky script.
    I've requested my app be deleted from the AUR (it is stupid and redundant), and am posting this to the forum so the four people who use it know to switch :-)

    The drive will spin down if Energy Saver tells it do so in Apple menu -> System Preferences -> Energy Saver. I have found though, spinning down an external hard drive sometimes is not desired because Energy Saver may not be able to give back all the power the drive desires when it wakes up. This can lead to an improperly dismounted volume causing occasional directory damage. My suggestion is to simply dismount it, and leave Disk Utility up so you can mount it again. Disk Utility is in Applications -> Utilities folder.

  • How to delete other files(yellow color code) from the hard drive, how to delete other files from the hard drive

    how can i delete the yellow color code items from my hard drive? What are these other files anyway? I wanna save some memory space from my storage.

    Macbook Pro community is here
    Following thread could solve your question.
    https://discussions.apple.com/message/19030300#19030300

Maybe you are looking for

  • Getting the Server Details.

    Hi All, I am required to develop a Composite Application Service which will give the server details like HOSTNAME and PORT NO of the deployment server.Is there any way of fetching these details ? Could someone please help me out with this issue ? Reg

  • Flash player still stuttering, high cpu

    Hi everyone. I've been having this problem with Flash for a while now, came with Flash player update that I sadly can't remember anymore. Anyway, the problem is, whenever I start to watch video from the internet using flash player (Youtube, for examp

  • Problems with planning function in sneak preview J2EE

    Hi all, I have a 2 systems environment with sneak preview J2EE and ABAP on my notebook. I configured SLD, JCo and in the 2004s with ta SPRO the planning function. I can connect with ta RSPLAN to the J2EE server, but I get the error message: com.sap.t

  • Default Photos Show on AppleTV when Paused

    I have family photos play on sceen saver (flickr). Recently, AppleTV, defaults to the internal photos when the screen saver comes up during a Netflix pause. Anyone  else experiencing this bug?

  • Has anyone used Oracle Designer??

    Hello everyone, I wanted to get some unbiased opinions about Oracle Designer if anyone out there has used it. We have recently completed the database design (on paper) for an Oracle 8i Database. I was about to begin creating that database on the serv