Re: Disk spin down issue on shut down/suspend to disk

From: Tejun Heo
Date: Tue Aug 07 2007 - 05:32:20 EST


Michael Sedkowski wrote:
> Dnia 07-08-2007, Wt o godzinie 15:56 +0900, Tejun Heo napisaÅ(a):
>> 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age
>> Always - 388
>>
>> I think this is the one. You can test it by forcefully powering off
>> the
>> machine (press power button for several secs or disconnect AC and
>> battery) and see whether the count increases.
>>
> When I forcefully power off using the power button the raw value [last
> one] rise by 1 point from 389 to 390. When I power off normally with
> linux it remains constant.
> Now could some one please explain to me what does that mean and am I in
> danger of data loss?

So, the ACPI routine puts the disk into the standby mode before powering
off. That's good.

On power off, the r/w heads in a disk should be unloaded (parked). This
is usually achieved by either putting the disk into standby/sleep mode
during shutdown. However, all modern disks can automatically unload
their heads when the power is removed abruptly. This is called
emergency unload. Emergency unload does shorten the lifespan of the
disk but you don't have to worry too much about it. Disks are designed
to withstand certain number of emergency unloads.

--
tejun
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/