HDD spins down then up then down again when halting the system
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HDD spins down then up then down again when halting the system
My hardware configuration is: P4 2.4GHz, asus P4PE M/B with a promise tx2 SATA controller, one SATA (WD, 120GB) and one PATA (WD, 80GB) disk on the promise controller, 1GB RAM. There was an old kernel version on which this wouldn't occur (about 2.6.4?); all newer kernels have this problem on my system. From google and my limited kernel knowledge this may be related to the power management subsystem.
I've never seen another PC have this behaviour, which causes unnecessary wear and tear to the HDD. By the way, windows xp shuts down the normal way (all disks spin down normally), which was also linux' behaviour until some years ago.
Distribution: Ubuntu 10.10 / Windows 7 Pro 64-Bit / Snow Leopard 10.6.4 64-Bit
Posts: 152
Rep:
Quote:
Originally Posted by auxsvr
I've never seen another PC have this behaviour, which causes unnecessary wear and tear to the HDD. By the way, windows xp shuts down the normal way (all disks spin down normally), which was also linux' behaviour until some years ago.
Not really, this came up in a maximumpc one time, simply put, write access appens all the time in windows, but Linux saves to a buffer, when the system dies, or the buffer is full, it writes.
Could you please explain why write access as you put it causes the disk to spin down then spin up then spin down again? Is this a hardware deficiency? If so, using windows can cause data loss? Is this hardware deficiency only demonstrated on my PC, as others I have tested don't show this behaviour? Do you happen to have a link to the relevant LKML thread? Thanks in advance.
Distribution: Ubuntu 10.10 / Windows 7 Pro 64-Bit / Snow Leopard 10.6.4 64-Bit
Posts: 152
Rep:
Even if it is a defect, it makes things better; windows xp constantly writes to the disk, but linux writes to memory then to the disk, causing it to spin-up-and-down.
notez: if any weired noise (ie: clicking) occurs, or the disk is near 5 years old, start making weekly backups and budget for a new HDD.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.