如果你的硬盘频繁启动关闭休眠,那么很容易造成硬盘机械故障。

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
ptptptptptpt
帖子: 3711
注册时间: 2006-09-19 18:16

#31

帖子 ptptptptptpt » 2007-11-01 11:55

skyx 写了:
fei6643 写了:谁知道,反正照了上面做了,现在数值不动了,原来1分钟内要涨2,3点捏。比抄股票还快。觉得硬盘热量上去了。现在改不回去了,有没有比较折中点的办法。
spin up/down cycles (with about 600k supported by seagate drives)
600k的寿命来算,每分钟涨3个点:

一小时涨 180
一天用电池开机3小时: 180*3=540

那硬盘也有超过1000多天的寿命。电池寿命是充放电500次,也就是说当你的硬盘过了一半寿命时,你就不大可能用电池了,除非再买块电池


不知道用外接电源是什么情况?如果接上外接电源也是这样,一天开机十个小时的话:
一天涨1800次
那差不多一年你的硬盘就挂了,论坛ee之流的本本用户,注册时间是2005年,硬盘应该换了二块以上才说得过去。

:lol: :lol:

那些电脑开机就开mule bt的人,硬盘时时刻刻都在读写,硬盘是不大可能睡觉的,也许一次都涨不了,有可能最终硬盘挂掉,都是因为坏道的原因。

所以得出的结论是: 越是不舍得用的人,硬盘越容易挂。并且这样挂掉的硬盘盘片差不多还是新的 :lol:

我的共享精神本来就好,就算不下载,为了方便其他人,我的mule也是开着的,看来不会有这个问题。

不舍得用的,我想还是把硬盘apm关掉为妙。关了后有可能硬盘长开,温度又上来了,寿命又会缩短。

最终结论:
不怎么舍得用硬盘的本友,特别是一有风吹草动,就不知所措的,还是用windows为妙,如果linux最新的内核没解决这个问题的话。 8)
MM专业 :shock:
2213389
帖子: 17
注册时间: 2007-10-31 13:09

#32

帖子 2213389 » 2007-11-01 14:31

晕倒,我的已经。。。。$ sudo smartctl -a /dev/sda | grep Load_Cycle_Count
225 Load_Cycle_Count 0x0012 056 056 000 Old_age Always - 448598

但是还是没事阿,我正在找怎么关闭apm。。。
祖玛教皇
帖子: 1
注册时间: 2007-11-01 14:35

#33

帖子 祖玛教皇 » 2007-11-01 14:38

我用的是笔记本,谢谢提醒,支持一下
头像
Tenyears
帖子: 2245
注册时间: 2005-06-30 15:46
来自: 成都

#34

帖子 Tenyears » 2007-11-01 20:24

我的已经到517667了,不到一年

看来还是先吧apm关掉吧,反正冬天也来了
Humanity to others // 己所不欲,勿施与人
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
liaxiz
帖子: 49
注册时间: 2007-05-26 23:57
联系:

#35

帖子 liaxiz » 2007-11-01 21:53

或许大家可以看下这篇文章,是一位ubuntu开发者写的,或许对大家有点启示,原文引自:
http://www.linux-hero.com/rant/ubuntu-h ... xplosions/
原文:
For starters, let me just say WOW! I’m completely overwhelmed at the responses my last article article has gotten. As I type this it’s rapidly approaching 1000 diggs, which is something I never even envisioned. When I sat down to write this article, three things were true:

1. It was 3am.
2. I actually was writing the article more on the basis that I had read a trouble ticket that I didn’t understand a piece of lingo in (hard drive load/unload cycles)
3. I was in my underwear.

So imagine my surprise when I finished the article, in which the main goal was to make me tired enough to sleep so I wouldn’t be completely useless at work the next day, and posted it that the digs started coming in almost immediately. I saw that I had 8 before I went to bed, and didn’t think anything about it until the next night, when I checked and saw over 400. Insanity. At any rate, to make it short, let me say Thank You to all of you (even the trolls!) if for nothing else participating in a lively discussion. Enough mushy community group hug crap. Let’s get down to work.

Of all the responses that were posted in response to my first article, this one was far and away the most relevant. (Especially when you consider the fact that after some research I realized the guy was a lead Ubuntu developer!)

“The situation is somewhat less clear than you might think from the article, but the basic takeaway message is that Ubuntu doesn't touch your hard drive power management settings by default. In almost all cases, it's more likely to be your BIOS or the firmware on your hard drive.

The script that's executed when you plug or unplug your laptop is /etc/acpi/power.sh. The relevant sections are:

function laptop_mode_enable {
...
$HDPARM -S $SPINDOWN_TIME /dev/$drive 2>/dev/null
$HDPARM -B 1 /dev/$drive 2>/dev/null
}

That is, when the laptop_mode_enable function is called, we set the drive power parameters. Now, by default laptop_mode_enable isn't called:

if [ x$ENABLE_LAPTOP_MODE = xtrue ]; then
(sleep 5 && laptop_mode_enable)&
fi

because ENABLE_LAPTOP_MODE is false in the default install (check /etc/default/acpi-support). This means that, by default, we do not alter the hard drive power settings. In other words, the APM settings that your drive is using in Ubuntu are the ones that your BIOS programmed into it when the computer started. This is supported by the fact that people see this issue after resuming from suspend. We don't touch the hard drive settings at that point, so the only way it can occur is if your BIOS or drive default to this behaviour.

If you enable laptop mode, then we will enable aggressive power management on the drive and that may lead to some reduction in hard drive lifespan. That's a fairly inevitable consequence of laptop mode, since it only makes sense if the laptop enages in aggressive power management. But, as I said, that's not the default behaviour of Ubuntu.

There's certainly an argument that we should work around BIOSes, but in general our assumption has been that your hardware manufacturer has a better idea what your computer is capable of than we do. If a laptop manufacturer configures your drive to save power at the cost of life expectancy, then that's probably something you should ask your laptop manufacturer about”

So let me put this out there in capital letters, because I NEVER wanted any semblance of bad publicity for Ubuntu. UBUNTU DOES NOT OVERWORK YOUR HARD DRIVE UNLESS IT IS IN LAPTOP MODE.

How can you tell if your machine is in laptop mode? Easy.

root@linux-hero.com:/ grep ENABLE_LAPTOP_MODE /etc/default/acpi-support

If the returned value is true, your machine is in laptop mode and you may wish to alter your power management settings accordingly. I have not tested this, however I imagine you can choose a less aggressive number in the aforementioned script /etc/acpi/power.sh at the line that reads:
<code>$HDPARM -B 1 /dev/$drive 2>/dev/null</code>

When doing so, keep in mind that 255 completely disables power management, and 1 is the most aggressive setting. Find a happy medium that works for your laptop if you’re interested in striking a balance between battery life and hard drive longevity.

If it comes back false, you’re fine. It should also be noted per the developer that laptop mode is off by default. I’m imagining though, that many people when going through the install see the advanced power management stuff in the list of packages and turn it on without thinking about it. Perhaps a small warning, even in the /etc/default/acpi-support file is in order?

I’m going to close with the statement that I truly love Ubuntu, and it is in my opinion the best distro available right now, and I never wanted bad publicity for them. This article was originally just an excuse for me to do some research and learn about hard drive load/unload cycles. All the rest of this is just 17,000 hits of side effects. (Gentoo users, I like that one a lot too… I swear. No flame wars please.)

红色的部分应该可以说明问题了,是bios或者硬件的驱动所做的设置,在启动的时候覆盖了Ubuntu的设置,按照作者的意思,硬件厂商应该更加了解硬件的工作情况,所以Ubuntu并未改变这些设置,若是出现楼主所述的问题,应该询问硬件厂商的。
这只是一家之言,仅供参考!!!
头像
Tenyears
帖子: 2245
注册时间: 2005-06-30 15:46
来自: 成都

#36

帖子 Tenyears » 2007-11-03 11:57

我的笔记本已经50多万次了,不到一年,大多数时候用ubuntu,偶尔用xp。

但是现在7.10默认设置下,两个小时都没有增加1次

反而是xp,2个小时居然load了将近200次!
Humanity to others // 己所不欲,勿施与人
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#37

帖子 skyx » 2007-11-03 12:07

Tenyears 写了:我的笔记本已经50多万次了,不到一年,大多数时候用ubuntu,偶尔用xp。

但是现在7.10默认设置下,两个小时都没有增加1次

反而是xp,2个小时居然load了将近200次!
我已经不知所措了,我现在用算盘。爱国又环保。
no security measure is worth anything if an attacker has physical access to the machine
头像
Tenyears
帖子: 2245
注册时间: 2005-06-30 15:46
来自: 成都

#38

帖子 Tenyears » 2007-11-03 21:04

算盘珠子的拨打寿命恐怕也不超过60万次
Humanity to others // 己所不欲,勿施与人
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
头像
paul
帖子: 510
注册时间: 2005-09-01 20:48

#39

帖子 paul » 2007-11-07 15:13

Tenyears 写了:算盘珠子的拨打寿命恐怕也不超过60万次
So,数据丢失?重装系统?经济损失? :D
看起来算盘是个不错的idea.
大致看了一下,觉得是炒作。
头像
paul
帖子: 510
注册时间: 2005-09-01 20:48

#40

帖子 paul » 2007-11-07 15:20

不过这件事处理好了,坏事能变成好事。至少帮助大家增加对Ubuntu还有Linux的认识。
头像
carbont
帖子: 3406
注册时间: 2007-11-22 10:20
来自: 北京

#41

帖子 carbont » 2007-12-20 7:14

如果我用了一年,还不能买新的电脑,我还有什么意思。呵呵
lenovo Thinkpad R60i 0657 LHC
windowsXP……准备换回ubuntu了。

Twitter: @carbont
头像
tigerdoo
帖子: 327
注册时间: 2006-11-17 23:02

#42

帖子 tigerdoo » 2007-12-22 15:11

在现在这个硬盘挂掉之前,利用它为你赚够购买新电脑的银子就行了。
IBM T41-P4M 1.5G/1GB/40GB HDD/DVD/14.1TFT/IPW2100 & 10-100M
OS:Xubuntu 11.10
生活就是折腾
活在成都
使用update-rc.d管理Linux服务
adam0010
帖子: 11
注册时间: 2007-12-04 11:28

#43

帖子 adam0010 » 2007-12-22 16:23

好怕怕啊 吓死人啊…… 呵呵 我在网吧用擦屁 没的UBUNTU用~!
头像
Neoriva
帖子: 1163
注册时间: 2007-12-19 21:42

#44

帖子 Neoriva » 2008-01-03 20:33

skyx 写了:
Tenyears 写了:我的笔记本已经50多万次了,不到一年,大多数时候用ubuntu,偶尔用xp。

但是现在7.10默认设置下,两个小时都没有增加1次

反而是xp,2个小时居然load了将近200次!
我已经不知所措了,我现在用算盘。爱国又环保。
:lol:
北極熊都是左撇子…………
头像
sevk
帖子: 2060
注册时间: 2007-05-08 16:26
系统: arch
来自: 火星内核某分子内某原子核内
联系:

#45

帖子 sevk » 2008-01-03 21:07

我的笔记本已经50多万次了,不到一年,大多数时候用ubuntu,偶尔用xp。

但是现在7.10默认设置下,两个小时都没有增加1次

反而是xp,2个小时居然load了将近200次!

而且我是sda。
笔记本 :
F208S : gentoo
A460P i3G D6 : UBUNTU + WIN7
UN43D1 : UBUNTU + WIN7
1000人超级QQ群 LINUX + WIN : 31465544 或 18210387
回复