Newsgroup: it.comp.os.linux.iniziare
Titolo: appunti disaster recovery

Ciao a tutti,
Dopo aver fatto un innumerevole numero di pasticci combinati sui sistemi 
gnu/linux che uso, ho imparato come venirne a capo e soprattutto come 
prevenirli. 
Visto che i miei appunti potrebbero essere utili a qualcun altro (e 
possibilmente evitargli i guai che ho avuto io...), li ho pubblicati sul mio 
blog, all'indirizzo:
http://gerlos.altervista.org/mio-piano-disaster-recovery-linux
Se avete opinioni, critiche o correzioni da suggerire non siate timidi, 
fatevi sotto!
ciao
gerlos
-- 
"Solo lo scienziato è vero poeta: ci dà la luna, ci promette le stelle,
 ci farà un nuovo universo se sarà il caso."
                 < 
http://gerlos.altervista.org
 >
 gerlos  +- - - >  gnu/linux registred user #311588

 fatevi sotto!
Per ora sono alla pagina su smart	
| smartctl -i /dev/sda
ecc.
richiedono di premettere sudo in ubuntu
| smartctl -l selftest /dev/sda
| mostra il log dei testi automatici
2 righe per spiegare  i "testi automatici" ?
:)
| smartctl -a /dev/sda
purtroppo pare non funzionare su un hd esterno usb
su un disco interno invece mi rileva alcuni errori (l'utily del
costruttore, ibm drive fitness test,  aveva rilevato alcuni bad
sectors ma poi asseriva di aver corretto il problema...)
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
[...]
SMART Error Log Version: 1
ATA Error Count: 985 (device log contains only the most recent five errors)
	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 985 occurred at disk power-on lifetime: 21890 hours (912 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
  -- -- -- -- -- -- --
  10 51 02 8f 54 a8 e4  Error: IDNF 2 sectors at LBA = 0x04a8548f = 78140559
  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 02 8f 54 a8 e4 00      02:03:50.000  READ DMA
  c8 00 02 8e 54 a8 e4 00      02:03:49.900  READ DMA
  c8 00 02 8d 54 a8 e4 00      02:03:49.900  READ DMA
  c8 00 02 8c 54 a8 e4 00      02:03:49.800  READ DMA
  ca 00 08 d7 4d 18 e3 00      02:03:49.800  WRITE DMA
Error 984 occurred at disk power-on lifetime: 21890 hours (912 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
  -- -- -- -- -- -- --
  10 51 02 8e 54 a8 e4  Error: IDNF 2 sectors at LBA = 0x04a8548e = 78140558
  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 02 8e 54 a8 e4 00      02:03:49.900  READ DMA
  c8 00 02 8d 54 a8 e4 00      02:03:49.900  READ DMA
  c8 00 02 8c 54 a8 e4 00      02:03:49.800  READ DMA
  ca 00 08 d7 4d 18 e3 00      02:03:49.800  WRITE DMA
  c8 00 02 8b 54 a8 e4 00      02:03:49.700  READ DMA
Error 983 occurred at disk power-on lifetime: 21890 hours (912 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
  -- -- -- -- -- -- --
  10 51 02 8d 54 a8 e4  Error: IDNF 2 sectors at LBA = 0x04a8548d = 78140557
  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 02 8d 54 a8 e4 00      02:03:49.900  READ DMA
  c8 00 02 8c 54 a8 e4 00      02:03:49.800  READ DMA
  ca 00 08 d7 4d 18 e3 00      02:03:49.800  WRITE DMA
  c8 00 02 8b 54 a8 e4 00      02:03:49.700  READ DMA
  ca 00 08 c7 4d 18 e3 00      02:03:49.700  WRITE DMA
Error 982 occurred at disk power-on lifetime: 21890 hours (912 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
  -- -- -- -- -- -- --
  10 51 02 8c 54 a8 e4  Error: IDNF 2 sectors at LBA = 0x04a8548c = 78140556
  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 02 8c 54 a8 e4 00      02:03:49.800  READ DMA
  ca 00 08 d7 4d 18 e3 00      02:03:49.800  WRITE DMA
  c8 00 02 8b 54 a8 e4 00      02:03:49.700  READ DMA
  ca 00 08 c7 4d 18 e3 00      02:03:49.700  WRITE DMA
  ca 00 08 b7 4d 18 e3 00      02:03:49.700  WRITE DMA
Error 981 occurred at disk power-on lifetime: 21890 hours (912 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
  -- -- -- -- -- -- --
  10 51 02 8b 54 a8 e4  Error: IDNF 2 sectors at LBA = 0x04a8548b = 78140555
  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 02 8b 54 a8 e4 00      02:03:49.700  READ DMA
  ca 00 08 c7 4d 18 e3 00      02:03:49.700  WRITE DMA
  ca 00 08 b7 4d 18 e3 00      02:03:49.700  WRITE DMA
  c8 00 02 8a 54 a8 e4 00      02:03:49.600  READ DMA
  ca 00 08 37 2a 18 e3 00      02:03:49.600  WRITE DMA
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%     22359         -
# 2  Short offline       Completed without error       00%     21983         -
# 3  Short offline       Completed without error       00%     21962         -
# 4  Short offline       Completed without error       00%     21822         -
# 5  Short offline       Completed without error       00%     21282         -
# 6  Short offline       Completed without error       00%     21252         -
# 7  Extended offline    Completed: read failure       80%     21207         6329727
# 8  Short offline       Completed without error       00%     21204         -
# 9  Extended offline    Completed: read failure       80%     21165         6329727
#10  Short offline       Completed without error       00%     21163         -
#11  Short offline       Completed without error       00%     19672         -
#12  Short offline       Completed without error       00%     19672         -
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.

 sectors ma poi asseriva di aver corretto il problema...)
Ho ripetuto la verifica con il Drive Fitness Test IBM-Hitachi e d� il
semaforo verde, tutto OK, anche con il test Advanced e con lo Smart.
Invece smartcl d� gli errori che ho riportato.
Si tratta di un hd ibm travelstar atapi-6.