Spun-down hard disk being spun-up just before poweroff

Hi folks,
I have two SATA disks attached to my computer, one of them is my main disk and the other one is a backup disk I bought some weeks ago. That second disk is used just once a day, so I spin-down it on boot time with sdparm, being very careful about not frequently spininng-up the hard disk.
So everything is all right until I decide to shutdown my computer: just before the "POWER OFF" text appears on screen, the second hard disk spins-up and two seconds later my computer power offs. That means an extra spin-up for my hard disk, and I would like to avoid it.
I have studied /etc/rc.shutdown, and I think I have found the reason which causes this to happen. From /etc/rc.shutdown:
/sbin/poweroff -d -f -h -i
The -h flag puts all hard drives in standby mode, so my hard disk spins-up on that moment.
Has anyone managed to keep spinned-down disks just that way? Is there any way to tell poweroff not to put spun-down hard disk in standby?
Thank you very much.
Last edited by panecillo (2008-12-26 19:14:34)

Hi,
The problem is that newer kernels send a flush and standby and some disk spun up, then "clack" sound. This is not funny.
A msg from kernel will be appear when this occurrs
} else {
/* XXX: This is for backward compatibility, will be
* removed. Read Documentation/feature-removal-schedule.txt
* for more info.
if ((qc->dev->flags & ATA_DFLAG_SPUNDOWN) &&
(system_state == SYSTEM_HALT ||
system_state == SYSTEM_POWER_OFF)) {
static unsigned long warned;
if (!test_and_set_bit(0, &warned)) {
ata_dev_printk(qc->dev, KERN_WARNING,
"DISK MIGHT NOT BE SPUN DOWN PROPERLY. "
"UPDATE SHUTDOWN UTILITY\n");
ata_dev_printk(qc->dev, KERN_WARNING,
"For more info, visit "
"http://linux-ata.org/shutdown.html\n");
/* ->scsi_done is not used, use it for
* delayed completion.
scmd->scsi_done = qc->scsidone;
qc->scsidone = ata_delayed_done;
scmd->result = SAM_STAT_GOOD;
return 1;
/* Issue ATA STANDBY IMMEDIATE command */
tf->command = ATA_CMD_STANDBYNOW1;
This line is bad, -h flag not needed on newer kernels since libata send a FLUSH_CACHE and STANDBYNOW.
Try remove the -h flag, but this is for IDE disk only.
More info at http://linux-ata.org/shutdown.html
I will create a ticket in the bugtracker.
Good Bye, Good Year
Last edited by djgera (2008-12-31 23:08:22)

Similar Messages

  • Mac Mini Not booting due to hard disk being full

    Hello All,
    I have a Mini and has worked well for the past 12 months, last week i upgraded to the OSX Lion which also went very smoothly. However yesterday i had a message on my screen stating the my startup disk was full and i needed to make space. finding this a little odd as I have a TB external hard drive that everything goes to.
    the mini frose during the deletion process after leaving for approx an hour i attempted to reboot. from this point i have only been able to access the disk utility through the DVD that came with the mini I have done a disk check and repair, also check permission all are ok exept for only having 49mb of hd space left.
    I cant access safe mode as this will not boot either (tried to load for 8 hours) re install will also not work due to the amount of hd space available
    has anyone got any ideas how i can clean the hard disk without formatting as ideally i would like to know what is causing the problem.
    like a not very bright thing i left the time machine turned off so this isnt an option either??

    Ok, basically it would involve the following
    Boot from the DVD
    Launch the Terminal.app probably from a Utilities menu which also lists Disk Utility
    In Terminal you would need to type cd /Users/accountname/.Trash followed by pressing the return key
    Then you would type ls -l and again press return
    It would then list what is in the trash for that user account. If it begins with a D it is a folder, otherwise it is likely a file. The big number before the data would give an idea of the size of the item.
    When you have found the one you want to delete (remember you cannot undo this) you would type the following to delete a file rm filename and then press return again.
    The do ls -l again to see if the file has gone.
    If you want to delete a folder that is in the trash then the command would be rm -r foldername and then again press return. Using rm -r is a particularly dangerous command if you do it in the wrong place or the wrong way you could delete everything on the hard disk.
    Normally in single user mode (which you said was not working) you have to type some other commands beforehand to allow modifying the contents of the hard disk. I have not tried this via the DVD so I do not know if the same applied. If it does it is likely to refuse to delete the file and you should come back to me and we can work out the process.

  • Eject/Power Down Hard Disk

    In Mac Pro, Leopard, after boot, I right click the Internal HD for Windows desktop Icon, selecting Eject and can hear it winding down.
    In Mac Pro, Windows 7, Computer Management->"Disk Management", Internal Disk 0 is Windows Drive with Vista & Windows 7 OS's. Internal Disk 1 is Mac OS X - Leopard which I've set offline via right click.
    In "Device Manager" I've disabled ATA Channel 1 Controllers and Drive for Disk 1. After reboot, I no longer see Disk 1 in "Disk Management".
    My question: is Drive 1 still needlessly powered up & spinning? With Mac Pro side panel off no lights I see indicate either drive to be operating, vibration seem same for both to the touch.

    Further information after no response on this in either Windows 7 or Mac Bootcamp Forums:
    in Mac Leopard side of Mac Pro, iStat widget, recommended by Apple, powers up the ejected drive to display among other useful information, the drive temperature of 99-101 while Mac drive is at 88 degrees.
    My wish in submitting here is to find out how to power down an internal drive that is not in use in the active Operating System, to conserve power usage and maybe prolong computer/drive life span.
    If this was an IBM mainframe and I needed to access data written beyond end of file due to IBM software error, I could do it with Assembler & XDAP Macro, or, more urgent, if the VTOC of a Drive was damaged making it inaccessible, I could use Superzap to fix that. I could probably say how to power down a disk drive without pushing the device power down button if, in that scenario, I had ever had to do so before.
    Surely this not an impossible thing to do in a Microsoft OS.
    Mainly posted for Windows 7 feedback. If I get an answer, will post here for anyone in the same boat.

  • Gray screen on start up and not able to repair hard disk and not able to take back up.

    My macbook pro bought in early 2011 with snowleopard software and than upgraded to lion is now running on system 10.7.5 .
    My problem is i get a gray screen on startup with apple logo and spinning ball.
    I tried all the solutions mentioned in the apple support for "gray screen appears during start up". This Disk utility says that the Hard disk cant be repaired.
    Before i format my disk and erase all data and install Mac os x again, i want to take back up on a external hard disk. I bought a new 2tb external hard disk so that i can take a back up.
    As i try to take the backup of the image, it gives me an error "cannot allocate memory"
    i tried to change the configuration from compressed to read/write and tried different encrption methods but unable to take backup.
    i sometimes get error "input/output".
    how do i take a backup. somebody please help

    See OS X- Gray progress bar appears under Apple logo during startup. If you need to reinstall OS X, then do this:
    Reinstall Lion, Mountain Lion, or Mavericks without erasing drive
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported then click on the Repair Permissions button. When the process is completed, then quit DU and return to the main menu.
    Reinstall Lion, Mountain Lion, or Mavericks
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • I want to take the photos off my iPhone and put them directly onto an external hard disk. I want to bypass iPhoto altogether. When I link my iPhone to my computer, it only opens in iTunes, which only gives me the option to save my photos to iPhoto. Help!

    I want to take the photos off my iPhone and put them directly onto an external hard disk - I don't have any room left on my computer. I want to bypass iPhoto altogether. When I link my iPhone to my computer, it only opens in iTunes, which only gives me the option to save my photos to iPhoto. Help!  This is seriously frustrating!.
    Additionally, I'd like to be able to take the 2000+ photos out of iPhoto and put them on a disk in a folder. I have managed to export them to the hard disk but it's just plonked all 2000+ photos in a list - not ideal if I want to use it for anything else. And then I have to manually delete the photos from iPhoto. Is there not a quick and easy way of dealing with this? 
    Anyone got any bright ideas? Thanks for your help!

    I too would like to be able to do this. Just put them where i want the. IFTT a scripting app will put the images in dropbox for you , but its been pretty iffy.

  • What does the "yellow section"  "other" files mean under hard disk storage?

    what does the "yellow section"  "other" files mean under hard disk storage?

    david just to right of your initial post is a column entitled "More Like This." Check out some of the posts that seem similar.

  • Hard Disk 1 Quick (303)

    There are many cases of this HDD failure, but mine a little different and I can't find any information on it.
    The computer was working fine and I wanted to reformat. (I reformat with USB not DVD) Upon booting from USB, it started and I chose language and hit install now. If you are familiar with Win7 Installation, you'll know that after hitting Install now it goes to screen that allows you to choose which partition to install on. But it never got to that screen. After click Install now it stayed on a screen that said "Setting up windows" and sat there for like 30 minutes so I decided to restart it.
    Now on restart it wont even recognize the HDD or something. On a hard-drive test (F4 after hitting ESC) it keeps giving me:
    Hard Disk 1 Quick (303)
    Hard Disk 1 Full (303)
    Hard Disk SMART Passed
    I just did the etst again and now it says:
    Hard Disk 1 Fault
    Hard Disk 1 Fault
    Hard Disk SMART Passed

    Dustbay wrote:
    The laptop isn't even a year old. I keep very good maintenance on my computers as well. I feel as if there is another solution other than "go buy a new hdd".
    Well, I'm sorry that you feel that way but failing hard drives do not get better.  If it's less than a year old, you might check to see if you're still under warranty so that HP replaces the drive under yoru warranty terms.

  • MMO best practice. Download music and heavy files to users hard disk?

    MMO best practice. Download music and heavy files to users hard disk?
    I have just downloaded a Hello Kitty MMO app for research (for my kid of course).
    I am developping my English teaching app with LOADS of classical music, mp3 sentences and heavy background bgs. Would the best idea be for client to download these to their hardisk ie I would not need to stream them and therefore save a fortune on bandwidth charges from my ISP???
    Cheers

    I see what you mean ie: they have to get the file to their computer one way or another BUT
    a. If they are going to repeatedly use that file ie: a custom cursor or classical piece of music every week when they log on then it would be better for them to have it on their hardisk wouldn't it? If not, they would have to download it every time they log on. I take it that's why the hello kitty site makes you download 130 megas so you have everything on your hardisk, ie: you will be reusing all those assets MANY times in the future. The experience wil be very FAST as you have it on your local disk and needn't have to wait for streaming.

  • WiFi bandwidth required to access Time Capsule hard disk

    Hey all,
    Recently I moved, switched, houses. In this new house I have put my Time Capsule in the living room, and my computer is in the bedroom.
    Ever since I did that, I had troubles accessing Time Capsule hard drive. It would often get disconnected, Time Machine could not "find backup disk", streaming video was not working, and more.
    At first I thought that in the move I managed to bump TC a bit too hard and that maybe hard drive itself was damaged. Then I moved my MBP to kitchen, to do some work there (kitchen overlooks living room, there is a direct visual link to TC from there, no walls in between).
    Taaa-daaaa! Connection to Time Capsule and the hard drive inside was perfect again.
    However, all of the WiFi signal indicators, on both my Mac and other iOS devices are full when I am in my bedroom. The signal is therefore strong enough to make these devices think there is a 5/5 signal quality. But obviously that is wrong signaling. Not even Air Port utiliy gave any clues that even tho WiFi signal was 5/5 the actual bandwidth was not even close sufficient for optimal access to Time Capsule's hard disk. Which is just silly.
    Dear Apple, would it be possible to implement some sort of speed check into Air Port Utility which actually checks _REAL_ state of bandwidth and then advises what to do; "Please move closer to the Time Capsule Basestation, bandwidth is too low to access".
    I will say it again; the WiFi indicators are all 5/5, and everything regarding regular internet access and similar works awesome. But connection to hard disk obviously requires epic signal strength and no software indicates that.

    If the Time Capsule is providing a wireless network signal, an Internet connection does not need to exist to move files from the Mac to the Time Capsule, or vice versa.
    Log onto the Time Capsule wireless network
    Open Macintosh HD
    Look for the Time Capsule icon under the SHARED heading on the left side of the window
    Click on the Time Capsule icon and a folder named Data (unless you have renamed it) will appear to the right
    Double click Data to mount the drive on the Mac's desktop
    Open the drive on the desktop and you can drag/drop files over to the destination that you choose on the Mac.
    Once the file transfer is complete, double check to make sure that the files are back on your Mac and everything is working properly. Then, you can erase the Time Capsule hard drive.

  • Mac cannot detect external hard disk

    My mac is running oin OSX 10.8.5. It cannot detect a hard disk that was originally detected before. This happened after I took out the hard disk a previous I used it without ejecting it properly. thanks!

    Have you tested that the MBP USB ports are working?
    Have you tried different cables?
    Does the HDD work on other macs.
    Does the drive appear in Disk Utility?
    Have you tried the bare HDD in another enclosure?
    Ciao.

  • I recently suffered a hard disk crash, luckily everything was backed up but I cannot find my Firefox bookmarks in the back up to restore to my system, can anyone help?

    I have a fill Windows back up of my hard disk taken roughly 12 hours before disk failure. I have restored my system but have failed to find my previous bookmarks from my previous version of Firefox. I guess I am asking which folder are they are in the system backup?

    All your data such as bookmarks, passwords etc., is contained in a folder called a "Profile". See: [[Profiles]]
    You can recover your data from the old one if it's still intact and move it to the new profile. This article explains how to go about it: [[Managing Profiles]]

  • Hard disk working at 100%

    hello,
    i runned a test on my hard disk by clicking on f2 before the startup of windows
    and i got this:
    FAILURE ID : 9C4620-6H16SA-QFPK0K-60UD03
    PRODUCT ID : C0V75EA#ABF
    can you tell me its meaning?
    thank you

    Hi,
    It simply means the HDD is dead or about to die. Back up your data IF you are able to acces it and replace the HDD. Is it still under warranty ? If yes please cintact HP for a replacement:
     World wide support:
        http://welcome.hp.com/country/w1/en/contact_us.htm​l
    In the US:
        http://www8.hp.com/us/en/contact-hp/phone-assist.h​tml#section1
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Hard disk not being detected / Finding compatible replacement

    Hi,
    I have a late 2007 macbook (white). I was using it when it froze while listening to itunes. I've pressed the power button to turn it off and turn it back on.
    Unfortunately it did not boot. I've inserted the leopard upgrade disc and booted with the C pressed.
    It entered the installation and I selected the disk utility. Unfortunately it only shows the DVD drive and not the HD. I have a time machine disk and inserted and it recognized the external disk but not the internal one.
    I am assuming the worse scenario that the primary HD is gone. Since I am nowhere near an apple store/repair center I'd like to know what kind of extra steps can I do in order to confirm my assumption and if that's the case which HDs are compatible?
    I found some steps to replace the disk (http://www.ifixit.com/Guide/Repair/MacBook-Core-2-Duo-Hard-Drive-Replacement/514 /1).
    Regards.

    Start by:
    How to run hardware diagnostics for an Intel Mac
    Boot from your original OS X Installer Disc One that came with your computer. After the chime press and hold down the "D" key until the diagnostic screen appears. Run the extended tests for a minimum of two or three hours. If any error messages appear note them down as you will need to report them to the service tech when you take the computer in for repair.
    Some "common" error indicators:
    SNS - sensor error
    MEM - memory error
    HDD - hard disk drive error
    MOT - fan error
    Shut the computer off for 5 minutes to an hour. Restart with the Installer Disc and see if DU now recognizes the hard drive. If so check the SMART status. If it says "Failed" then the drive should be replaced. Otherwise if the drive is still not usable then you should do the following:
    Extended Hard Drive Preparation
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger or Leopard.)
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area. If it does not say "Verified" then the drive is failing or has failed and will need replacing. SMART info will not be reported on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Set the number of partitions from the drop down menu (use 1 partition unless you wish to make more.) Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (only required for Intel Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • Hard disk failure after just six days of purchase

    I purchased a dv6-3093ca from Costco just six days ago, and the laptop completely froze up on me. I had to force shut down by holding down the power key. Afterwards the laptop was never able to restart Windows again (freezes at the welcome screen, and the system repair does nothing). I did a system diagnostics test and it passed every test except hard disk, which it failed.
    Does anyone know how I can fish my files out of this? I didn't even have time to backup yet, because I figured a computer should at least survive for a couple of weeks before needing a backup...
    This is completely unacceptable, because not only is the laptop top tier in terms of specs, it's actually one of the most expensive Pavilions as well. A brand new $1k computer broke down in just six days? I was merely running Firefox + MS Word + MSN at the time. Is there any fix for this (in case something like chkdsk works)? If not I guess I'll have to return it...

    Come to think of it I'm not that surprised this happened now. I own three HP laptops (relatives bought the other two). One laptop basically could not be used for a long time with Vista, kept freezing for no reason, found it later it was another hardware problem. The more recent one's hard drive broke in just six days due to overheating, thanks to some idiot's design of cramming an i7 + 6GB RAM into a poorly designed system. The moronic "tech support"'s answer was "we will provide an exchange for you, after we send you a cardboard box, you send us the laptop, we fool around with it, then give you another hard drive when we feel like it, and by "when we feel like it", we mean either 2 weeks or 2 months". Yes it takes a lot of tech knowledge to come up with that kind of solution, and it took him an entire half an hour to type that into the computer as well. Waiting two weeks for an exchange that might break again? Lol like any person with a normal mind would do that. Returned it for a full refund right now and never touching another crappy HP product again. You fail at creating laptops HP, and what's even worse is that you fail at customer service as well.

  • Hi, I just put a new internal hard disk to my MacBook after formattimg it and I don't know how to install the OS X? Any help please

    Hi, I just put a new internal hard disk to my MacBook after formattimg it and I don't know how to install the OS X? Any help please

    Be sure you have prepared the new drive correctly:
    Drive Preparation
    1.  Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID (for Intel Macs) or APM (for PPC Macs) then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    Steps 4-6 are optional but should be used on a drive that has never been formatted before, if the format type is not Mac OS Extended, if the partition scheme has been changed, or if a different operating system (not OS X) has been installed on the drive.
    When formatting has completed quit DU and return to the installer.  Complete the OS X installation.

Maybe you are looking for

  • ISE 1.3, information about license consumption

    Hi all We are deploying ISE 1.3 in our network but is not clear for us how the license consumption mechanism is handled by ISE. I saw in the administration guide that in ISE 1.3 a license is consumed for every active user, and license consumption rel

  • I need help, i just synced my iphone3gs for the first time and now most of my apps wont work

    I just used itunes for the first time to sync my iphone 3GS!!!  Now, half of my apps will not work! Any suggestions? I touch on the app and it flashes real fast then back to my home screen...  HELP PLEASE!!!!

  • Updating data in Master data Attribute in BI 7.0

    Hi All I am using Bi 7.0. While doing data load for the attributes of an infoObject, my Monitor shows the correct information (i.e. 2 Records transferred and 1 record added, Which should ideally happen based on the conditions in the routines wherein

  • Question about networking config

    Hi all i am about to setup a remote server with arch and i was wondering if the following rc.conf entries will work. eth0="eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx broadcast xxx.xxx.xxx.xxx" eth0:0="eth0 yyy.yyy.yyy.yyy netmask xxx.xxx.xxx.xxx br

  • Finding good plugin settings

    After purchasing Logic Pro, I was surprised the setting choices that came with plugins (EQ, Space Designer, etc...) were not very realistic. A Piano in a Space Designer "Piano Concert Hall" sounds more like it's in outer space. The EQ setting for pia