[分享]注意!Ubuntu的Bug可能会减少笔记本硬盘寿命

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

#31

帖子 Element » 2007-11-01 20:27

给我完整的命令,好像我的smart没开
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#32

帖子 BigSnake.NET » 2007-11-01 20:38

Element 写了:给我完整的命令,好像我的smart没开
sudo aptitude install smartmontools
sudo smartctl -a /dev/sda
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
头像
Element
帖子: 3537
注册时间: 2005-09-10 16:04
来自: DG-GD-China

#33

帖子 Element » 2007-11-01 21:18

代码: 全选

~$ sudo smartctl --smart=on /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.
~$ sudo smartctl --all /dev/hda
smartctl version 5.36 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.7 and 7200.7 Plus family
Device Model: ST380011A
Serial Number: 5JVDAJ8E
Firmware Version: 8.01
User Capacity: 80,026,361,856 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 6
ATA Standard is: ATA/ATAPI-6 T13 1410D revision 2
Local Time is: Thu Nov 1 21:16:20 2007 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 430) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 58) minutes.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 057 053 006 Pre-fail Always - 25611743
3 Spin_Up_Time 0x0003 099 098 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 23
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
7 Seek_Error_Rate 0x000f 083 060 030 Pre-fail Always - 226176851
9 Power_On_Hours 0x0032 092 092 000 Old_age Always - 7650
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 098 098 020 Old_age Always - 2184
194 Temperature_Celsius 0x0022 031 051 000 Old_age Always - 31
195 Hardware_ECC_Recovered 0x001a 057 052 000 Old_age Always - 25611743
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 TA_Increase_Count 0x0032 100 253 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]


SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
alteeno
帖子: 254
注册时间: 2006-01-18 18:11

#34

帖子 alteeno » 2007-11-12 14:33

njayong 写了:我们联合起来告ubuntu吧,叫它赔钱
想钱想疯了!
头像
langduan
帖子: 16
注册时间: 2007-11-13 16:42

#35

帖子 langduan » 2007-11-13 17:36

还是要关注 :shock:
coing
帖子: 30
注册时间: 2007-11-11 15:31

#36

帖子 coing » 2007-11-13 20:21

楼上的好主意
头像
weive
帖子: 3236
注册时间: 2007-10-21 18:36
来自: 汕头/广东/中国

#37

帖子 weive » 2007-11-13 20:30

@laptop:~$ sudo smartctl -a /dev/sda
smartctl version 5.37 [x86_64-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model: FUJITSU MHW2080BH
Serial Number: K10AT772A272
Firmware Version: 0085001C
User Capacity: 80,026,361,856 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 8
ATA Standard is: Not recognized. Minor revision code: 0x52
Local Time is: Tue Nov 13 20:29:25 2007 CST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x00) Offline data collection activity
was never started.
Auto Offline Data Collection: Disabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 324) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 46) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 100 100 046 Pre-fail Always - 109354
2 Throughput_Performance 0x0004 100 100 000 Old_age Offline - 20054016
3 Spin_Up_Time 0x0003 100 100 025 Pre-fail Always - 1
4 Start_Stop_Count 0x0032 099 099 000 Old_age Always - 220
5 Reallocated_Sector_Ct 0x0033 100 100 024 Pre-fail Always - 8589934592000
7 Seek_Error_Rate 0x000e 100 100 000 Old_age Always - 2469
8 Seek_Time_Performance 0x0004 100 100 000 Old_age Offline - 0
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 679
10 Spin_Retry_Count 0x0012 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 214
191 G-Sense_Error_Rate 0x0012 100 100 000 Old_age Always - 9
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 56
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 43 (Lifetime Min/Max 15/54)
195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 384
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 461045760
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x000e 100 100 000 Old_age Always - 15814
201 Soft_Read_Error_Rate 0x0010 100 100 000 Old_age Offline - 0
203 Run_Out_Cancel 0x0002 100 100 000 Old_age Always - 433788682349
225 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 6670
240 Head_Flying_Hours 0x003e 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 2 -
# 2 Short offline Completed without error 00% 1 -
# 3 Short offline Completed without error 00% 0 -

SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.



如何?
恋鸟之伊
帖子: 135
注册时间: 2008-01-17 15:13
来自: 江苏南通

#38

帖子 恋鸟之伊 » 2008-02-22 21:24

###############################################################################
#
# Configuration for Laptop Mode Tools
# -----------------------------------
#
# There is a "system" to the configuration setting names:
# CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
# something
# LM_something=value Value of "something" when laptop mode is active
# NOLM_something=value Value of "something" when laptop mode is NOT
# active
# AC_something=value Value of "something" when the computer is running
# on AC power
# BATT_something=value Value of "something when the computer is running
# on battery power
#
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
# available prefixes are different for each setting. The available ones are
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
# NOLM_ in a setting name, then the value is used independently of laptop
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
# independently of power state.
#
Type :quit<Enter> to exit Vim

请问第三步具体怎么做啊?
衣带渐宽终不悔,为伊消得人憔悴。
头像
tlhl28
帖子: 474
注册时间: 2006-09-02 18:58
来自: 深圳

#39

帖子 tlhl28 » 2008-03-10 18:59

。。。。。。。。。。。。。
我用了两个月左右,就9万多了。。。。。。。。。。。 :cry:
------
ThinkPad·R60i-0657LN1
Ubuntu 8.04 . Hardy Heron+XP
------
头像
chattan
帖子: 3922
注册时间: 2007-07-11 20:59
联系:

#40

帖子 chattan » 2008-03-10 20:01

哪里9万多???贴出来看看呢!!
头像
tlhl28
帖子: 474
注册时间: 2006-09-02 18:58
来自: 深圳

#41

帖子 tlhl28 » 2008-03-10 20:04

chattan 写了:哪里9万多???贴出来看看呢!!
附件
Screenshot-t.png
------
ThinkPad·R60i-0657LN1
Ubuntu 8.04 . Hardy Heron+XP
------
头像
chattan
帖子: 3922
注册时间: 2007-07-11 20:59
联系:

#42

帖子 chattan » 2008-03-10 20:10

果然是这样~~~PS过没??呵呵`~~

怎么我这里不这样呢??呵呵~~~
头像
chattan
帖子: 3922
注册时间: 2007-07-11 20:59
联系:

#43

帖子 chattan » 2008-03-10 20:13

代码: 全选

193 Load_Cycle_Count        0x0032   010   010   000    Old_age   Always       -       180498


表怕`~~我这都这么多了,我都不怕`~~呵呵~~~
头像
tlhl28
帖子: 474
注册时间: 2006-09-02 18:58
来自: 深圳

#44

帖子 tlhl28 » 2008-03-10 20:22

......
你用了多久的啊。。。。。。。
不过现在解决了,就是硬盘温度高了一点
------
ThinkPad·R60i-0657LN1
Ubuntu 8.04 . Hardy Heron+XP
------
头像
yaoyugang
帖子: 43
注册时间: 2007-04-12 11:44

#45

帖子 yaoyugang » 2008-03-14 13:15

恋鸟之伊 写了:###############################################################################
#
# Configuration for Laptop Mode Tools
# -----------------------------------
#
# There is a "system" to the configuration setting names:
# CONTROL_something=0/1 Determines whether Laptop Mode Tools controls
# something
# LM_something=value Value of "something" when laptop mode is active
# NOLM_something=value Value of "something" when laptop mode is NOT
# active
# AC_something=value Value of "something" when the computer is running
# on AC power
# BATT_something=value Value of "something when the computer is running
# on battery power
#
# There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
# available prefixes are different for each setting. The available ones are
# documented in the manual page, laptop-mode.conf(8). If there is no LM_/
# NOLM_ in a setting name, then the value is used independently of laptop
# mode state, and similarly, if there is no AC_/BATT_, then the value is used
# independently of power state.
#
Type :quit<Enter> to exit Vim

请问第三步具体怎么做啊?


我也是就到这不会了,怎么弄啊?
THINKPAD R60E 0685-AE5

UBUNTU 7.10 + WINDOWSXP
回复