Salute mentale di un HD
Salute mentale di un HD
Volevo chiedere se esiste un programma o un modo per sapere come stanno gli harddisk, in windows ci sono svariati tool per conoscere la salute degli hd ma su linux? Grazie mille per le risposte.
- Arcovoltaico77
- Entusiasta Emergente

- Messaggi: 1082
- Iscrizione: giovedì 26 luglio 2007, 9:52
Re: Salute mentale di un HD
se vuoi controllare un file system alla ricerca di settori/tracce corrotte, poenso ti basti dare
da terminale 
per le varie opzioni leggi il man (b2b)
Codice: Seleziona tutto
sudo fsckper le varie opzioni leggi il man (b2b)
" Usare Linux é come mangiare dalla suocera, mangi bene e non spendi nulla! "
Re: Salute mentale di un HD
uhm....
giuseppe@kerbero:~$ sudo fsck
[sudo] password for giuseppe:
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? no
check aborted.
giuseppe@kerbero:~$
E se mi spacca tutto?
giuseppe@kerbero:~$ sudo fsck
[sudo] password for giuseppe:
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? no
check aborted.
giuseppe@kerbero:~$
E se mi spacca tutto?
Re: Salute mentale di un HD
giuseppe@kerbero:~$ sudo fsck
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/dev/sda1: recovering journal
Clearing orphaned inode 2294052 (uid=1000, gid=1000, mode=0100600, size=24600)
Clearing orphaned inode 2998281 (uid=1000, gid=1000, mode=0140755, size=0)
/dev/sda1: clean, 157561/4702208 files, 2039515/18786001 blocks
giuseppe@kerbero:~$
che vuol dire?
fsck 1.40.8 (13-Mar-2008)
e2fsck 1.40.8 (13-Mar-2008)
/dev/sda1 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
Do you really want to continue (y/n)? yes
/dev/sda1: recovering journal
Clearing orphaned inode 2294052 (uid=1000, gid=1000, mode=0100600, size=24600)
Clearing orphaned inode 2998281 (uid=1000, gid=1000, mode=0140755, size=0)
/dev/sda1: clean, 157561/4702208 files, 2039515/18786001 blocks
giuseppe@kerbero:~$
che vuol dire?
Re: Salute mentale di un HD
Significa che il disco contiene cluster rovinati e si deve tentare il recupero. Ma questo deve essere fatto con la partizione smontata.
Meglio usare ad esempio il CD di super-grub e fare il fsck /dev/sda1 con quello.
Meglio usare ad esempio il CD di super-grub e fare il fsck /dev/sda1 con quello.
Re: Salute mentale di un HD
Cioè? una sorta di LiveCD? Uhm.... ho l'hd del vaio rovinato???? Uffffffffffffffffhan1411 ha scritto: Meglio usare ad esempio il CD di super-grub e fare il fsck /dev/sda1 con quello.
Re: Salute mentale di un HD
Leggi in fondo a questa pagina:
http://wiki.ubuntu-it.org/Amministrazio ... supergrub)
http://wiki.ubuntu-it.org/Amministrazio ... supergrub)
Re: Salute mentale di un HD
Grazie mille!
Volo a misterizzare un cd.....
speriamo non sia troppo distrutto! vabbeh al limite cambio hd! tanto da MW li vendono a poco!!! >:( >:( >:(
Volo a misterizzare un cd.....
speriamo non sia troppo distrutto! vabbeh al limite cambio hd! tanto da MW li vendono a poco!!! >:( >:( >:(
Re: Salute mentale di un HD
Se vuoi conoscere lo stato dell'hd dal punto di vista hw puoi usare lo s.m.a.r.t. del disco stesso. In linux c'è il pacchetto smartmontools e ti permette di interrogare lo s.m.a.r.t di ogni disco.
"Chi c**a sott' 'a neve, pure si ffa 'a bbuca e poi 'a copre, quanno 'a neve se scioje, 'a mm***a vie' sempre fori" T. Milian
Re: Salute mentale di un HD
Grazie.....
ma come si fa partire?
giuseppe@kerbero:~$ sudo apt-get install smartmontools
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Reading state information... Fatto
Pacchetti raccomandati:
mailx mailutils
I seguenti pacchetti NUOVI (NEW) saranno installati:
smartmontools
0 aggiornati, 1 installati, 0 da rimuovere e 0 non aggiornati.
È necessario prendere 288kB di archivi.
After this operation, 705kB of additional disk space will be used.
Get:1 http://it.archive.ubuntu.com hardy/main smartmontools 5.37-6ubuntu1 [288kB]
Scaricato 288kB in 1s (254kB/s)
Selezionato il pacchetto smartmontools, che non lo era.
(Lettura del database ... 131886 file e directory attualmente installati.)
Spacchetto smartmontools (da .../smartmontools_5.37-6ubuntu1_i386.deb) ...
Configuro smartmontools (5.37-6ubuntu1) ...
giuseppe@kerbero:~$ smartmontools
bash: smartmontools: command not found
ma come si fa partire?
giuseppe@kerbero:~$ sudo apt-get install smartmontools
Lettura della lista dei pacchetti in corso... Fatto
Generazione dell'albero delle dipendenze in corso
Reading state information... Fatto
Pacchetti raccomandati:
mailx mailutils
I seguenti pacchetti NUOVI (NEW) saranno installati:
smartmontools
0 aggiornati, 1 installati, 0 da rimuovere e 0 non aggiornati.
È necessario prendere 288kB di archivi.
After this operation, 705kB of additional disk space will be used.
Get:1 http://it.archive.ubuntu.com hardy/main smartmontools 5.37-6ubuntu1 [288kB]
Scaricato 288kB in 1s (254kB/s)
Selezionato il pacchetto smartmontools, che non lo era.
(Lettura del database ... 131886 file e directory attualmente installati.)
Spacchetto smartmontools (da .../smartmontools_5.37-6ubuntu1_i386.deb) ...
Configuro smartmontools (5.37-6ubuntu1) ...
giuseppe@kerbero:~$ smartmontools
bash: smartmontools: command not found
- Arcovoltaico77
- Entusiasta Emergente

- Messaggi: 1082
- Iscrizione: giovedì 26 luglio 2007, 9:52
Re: Salute mentale di un HD
puoi guardare l' elenco dei file che il pacchetto ha installato con
il file che trovi sotto /usr/bin è il comando da chiamare
(spero di essermi ricordato l' opzione giusta)
Codice: Seleziona tutto
sudo dpkg -L smartmontools (spero di essermi ricordato l' opzione giusta)
" Usare Linux é come mangiare dalla suocera, mangi bene e non spendi nulla! "
Re: Salute mentale di un HD
Non riesco ad usare il programma!
nelle pagine di sourceforge dice di dare il comando smartctl /dev/sda ma il mio output è il seguente:
giuseppe@kerbero:~$ sudo smartctl /dev/sda1
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
giuseppe@kerbero:~$
nelle pagine di sourceforge dice di dare il comando smartctl /dev/sda ma il mio output è il seguente:
giuseppe@kerbero:~$ sudo smartctl /dev/sda1
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
giuseppe@kerbero:~$
Re: Salute mentale di un HD
Il comando corretto è
giuseppe@kerbero:~$ sudo smartctl /dev/sda
giuseppe@kerbero:~$ sudo smartctl /dev/sda
"Chi c**a sott' 'a neve, pure si ffa 'a bbuca e poi 'a copre, quanno 'a neve se scioje, 'a mm***a vie' sempre fori" T. Milian
Re: Salute mentale di un HD
ecco i risultati.... ma purtroppo non so interpretarli..... >:(
giuseppe@kerbero:~$ sudo smartctl -a /dev/sda
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: TOSHIBA MK8009GAH
Serial Number: 7765W58AW
Firmware Version: BS011A
User Capacity: 80,026,361,856 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 6
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Tue Jul 22 10:59:14 2008 CEST
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: ( 434) 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: ( 86) 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 050 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0
3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 1209
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 1236
5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 050 Pre-fail Offline - 0
9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 2871
10 Spin_Retry_Count 0x0033 124 100 030 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 808
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 2
193 Load_Cycle_Count 0x0032 097 097 000 Old_age Always - 37100
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 44 (Lifetime Min/Max 13/58)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
220 Disk_Shift 0x0002 100 100 000 Old_age Always - 234
222 Loaded_Hours 0x0032 095 095 000 Old_age Always - 2131
223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 0
224 Load_Friction 0x0022 100 100 000 Old_age Always - 0
226 Load-in_Time 0x0026 100 100 000 Old_age Always - 303
240 Head_Flying_Hours 0x0001 100 100 001 Pre-fail Offline - 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.
giuseppe@kerbero:~$
giuseppe@kerbero:~$ sudo smartctl -a /dev/sda
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: TOSHIBA MK8009GAH
Serial Number: 7765W58AW
Firmware Version: BS011A
User Capacity: 80,026,361,856 bytes
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: 6
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Tue Jul 22 10:59:14 2008 CEST
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: ( 434) 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: ( 86) 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 050 Pre-fail Always - 0
2 Throughput_Performance 0x0005 100 100 050 Pre-fail Offline - 0
3 Spin_Up_Time 0x0027 100 100 001 Pre-fail Always - 1209
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 1236
5 Reallocated_Sector_Ct 0x0033 100 100 050 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 050 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 100 100 050 Pre-fail Offline - 0
9 Power_On_Hours 0x0032 093 093 000 Old_age Always - 2871
10 Spin_Retry_Count 0x0033 124 100 030 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 808
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 2
193 Load_Cycle_Count 0x0032 097 097 000 Old_age Always - 37100
194 Temperature_Celsius 0x0022 100 100 000 Old_age Always - 44 (Lifetime Min/Max 13/58)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
220 Disk_Shift 0x0002 100 100 000 Old_age Always - 234
222 Loaded_Hours 0x0032 095 095 000 Old_age Always - 2131
223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 0
224 Load_Friction 0x0022 100 100 000 Old_age Always - 0
226 Load-in_Time 0x0026 100 100 000 Old_age Always - 303
240 Head_Flying_Hours 0x0001 100 100 001 Pre-fail Offline - 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.
giuseppe@kerbero:~$
Re: Salute mentale di un HD
In realtà il programma lavora usando la statistica e non da un risultato immediato. C'è infatti smartmond che è un demone e che tiene traccia del comportamento del tuo disco per un certo periodo e poi con smartctl puoi vedere i dati relativi all'uso. Poi devi essere tu ad interpretarli per capire se i parametri sono in un range normale o se c'è qualcosa che non va. Per avere un'idea dei range normali, credo che ci siano indicazioni sulla guida, ma vado a memoria perchè è parecchio che non lo uso. In qs casi google ti da una mano. Cmq dando un'occhiata veloce mi sembra che l'hd sia ancora in buono stato.
"Chi c**a sott' 'a neve, pure si ffa 'a bbuca e poi 'a copre, quanno 'a neve se scioje, 'a mm***a vie' sempre fori" T. Milian
Re: Salute mentale di un HD
Mi basta questo..... GRAZIE!gianmpu ha scritto: Cmq dando un'occhiata veloce mi sembra che l'hd sia ancora in buono stato.
Re: Salute mentale di un HD
Linux "monta" le partizioni. Per cui, un file system "montato" non puo' essere controllato, altrimenti rischi di sputtanarlo (perdonate il francesismo).
Per poter fare un chkdsk (per usare un termine caro ai windowsiani), devi farlo con il file system "smontato".
Puoi farlo anche in funzione, ma se devi smontare la root ... beh, e' chiaro che poi non va piu' il sistema.
La soluzione e' quella di avviare il sistema senza montare i dischi. Come ? Con il cd di installazione di Ubuntu.
Basta quello, nessun altro cd come il supergrub. Il cd di instalalzione di ubuntu e' un livecd, per cui avvi il sistema da cd e di conseguenza non monti le partizioni. Una volta caricato il livecd, apri un terminale e digiti fsck o e2fsck (se hai formattato in ext2/3). Non avrai piu' nessun errore di mounting.
Inoltre, se vuoi avviare un self-test dell'hard disk puoi usare smartctl -t /dev/sda e qualcosa in piu' dovrebbe dirti.
Ah, la prossima volta, l'output mettilo tra i tag [ code ]
Per poter fare un chkdsk (per usare un termine caro ai windowsiani), devi farlo con il file system "smontato".
Puoi farlo anche in funzione, ma se devi smontare la root ... beh, e' chiaro che poi non va piu' il sistema.
La soluzione e' quella di avviare il sistema senza montare i dischi. Come ? Con il cd di installazione di Ubuntu.
Basta quello, nessun altro cd come il supergrub. Il cd di instalalzione di ubuntu e' un livecd, per cui avvi il sistema da cd e di conseguenza non monti le partizioni. Una volta caricato il livecd, apri un terminale e digiti fsck o e2fsck (se hai formattato in ext2/3). Non avrai piu' nessun errore di mounting.
Inoltre, se vuoi avviare un self-test dell'hard disk puoi usare smartctl -t /dev/sda e qualcosa in piu' dovrebbe dirti.
Ah, la prossima volta, l'output mettilo tra i tag [ code ]
Ubuntu User # 19371
Fisso: P4 2533 - Nvidia 7600 GT AGP 256 Mb - 1 Gb RAM DDR - 360 Gb Hd - 1500 Gb Hd USB - Ubuntu 11.10 32bit - Fastweb Fibra Ottica
Portatile: Asus K52J - Intel i5 430 - Nvidia 310M/Intel i915 - 4 Gb RAM - 320 Gb Hd - Ubuntu 11.10 64bit
Muletto: HP Compaq dc7100 - P4 Core Duo - ATI Radeon X300 - 2gb RAM - 40 Gb HD - Ubuntu 11.10 32bit
Fisso: P4 2533 - Nvidia 7600 GT AGP 256 Mb - 1 Gb RAM DDR - 360 Gb Hd - 1500 Gb Hd USB - Ubuntu 11.10 32bit - Fastweb Fibra Ottica
Portatile: Asus K52J - Intel i5 430 - Nvidia 310M/Intel i915 - 4 Gb RAM - 320 Gb Hd - Ubuntu 11.10 64bit
Muletto: HP Compaq dc7100 - P4 Core Duo - ATI Radeon X300 - 2gb RAM - 40 Gb HD - Ubuntu 11.10 32bit
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 8 ospiti
