Pages : 1
#1 Le 29/04/2016, à 16:50
- sebdu74
Auto-test du disque dur au démarrage
Bonjour à toutes et à tous. Voici mon problème (pas si grave mais embêtant !)
A chaque démarrage du système celui-ci effectue un auto-test du disque dur, augmentant la durée du lancement.
Je sais qu'Ubuntu effectue tous les x démarrages un auto-test mais pour mon cas c'est à chaque fois.
Je me demandais si quelqu'un a déjà eu ce problème et si celui-ci peut être résolu.
Ceci m'arrive depuis que j'ai effectué la mise à jour vers la version 16.04
Merci d'avance.
Hors ligne
#2 Le 29/04/2016, à 17:57
- mikedafunk
Re : Auto-test du disque dur au démarrage
Bonjour,
Non ce n'est pas normal, mais c'est un paramètre comme un autre, voici la doc : https://doc.ubuntu-fr.org/verification_ … ce_choisie
Lubuntu 22.04 sur Lenovo AX81 et pas mal d'Amiga
Mon blog : http://mikedafunk.over-blog.org
Hors ligne
#3 Le 29/04/2016, à 19:23
- sebdu74
Re : Auto-test du disque dur au démarrage
Merci Mike. J'ai suivi le lien et j'ai fait un "sudo tune2fs -l /dev/sda4" et là quelle surprise : le maximum mount count est à -1 ! C'est peut-être pour cela que j'ai ce problème.
Je vais essayer de modifier cela avec la commande "sudo tune2fs -c 30 -i 0d /dev/sda4" pour mettre la vérification tous les 30 démarrages.
Hors ligne
#4 Le 29/04/2016, à 21:35
- mikedafunk
Re : Auto-test du disque dur au démarrage
Cool, tiens nous au courant !
Lubuntu 22.04 sur Lenovo AX81 et pas mal d'Amiga
Mon blog : http://mikedafunk.over-blog.org
Hors ligne
#5 Le 30/04/2016, à 07:26
- sebdu74
Re : Auto-test du disque dur au démarrage
Bonjour tout le monde. J'ai toujours le problème : j'ai mis le nombre de démarrages à 30 et j'ai aussi modifié la fréquence en mettant 3 jours.
Résultat : toujours l'auto-test au démarrage !
Ce n'est pas bien méchant. Je vais essayer de carrément désactiver la surveillance des disques dans l'utilitaire "Disques" pour voir...
Je vous tiens au jus ;-)
Hors ligne
#6 Le 30/04/2016, à 08:30
- moko138
Re : Auto-test du disque dur au démarrage
L'option -i 0d n'était sans doute pas une bonne idée. Mais
désactiver la surveillance des disques
c'est courir au-devant des pertes de données :
man tune2fs
(...)
Il est vivement recommandé d'activer soit -c (limite en nombre
de montages) soit -i (limite en temps) pour que e2fsck(8) véri‐
fie régulièrement et complètement le système de fichiers. Dans
le cas contraire vous risquez d'aboutir à des corruptions silen‐
cieuses du système de fichiers en cas de défauts dans les
disques, câbles, mémoires ou dans la conception du noyau et vous
ne vous en apercevrez que lorsqu'il sera trop tard, après la
perte des données.
- -
Je te suggère
sudo tune2fs -c 30 -i 14d /dev/sda4
Si tu éteins normalement ton pc
et que le problème persiste deux démarrages après ce réglage, il y aura lieu de suspecter un problème matériel, analysable par smartctl.
- -
Par ailleurs, on peut supposer que tes autres partitions linux ont leur vérification non réglée (je l'ai constaté chez moi avec stupeur, sur une partition ext4 âgée de plusieurs mois.
Pour être fixés, penser à lire sur chaque partition linux le retour de
sudo tune2fs -l /dev/<à compléter> | grep -Ei "Mount count|Maximum mount|Filesystem created|Last checked"
%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel : À la découverte de dcraw
Hors ligne
#7 Le 30/04/2016, à 10:08
- sebdu74
Re : Auto-test du disque dur au démarrage
Oui je sais que ce n'est pas conseillé de stopper la vérification, c'est juste pour essayer. Je vais faire les manipulations que tu m'as prescrites.
Hors ligne
#8 Le 30/04/2016, à 10:25
- sebdu74
Re : Auto-test du disque dur au démarrage
J'ai testé avec smartctl et je me retrouve avec des erreurs inquiétantes :
Error 68 occurred at disk power-on lifetime: 160 hours (6 days + 16 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
01 51 08 a8 0c 1d e7 Error: AMNF 8 sectors at LBA = 0x071d0ca8 = 119344296
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 a8 0c 1d e7 00 00:31:03.125 READ DMA
ec 00 00 00 00 00 a0 00 00:31:00.750 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 00 00:31:00.750 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 00 00:31:00.687 IDENTIFY DEVICE
???
Hors ligne
#9 Le 30/04/2016, à 10:39
- moko138
Re : Auto-test du disque dur au démarrage
%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel : À la découverte de dcraw
Hors ligne
#10 Le 30/04/2016, à 11:50
- sebdu74
Re : Auto-test du disque dur au démarrage
$ sudo smartctl /dev/sda1 -a
[sudo] Mot de passe de seb :
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-21-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: SAMSUNG SpinPoint M5
Device Model: SAMSUNG HM250JI
Serial Number: S0TVJD0QB32235
LU WWN Device Id: 5 0f0000 001232235
Firmware Version: HS100-08
User Capacity: 250 059 350 016 bytes [250 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS, ATA/ATAPI-7 T13/1532D revision 0
SATA Version is: SATA 2.5, 1.5 Gb/s
Local Time is: Sat Apr 30 12:49:38 2016 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: (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: ( 112) 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: ( 112) minutes.
SCT capabilities: (0x003f) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
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 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0007 252 252 025 Pre-fail Always - 3062
4 Start_Stop_Count 0x0032 092 092 000 Old_age Always - 8282
5 Reallocated_Sector_Ct 0x0033 099 099 010 Pre-fail Always - 13
7 Seek_Error_Rate 0x000e 252 252 051 Old_age Always - 0
8 Seek_Time_Performance 0x0024 252 252 015 Old_age Offline - 0
9 Power_On_Hours 0x0032 096 096 000 Old_age Always - 2244
10 Spin_Retry_Count 0x0032 100 100 051 Old_age Always - 10
12 Power_Cycle_Count 0x0032 096 096 000 Old_age Always - 4475
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 5840
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 706
194 Temperature_Celsius 0x0022 145 085 000 Old_age Always - 31 (Min/Max 8/51)
195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age Always - 3
196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0
197 Current_Pending_Sector 0x0012 252 097 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 252 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0036 200 200 000 Old_age Always - 3
200 Multi_Zone_Error_Rate 0x000a 100 100 000 Old_age Always - 2
201 Soft_Read_Error_Rate 0x0032 252 252 000 Old_age Always - 0
223 Load_Retry_Count 0x0032 100 100 000 Old_age Always - 87
225 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 6835
SMART Error Log Version: 1
ATA Error Count: 68 (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 68 occurred at disk power-on lifetime: 160 hours (6 days + 16 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
01 51 08 a8 0c 1d e7 Error: AMNF 8 sectors at LBA = 0x071d0ca8 = 119344296
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 a8 0c 1d e7 00 00:31:03.125 READ DMA
ec 00 00 00 00 00 a0 00 00:31:00.750 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 00 00:31:00.750 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 00 00:31:00.687 IDENTIFY DEVICE
Error 67 occurred at disk power-on lifetime: 160 hours (6 days + 16 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
01 51 08 a8 0c 1d e7 Error: AMNF 8 sectors at LBA = 0x071d0ca8 = 119344296
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 a8 0c 1d e7 00 00:31:00.625 READ DMA
ec 00 00 00 00 00 a0 00 00:30:58.250 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 00 00:30:58.250 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 00 00:30:58.250 IDENTIFY DEVICE
Error 66 occurred at disk power-on lifetime: 160 hours (6 days + 16 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
01 51 08 a8 0c 1d e7 Error: AMNF 8 sectors at LBA = 0x071d0ca8 = 119344296
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 a8 0c 1d e7 00 00:30:58.187 READ DMA
ec 00 00 00 00 00 a0 00 00:30:55.812 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 00 00:30:55.812 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 00 00:30:55.750 IDENTIFY DEVICE
Error 65 occurred at disk power-on lifetime: 160 hours (6 days + 16 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
01 51 08 a8 0c 1d e7 Error: AMNF 8 sectors at LBA = 0x071d0ca8 = 119344296
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 a8 0c 1d e7 00 00:30:43.062 READ DMA
ec 00 00 00 00 00 a0 00 00:30:40.625 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 00 00:30:40.625 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 00 00:30:40.625 IDENTIFY DEVICE
Error 64 occurred at disk power-on lifetime: 160 hours (6 days + 16 hours)
When the command that caused the error occurred, the device was in an unknown state.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
01 51 08 a8 0c 1d e7 Error: AMNF 8 sectors at LBA = 0x071d0ca8 = 119344296
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 a8 0c 1d e7 00 00:30:40.562 READ DMA
ec 00 00 00 00 00 a0 00 00:30:38.187 IDENTIFY DEVICE
ef 03 42 00 00 00 a0 00 00:30:38.187 SET FEATURES [Set transfer mode]
ec 00 00 00 00 00 a0 00 00:30:38.125 IDENTIFY DEVICE
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% 2243 -
SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Completed [00% left] (0-65535)
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.
Hors ligne