论坛风格切换切换到宽版
  • 3348阅读
  • 9回复

小心Ubuntu谋杀你的笔记本硬盘 (zt) [复制链接]

上一主题 下一主题
 
发帖
521
白金币
879
威望
77
人气
0
昵称
我玩过
正在玩
爱好
只看楼主 倒序阅读 楼主  发表于: 2007-11-01
小心Ubuntu谋杀你的笔记本硬盘
驱动之家[原创] 作者:上方文Q 编辑:上方文Q 2007-11-01 10:30:00 5186 人阅读 [投递]


现已确认,Ubuntu系统的ACPI电源管理机制存在缺陷,会大幅减少笔记本硬盘的寿命。

如果安装了Ubuntu的笔记本用户转入电池供电模式,则“/etc/acpi/power.sh”中的默认配置会导致极其频繁的载入循环,报告称100小时即可达到7000多次,而资料显示大多数笔记本硬盘最多只能承受60万次这种循环。换算下来,这相当于一块全新的笔记本硬盘只能连续实用不到1年。

SATA硬盘用户可以安装硬盘检测工具Smartmontools检查一下自己的笔记本,输入“smartctl -d ata -a /dev/sda”命令即可查看载入循环次数。

在IBM ThinkPad Z60m/T43、HP Compaq nw9440等笔记本上都已确认了这一bug。


评价一下你浏览此帖子的感受

火星

寂寞

发骚

和谐

找抽

福利

无害

基情
发帖
3491
白金币
13515
威望
529
人气
4
昵称
我玩过
正在玩
爱好
只看该作者 沙发  发表于: 2007-11-01
叫你们蛋疼
ts

发帖
20288
白金币
27318
威望
4485
人气
85
昵称
我玩过
D2,石器,EQ,EQ2,EVE,激战,指环王
正在玩
FF14
爱好
只看该作者 板凳  发表于: 2007-11-01
螃蟹也不是那么好吃的...

发帖
7533
白金币
9706
威望
1925
人气
4
昵称
我玩过
正在玩
爱好
只看该作者 地板  发表于: 2007-11-01
哦...我已经疼好久了....

用也用不了 删也删不掉 白占我15g硬盘..

发帖
11083
白金币
14929
威望
3303
人气
48
昵称
winding thend 德莫 坚果
我玩过
MUD.UO.EQ.PSOL.EVE.LOTRO.天下2.WOT
正在玩
激战2美服 EVE
爱好
书 电影 游戏
只看该作者 粪坑  发表于: 2007-11-01
火星了吧
https://launchpad.net/bug59695.html

Bug #59695, first reported on 2006-09-09  by  Gilles Schintgen

从这个BUG被提交到现在,ubuntu都经过了6.10(06年10月发布).7.04(07年4月发布)和7.10(07年10月18日发布)3个正式发布版了。

您不如贴个win98的xxx bug  来的有意义。

再说了,WINDOWS那么多次谋杀都死不了,这点算啥,起码知道的话,把sh改下参数就搞定了。

如果是windows系统出现这种BUG,只有等无敌的ms发布下个补丁。


[ 此贴被winding在2007-11-01 21:21重新编辑 ]
XFIRE:junglejia
STEAM:junglejia
====================
GW2:Der Mo /Winding Forest
TC服务器

发帖
11083
白金币
14929
威望
3303
人气
48
昵称
winding thend 德莫 坚果
我玩过
MUD.UO.EQ.PSOL.EVE.LOTRO.天下2.WOT
正在玩
激战2美服 EVE
爱好
书 电影 游戏
只看该作者 粪坑边缘  发表于: 2007-11-01
光头,你居然不会删除分区?    
XFIRE:junglejia
STEAM:junglejia
====================
GW2:Der Mo /Winding Forest
TC服务器
发帖
521
白金币
879
威望
77
人气
0
昵称
我玩过
正在玩
爱好
只看该作者 前排围观  发表于: 2007-11-02
提交又不表示修复
发帖
521
白金币
879
威望
77
人气
0
昵称
我玩过
正在玩
爱好
只看该作者 7 发表于: 2007-11-02
unknown wrote on 2007-10-06: (permalink)
I can confirm this bug on my inspiron 1501, the hd light goes on way too much compared to xp. Its a shame this isnt considered important. I guess i cant use ubuntu on my laptop

瞧 人家2007/10/06还在说他dell的这款新本本也遇到问题了呢

发帖
11083
白金币
14929
威望
3303
人气
48
昵称
winding thend 德莫 坚果
我玩过
MUD.UO.EQ.PSOL.EVE.LOTRO.天下2.WOT
正在玩
激战2美服 EVE
爱好
书 电影 游戏
只看该作者 8 发表于: 2007-11-02
或许大家可以看下这篇文章,是一位ubuntu开发者写的,或许对大家有点启示,原文引自:
http://www.linux-hero.com/rant/ubuntu-hard-drive-explosions/
原文:
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并未改变这些设置,若是出现楼主所述的问题,应该询问硬件厂商的。
这只是一家之言,仅供参考!!
XFIRE:junglejia
STEAM:junglejia
====================
GW2:Der Mo /Winding Forest
TC服务器
发帖
521
白金币
879
威望
77
人气
0
昵称
我玩过
正在玩
爱好
只看该作者 9 发表于: 2007-11-02
他以为他是微软呐 要求硬件厂商符合他地标准
快速回复
限300 字节
 
上一个 下一个