APM (advance power management) può distruggere il disco fisso dei laptop ?
APM (advance power management) può distruggere il disco fisso dei laptop ?
Ho cambiato il titolo del post (inizialmente si riferiva a Gutsy visto che il bug era stato postato alla Canonical in più riprese, la prima volta all'inizio di settembre) poichè ora cominciano ad esserci notizie analoghe da altri sistemi operativi Linux (Gentoo, Fedora).
La situazione sembra identica anche in Windows, dove però il valore di default è molto meno aggressivo di quello impostato nella maggior parte delle distribuzioni Linux.
Il problema è serio e viene riportato abbondantemente in rete.
Ecco un paio di links:
A problem encountered by users running Ubuntu Gutsy
Default HD power management settings will kill drive
La situazione sembra identica anche in Windows, dove però il valore di default è molto meno aggressivo di quello impostato nella maggior parte delle distribuzioni Linux.
Il problema è serio e viene riportato abbondantemente in rete.
Ecco un paio di links:
A problem encountered by users running Ubuntu Gutsy
Default HD power management settings will kill drive
Ultima modifica di mcz il giovedì 1 novembre 2007, 23:14, modificato 1 volta in totale.
- cRoW2k
- Prode Principiante
- Messaggi: 225
- Iscrizione: martedì 2 ottobre 2007, 12:11
- Località: Novafeltria
- Contatti:
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Aggiungo https://launchpad.net/bug59695.html con l'attuale workaround (sia tramite hdparm che tramite il laptop-mode-tools)
dArKeR thAn ThE bAt
- lillolinux
- Scoppiettante Seguace

- Messaggi: 285
- Iscrizione: mercoledì 21 marzo 2007, 9:55
- Località: Rimini
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
e quale la soluzione ?
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
quindi, basta mettere il valore 1 anzichè 0 a questa stringa
nel file
giusto?
Codice: Seleziona tutto
CONTROL_HD_POWERMGMT=1Codice: Seleziona tutto
/etc/laptop-mode/laptop-mode.confRe: Gutsy Gibbon distrugge il disco fisso dei laptop
Sul mio laptop DELL 6400 di 6 mesi (uso ancora Feisty) ho riscontrato i seguenti valori :
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0004 107 107 000 Old_age Offline - 4487
3 Spin_Up_Time 0x0007 232 232 033 Pre-fail Always - 1
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 289
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000a 100 100 000 Old_age Always - 0
8 Seek_Time_Performance 0x0004 122 122 000 Old_age Offline - 39
9 Power_On_Hours 0x0012 098 098 000 Old_age Always - 1133
10 Spin_Retry_Count 0x0012 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 287
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 161
193 Load_Cycle_Count 0x0012 095 095 000 Old_age Always - 56982
194 Temperature_Celsius 0x0002 114 114 000 Old_age Always - 48 (Lifetime Min/Max 15/54)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
223 Load_Retry_Count 0x000a 100 100 000 Old_age Always - 0
225 Load_Cycle_Count 0x0012 095 095 000 Old_age Always - 56982
Boh, i più dicono di fare:jackyaway ha scritto: quindi, basta mettere il valore 1 anzichè 0 a questa stringa
nel fileCodice: Seleziona tutto
CONTROL_HD_POWERMGMT=1
giusto?Codice: Seleziona tutto
/etc/laptop-mode/laptop-mode.conf
Codice: Seleziona tutto
Use hdparm; a command line tool to disable advanced power management (APM). This is achieved by running the following command :
$ sudo hdparm -B 255 /dev/sdaUn blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
a me restituisce questo:
ma non so come interpretare questi valori... ???
Codice: Seleziona tutto
smartctl -d ata -a /dev/sdaCodice: Seleziona tutto
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: Hitachi HTS541616J9SA00
Serial Number: SB2401SJG3MB8B
Firmware Version: SB4OC70P
User Capacity: 160,041,885,696 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Wed Oct 31 12:48:00 2007 CET
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: ( 645) 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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 83) 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 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0
3 Spin_Up_Time 0x0007 243 243 033 Pre-fail Always - 1
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 947
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0
9 Power_On_Hours 0x0012 095 095 000 Old_age Always - 2596
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
[b]12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 938[/b]
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 31
[b]193 Load_Cycle_Count 0x0012 098 098 000 Old_age Always - 28151[/b]
194 Temperature_Celsius 0x0002 157 157 000 Old_age Always - 35 (Lifetime Min/Max 16/46)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
223 Load_Retry_Count 0x000a 100 100 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.
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Codice: Seleziona tutto
giulio@TOSHIBA-laptop:~$ sudo hdparm -B 255 /dev/sda
/dev/sda:
setting Advanced Power Management level to disabled
giulio@TOSHIBA-laptop:~$
- cRoW2k
- Prode Principiante
- Messaggi: 225
- Iscrizione: martedì 2 ottobre 2007, 12:11
- Località: Novafeltria
- Contatti:
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Passando 255 al disco a me a causato un problema. Ossia sentivo le testine del disco sbattere. E non piacendo affatto ho prontamente riavviato lasciando però il CONTROL_HD_POWERMGMT=1. Non mi pare sia cambiato granchè perchè il contatore continua ad aumentare anche dopo pochi minuti. Aspettiamo buone nuove da qualche altro tester.
dArKeR thAn ThE bAt
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Prima di fare esperimenti strani sarebbe opportuno avere un'idea di cosa si stia facendo.
Io per adesso non ho fatto ancora nulla, perchè devo capire se nel mio caso questa situazione sia un reale problema ..e quale sia la giusta soluzione.
Ho cercato in Internet e, se ho capito bene, mediamente il ciclo vita di un HDD è di Load/Unload cycles 600,000 cycles (ognuno si cerchi le caratteristiche tecniche del proprio HDD),
quindi
il mio contatore è a 56982, considerando che lo uso 40 ore a settimana (solo per lavoro) è ha circa 22 settimane di vita => 880 ore, significa che Festy mi sta "comandando" 65 cicli/ora circa
Essendo il contatore a 56982 mancherebbero ancora 543018 cicli al suo funerale(600000cicli), pertanto dovrei avere ancora 8354 ore => 1044 giorni lavorativi => 3,5 anni ...mi sembrano un po' pochini!
More
Io per adesso non ho fatto ancora nulla, perchè devo capire se nel mio caso questa situazione sia un reale problema ..e quale sia la giusta soluzione.
Anch'io, ma con un po' di volontà si può provare a capire.jackyaway ha scritto: a merestituisce questo:Codice: Seleziona tutto
smartctl -d ata -a /dev/sda
...
ma non so come interpretare questi valori... ???
Ho cercato in Internet e, se ho capito bene, mediamente il ciclo vita di un HDD è di Load/Unload cycles 600,000 cycles (ognuno si cerchi le caratteristiche tecniche del proprio HDD),
quindi
il mio contatore è a 56982, considerando che lo uso 40 ore a settimana (solo per lavoro) è ha circa 22 settimane di vita => 880 ore, significa che Festy mi sta "comandando" 65 cicli/ora circa
Essendo il contatore a 56982 mancherebbero ancora 543018 cicli al suo funerale(600000cicli), pertanto dovrei avere ancora 8354 ore => 1044 giorni lavorativi => 3,5 anni ...mi sembrano un po' pochini!
More
Ultima modifica di Anonymous il mercoledì 31 ottobre 2007, 14:48, modificato 1 volta in totale.
Un blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
niente, hai disabilitato l'Advanced Power Management dell'HDD.8solo5 ha scritto:che devo fare?Codice: Seleziona tutto
giulio@TOSHIBA-laptop:~$ sudo hdparm -B 255 /dev/sda /dev/sda: setting Advanced Power Management level to disabled giulio@TOSHIBA-laptop:~$
Verifica che tutto ti funzioni bene, e cerca in Internet gli eventuali effetti collaterali.
Un blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
ma l'ho disabilitato con quel comando?Come faccio a sapere se il mio hd sta bene o no?
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Sì, leggi il manuale per maggiori info: man hdparm8solo5 ha scritto: ma l'ho disabilitato con quel comando?
Questa è difficile da rispondere, prova usare il comando smartctl (leggi prima il manuale) per tenere sott'occhio i valori del tuo HDD, ...e cerca in Internet gli eventuali effetti collaterali nel non usare Advanced Power Management level.8solo5 ha scritto: Come faccio a sapere se il mio hd sta bene o no?
More+
Un blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
ma siamo sicuri? ke quella cosa bisogna cambiarla?
Ubuntu 11
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Come faccio a riabilitarlo??Aspetterò qualcosa di ufficiale per fare modifiche..
Codice: Seleziona tutto
=== START OF INFORMATION SECTION ===
Model Family: Hitachi Travelstar 5K100 series
Device Model: HTS541010G9SA00
Serial Number: MP2ZM4X0J9D9AR
Firmware Version: MBZOC60R
User Capacity: 100,030,242,816 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: ATA/ATAPI-7 T13 1532D revision 1
Local Time is: Wed Oct 31 14:53:53 2007 CET
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: ( 645) 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: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 66) 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 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0
3 Spin_Up_Time 0x0007 234 234 033 Pre-fail Always - 1
4 Start_Stop_Count 0x0012 099 099 000 Old_age Always - 1724
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0
9 Power_On_Hours 0x0012 093 093 000 Old_age Always - 3277
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 1650
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 098 098 000 Old_age Always - 483
193 Load_Cycle_Count 0x0012 094 094 000 Old_age Always - 69928
194 Temperature_Celsius 0x0002 144 144 000 Old_age Always - 38 (Lifetime Min/Max 9/60)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 19
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 253 000 Old_age Always - 0
SMART Error Log Version: 1
ATA Error Count: 2
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 2 occurred at disk power-on lifetime: 2018 hours (84 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 07 f1 4c eb Error: UNC at LBA = 0x0b4cf107 = 189591815
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 00 f1 4c eb 08 00:39:23.000 READ DMA
c8 00 08 a8 64 14 ea 08 00:39:22.700 READ DMA
35 00 00 18 2a 10 e0 08 00:39:22.700 WRITE DMA EXT
35 00 00 18 26 10 e0 08 00:39:22.700 WRITE DMA EXT
35 00 00 18 22 10 e0 08 00:39:22.700 WRITE DMA EXT
Error 1 occurred at disk power-on lifetime: 2018 hours (84 days + 2 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 07 b1 60 ea Error: UNC at LBA = 0x0a60b107 = 174108935
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 00 b1 60 ea 08 00:27:06.600 READ DMA
c8 00 08 a8 24 28 e9 08 00:27:06.300 READ DMA
35 00 00 b0 bb 22 e0 08 00:27:06.300 WRITE DMA EXT
35 00 00 b0 b7 22 e0 08 00:27:06.300 WRITE DMA EXT
35 00 00 b0 b3 22 e0 08 00:27:06.300 WRITE DMA EXT
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
Warning! SMART Selective Self-Test Log Structure error: invalid SMART checksum.
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.
giulio@TOSHIBA-laptop:~$ Re: Gutsy Gibbon distrugge il disco fisso dei laptop
scommetto che il manuale non lo hai letto!!8solo5 ha scritto: Come faccio a riabilitarlo??Aspetterò qualcosa di ufficiale per fare modifiche..
perchè lo avresti scoperto
Codice: Seleziona tutto
man hdparmPer adesso in questo 3D, nessuno è sicuro di niente! ...non siate avventati, potreste commettere dei gravi danni.volley_3 ha scritto: ma siamo sicuri? ke quella cosa bisogna cambiarla?
Dopotutto è ancora un Bug che non ha un Fix!
Un blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Non c'è scritto come riabilitarlo!
Codice: Seleziona tutto
-B Set Advanced Power Management feature, if the drive supports it.
A low value means aggressive power management and a high value
means better performance. A value of 255 will disable apm on the
drive.
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Mi spiace aver causato tutto questo allarme, ma penso che sia importante per chi usa portatili proteggere i propri dischi.
Un'ide sciocca.
Sembra che la cosa dipenda dal meccanismo di risparmio energetico (tra l'altro riguarda Linux in generale e non solo Ubuntu).
Se si avviasse il kernel disabilitando l'ACPI sarebbe sufficiente?
Un'ide sciocca.
Sembra che la cosa dipenda dal meccanismo di risparmio energetico (tra l'altro riguarda Linux in generale e non solo Ubuntu).
Se si avviasse il kernel disabilitando l'ACPI sarebbe sufficiente?
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
sì, se scrivi un valore pari a 255 si disabilita, contrariamente si abilita come specificato:8solo5 ha scritto: Non c'è scritto come riabilitarlo!
Codice: Seleziona tutto
-B Set Advanced Power Management feature, if the drive supports it. A low value means aggressive power management and a high value means better performance. A value of 255 will disable apm on the drive.
Codice: Seleziona tutto
A low value means aggressive power management and a high value
means better performance.
Ultima modifica di Anonymous il mercoledì 31 ottobre 2007, 16:00, modificato 1 volta in totale.
Un blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
ok riavvio allora, grazie.
Re: Gutsy Gibbon distrugge il disco fisso dei laptop
Forse è meglio che moderi il tono del titolo di questo 3D ...altrimenti altro che scatenare il PANICOOOO!mcz ha scritto: Mi spiace aver causato tutto questo allarme, ma penso che sia importante per chi usa portatili proteggere i propri dischi.
Comunque grazie dell'info che ci hai dato, poi sta a noi saperla gestire con il giusto peso.
Un blog scritto da un programmatore di insuccesso per coloro che aspirano a diventare tali: http://programmatorepercaso.blogspot.com
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 4 ospiti
