Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 22-07-2020 17:42:45

Debian Alain
Adhérent(e)
Lieu : Bretagne
Distrib. : stable / testing
Noyau : Linux 5.8.0-1-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

conky et IDs usb

bonsoir smile  smile  smile

voilà le tableau :
je possède un boitier usb icybox 11584 (amazon)

aussi connu sous le nom de IB 3640 SU 3 (ldlc)

ID USB :

lsusb

 ... / ...
Bus 004 Device 002: ID 152d:0567 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
... / ...



mon conky :

$hr
${alignc}Reallocated_Sector_Ct     hdparm -t (Mo/Sec.)

sda : ${execi 60 lsblk -f /dev/sda | grep "sda1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sda | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sda | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sda | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdb : ${execi 60 lsblk -f /dev/sdb | grep "sdb1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdb | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdb | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdb | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdc : ${execi 60 lsblk -f /dev/sdc | grep "sdc1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdc | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdc | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdc | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdd : ${execi 60 lsblk -f /dev/sdd | grep "sdd1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdd | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdd | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdd | grep "Timing buffered disk reads:" | awk '{print $11}'}
sde : ${execi 60 lsblk -f /dev/sde | grep "sde1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sde | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sde | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sde | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdf : ${execi 60 lsblk -f /dev/sdf | grep "sdf1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdf | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdf | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdf | grep "Timing buffered disk reads:" | awk '{print $11}'}
SSD : ${execi 60 sudo smartctl -a /dev/nvme0n1 | grep "Model Number:" | awk '{print $NF}'} : ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Data Units Written:" |awk '{sub(/^\[/, "",$5); print $5 " TBW "}'}/ ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Percentage Used:" | awk '{print $NF}'} used  



me donne ceci :
lAYBipl.png

ls -l /dev/disk/by-path

(merci arpinux) me donne ceci (disques boitier usb seulement) :

total 0
... / ...
lrwxrwxrwx 1 root root  9 juil. 22 17:47 pci-0000:08:00.0-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sde
lrwxrwxrwx 1 root root 10 juil. 22 17:47 pci-0000:08:00.0-usb-0:1:1.0-scsi-0:0:0:0-part1 -> ../../sde1
lrwxrwxrwx 1 root root  9 juil. 22 17:47 pci-0000:08:00.0-usb-0:1:1.0-scsi-0:0:0:1 -> ../../sdf
lrwxrwxrwx 1 root root 10 juil. 22 17:48 pci-0000:08:00.0-usb-0:1:1.0-scsi-0:0:0:1-part1 -> ../../sdf1



je me demande ,

le boitier ayant son ID usb et chaque disque ayant son ID /dev/sdX ,
pourquoi n'y a t il que le ID scsi qui change ? et pas l'ID usb ?
hormis les brancher chacun dans un boîtier séparé (donc , boitiers , alims , câbles et tout le bazar ...)
est il normal que les disques n'aient en tout et pour tout  que l'ID usb du boîtier ?

cette page m'aide un peu :  https://unix.stackexchange.com/question … usb-or-hdd

udevadm info --query=all --name=sdd | grep ID_BUS

E: ID_BUS=ata


udevadm info --query=all --name=sdf | grep ID_BUS

E: ID_BUS=usb



udevadm info --query=all --name=sdd | grep ID_BUS | awk '{print $NF}'


ID_BUS=ata


j'aurai aimé n'afficher que les 3 derniers caractères après le signe égal .
savoir ici : "ata" mais je sais pas  faire .

udevadm info --query=all --name=sdd | grep ID_BUS | cut -c11-

ata

Dernière modification par Debian Alain (22-07-2020 18:55:50)

En ligne

#2 22-07-2020 19:14:27

Debian Alain
Adhérent(e)
Lieu : Bretagne
Distrib. : stable / testing
Noyau : Linux 5.8.0-1-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : conky et IDs usb

merci à arpinux er ksmoin0 (irc) :

$hr
${alignc}Reallocated_Sector_Ct     hdparm -t (Mo/Sec.)

(${execi 60 udevadm info --query=all --name=sda | grep ID_BUS | cut -c11-}) sda : ${execi 60 lsblk -f /dev/sda | grep "sda1" | awk '{print $4}'} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sda | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sda | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sda | grep "Timing buffered disk reads:" | awk '{print $11}'}
(${execi 60 udevadm info --query=all --name=sdb | grep ID_BUS | cut -c11-}) sdb : ${execi 60 lsblk -f /dev/sdb | grep "sdb1" | awk '{print $4}'} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdb | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdb | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdb | grep "Timing buffered disk reads:" | awk '{print $11}'}
(${execi 60 udevadm info --query=all --name=sdc | grep ID_BUS | cut -c11-}) sdc : ${execi 60 lsblk -f /dev/sdc | grep "sdc1" | awk '{print $4}'} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdc | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdc | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdc | grep "Timing buffered disk reads:" | awk '{print $11}'}
(${execi 60 udevadm info --query=all --name=sdd | grep ID_BUS | cut -c11-}) sdd : ${execi 60 lsblk -f /dev/sdd | grep "sdd1" | awk '{print $4}'} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdd | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdd | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdd | grep "Timing buffered disk reads:" | awk '{print $11}'}
(${execi 60 udevadm info --query=all --name=sde | grep ID_BUS | cut -c11-}) sde : ${execi 60 lsblk -f /dev/sde | grep "sde1" | awk '{print $4}'} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sde | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sde | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sde | grep "Timing buffered disk reads:" | awk '{print $11}'}
(${execi 60 udevadm info --query=all --name=sdf | grep ID_BUS | cut -c11-}) sdf : ${execi 60 lsblk -f /dev/sdf | grep "sdf1" | awk '{print $4}'} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdf | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdf | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdf | grep "Timing buffered disk reads:" | awk '{print $11}'}
SSD : ${execi 60 sudo smartctl -a /dev/nvme0n1 | grep "Model Number:" | awk '{print $NF}'} : ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Data Units Written:" |awk '{sub(/^\[/, "",$5); print $5 " TBW "}'}/ ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Percentage Used:" | awk '{print $NF}'} used
 



HcurfcK.png

En ligne

#3 22-07-2020 20:16:04

MicP
Membre
Inscription : 29-02-2016

Re : conky et IDs usb

Bonjour Debian Alain

udevadm info --query=all --name=sda | grep ID_BUS | cut -c11

pourrait être remplacé par :

udevadm info --name=sda | awk -F= '/ID_BUS/{print $2}'



lsblk -f /dev/sda | grep "sda1" | awk '{print $4}'}

peut aussi s'écrire sans grep :

lsblk /dev/sda1 -noLABEL



grep -iE "Device Model:" | awk '{print $NF}'

peut aussi s'écrire sans grep :

awk '/Device Model:/{print $NF}'



grep "5 Reallocated_Sector_Ct" | awk '{print $10}'

peut aussi s'écrire sans grep :

awk '/5 Reallocated_Sector_Ct/{print $10}'



grep "Timing buffered disk reads:" | awk '{print $11}'

peut aussi s'écrire sans grep :

awk '/Timing buffered disk reads:/{print $11}'

Dernière modification par MicP (22-07-2020 20:20:23)

Hors ligne

#4 22-07-2020 20:56:31

Debian Alain
Adhérent(e)
Lieu : Bretagne
Distrib. : stable / testing
Noyau : Linux 5.8.0-1-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

En ligne

#5 22-07-2020 21:58:40

MicP
Membre
Inscription : 29-02-2016

Re : conky et IDs usb

Au cas où …

Je vois que tu as 2 disques (sda sdb) qui sont de la même marque et du même modèle.

J'en ai 5 comme ça, et pour les différencier, j'utilise leur numéro de série.
On retrouve aussi ce numéro de série indiqué sur l'étiquette qui est collée sur le disque.

On retrouve aussi ce même numéro de série
dans les noms des liens qui sont dans le répertoire /dev/disk/by-id

Dernière modification par MicP (22-07-2020 22:03:55)

Hors ligne

#6 22-07-2020 23:11:58

arpinux
CA Debian-Facile
Lieu : Montréal d'aude
Distrib. : debian stable
Noyau : 4.9-amd64
(G)UI : noDE
Inscription : 30-06-2016
Site Web

Re : conky et IDs usb

merci MicP pour les commandes smile

nous sommes tous différents ... c'est notre point commun ...
Association Debian-Facile -- Les cahiers du débutant -- ISO Debian-Facile -- anar'prez

Hors ligne

#7 23-07-2020 06:56:55

Debian Alain
Adhérent(e)
Lieu : Bretagne
Distrib. : stable / testing
Noyau : Linux 5.8.0-1-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : conky et IDs usb

les WD20EARX sont des vieux disques mis là en remplacement des seagate qui m'ont lâché .
Ils n'ont pas  vocation à y rester eternellement .
j'ai sauvegardé mes données sur plusieurs supports .
mais si je peux garder celui là , ce sera bien .

j'envisage , MicP, de remplacer le ST2000 par un crucial 1To .
petit souci (mineur tu diras) je ne sais pas quel support prendre pour faire l'adaptation 2.5 pouces / 3.5 pouces .
https://www.ldlc.com/informatique/piece … rne/c4667/

jusqu'ici , il fonctionne bien mais ses rapports smart sont pas rassurants .

sudo smartctl -a /dev/sdd


smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.7.0-1-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda Green (AF)
Device Model:     ST2000DL003-9VT166
Serial Number:    6YD1QBLS
LU WWN Device Id: 5 000c50 0465b459f
Firmware Version: CC3C
User Capacity:    2000398934016 bytes [2,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5900 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Jul 23 09:54:13 2020 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:    (  623) 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:    (   1) minutes.
Extended self-test routine
recommended polling time:    ( 343) minutes.
Conveyance self-test routine
recommended polling time:    (   2) minutes.
SCT capabilities:          (0x30b7) SCT Status supported.
          SCT Feature Control supported.
          SCT Data Table supported.

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   115   088   006    Pre-fail  Always       -       98520240
  3 Spin_Up_Time            0x0003   093   090   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   096   096   020    Old_age   Always       -       4555
  5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   081   060   030    Pre-fail  Always       -       39646107145
  9 Power_On_Hours          0x0032   033   033   000    Old_age   Always       -       59013
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   096   096   020    Old_age   Always       -       4550
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       836
188 Command_Timeout         0x0032   100   095   000    Old_age   Always       -       47245361783
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   067   050   045    Old_age   Always       -       33 (Min/Max 22/33)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1524
193 Load_Cycle_Count        0x0032   098   098   000    Old_age   Always       -       4555
194 Temperature_Celsius     0x0022   033   050   000    Old_age   Always       -       33 (0 17 0 0 0)
195 Hardware_ECC_Recovered  0x001a   033   003   000    Old_age   Always       -       98520240
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       -       10
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       59078 (250 202 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       901153515
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       1114243956

SMART Error Log Version: 1
ATA Error Count: 834 (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 834 occurred at disk power-on lifetime: 37677 hours (1569 days + 21 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 f8 87 9a 00  Error: UNC at LBA = 0x009a87f8 = 10127352

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 00 30 8a 9a 40 00   7d+11:40:04.319  READ FPDMA QUEUED
  60 00 00 30 89 9a 40 00   7d+11:40:04.319  READ FPDMA QUEUED
  60 00 00 30 88 9a 40 00   7d+11:40:04.318  READ FPDMA QUEUED
  60 00 00 30 87 9a 40 00   7d+11:40:04.318  READ FPDMA QUEUED
  60 00 00 30 86 9a 40 00   7d+11:40:04.318  READ FPDMA QUEUED

Error 833 occurred at disk power-on lifetime: 37677 hours (1569 days + 21 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 f8 87 9a 00  Error: UNC at LBA = 0x009a87f8 = 10127352

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 20 e0 87 9a 40 00   7d+11:40:00.728  READ FPDMA QUEUED
  61 00 20 40 d0 a4 40 00   7d+11:40:00.727  WRITE FPDMA QUEUED
  60 00 20 c0 87 9a 40 00   7d+11:40:00.727  READ FPDMA QUEUED
  61 00 20 20 d0 a4 40 00   7d+11:40:00.727  WRITE FPDMA QUEUED
  60 00 20 a0 87 9a 40 00   7d+11:40:00.727  READ FPDMA QUEUED

Error 832 occurred at disk power-on lifetime: 37655 hours (1568 days + 23 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 f8 87 9a 00  Error: UNC at LBA = 0x009a87f8 = 10127352

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 00 30 8a 9a 40 00   6d+14:09:31.194  READ FPDMA QUEUED
  60 00 00 30 89 9a 40 00   6d+14:09:31.194  READ FPDMA QUEUED
  60 00 00 30 88 9a 40 00   6d+14:09:31.194  READ FPDMA QUEUED
  60 00 00 30 87 9a 40 00   6d+14:09:31.194  READ FPDMA QUEUED
  60 00 00 30 86 9a 40 00   6d+14:09:31.194  READ FPDMA QUEUED

Error 831 occurred at disk power-on lifetime: 37655 hours (1568 days + 23 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 ff 87 9a 00  Error: WP at LBA = 0x009a87ff = 10127359

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 08 c0 56 5d 40 00   6d+14:09:27.608  WRITE FPDMA QUEUED
  60 00 01 ff 87 9a 40 00   6d+14:09:27.607  READ FPDMA QUEUED
  61 00 90 60 51 5f 40 00   6d+14:09:27.606  WRITE FPDMA QUEUED
  61 00 08 58 63 3b 40 00   6d+14:09:27.606  WRITE FPDMA QUEUED
  61 00 28 ff ff ff 4f 00   6d+14:09:27.606  WRITE FPDMA QUEUED

Error 830 occurred at disk power-on lifetime: 37655 hours (1568 days + 23 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 fe 87 9a 00  Error: UNC at LBA = 0x009a87fe = 10127358

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 40 b8 31 7b 43 00   6d+14:09:24.026  READ FPDMA QUEUED
  61 00 10 40 56 5d 40 00   6d+14:09:24.026  WRITE FPDMA QUEUED
  60 00 01 fe 87 9a 40 00   6d+14:09:24.026  READ FPDMA QUEUED
  61 00 08 ff ff ff 4f 00   6d+14:09:24.025  WRITE FPDMA QUEUED
  2f 00 01 10 00 00 20 00   6d+14:09:23.872  READ LOG EXT

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed without error       00%     58375         -
# 2  Short offline       Completed without error       00%     49888         -
# 3  Short offline       Completed without error       00%     46327         -
# 4  Extended offline    Aborted by host               90%     46327         -
# 5  Short offline       Completed without error       00%     44252         -
# 6  Short offline       Completed without error       00%     44246         -
# 7  Short offline       Completed without error       00%     43303         -
# 8  Short offline       Completed: read failure       10%     34897         10127352
# 9  Short offline       Completed: read failure       10%     34823         10127352
#10  Short offline       Completed: read failure       30%     34538         10127352
#11  Short offline       Completed without error       00%     33775         -
#12  Short offline       Completed without error       00%     33213         -
#13  Short offline       Completed without error       00%     33081         -
#14  Short offline       Completed without error       00%     32983         -
#15  Short offline       Completed without error       00%     32912         -
#16  Short offline       Completed without error       00%     32839         -
#17  Short offline       Completed without error       00%     32774         -
#18  Short offline       Completed without error       00%      9038         -

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.
 



le ST4000 semble durer et ne présente pas de signes de faiblesse particuliers (enfin , apparemment)

sudo smartctl -a /dev/sdc


smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.7.0-1-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Video 3.5 HDD
Device Model:     ST4000VM000-2AF166
Serial Number:    WDH0AFF6
LU WWN Device Id: 5 000c50 09ca2e849
Firmware Version: SC11
User Capacity:    4000787030016 bytes [4,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5980 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Thu Jul 23 09:56:21 2020 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:    (  591) 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:    (   1) minutes.
Extended self-test routine
recommended polling time:    ( 637) minutes.
Conveyance self-test routine
recommended polling time:    (   2) minutes.
SCT capabilities:          (0x50bd) SCT Status supported.
          SCT Error Recovery Control supported.
          SCT Feature Control supported.
          SCT Data Table supported.

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   082   064   044    Pre-fail  Always       -       161112719
  3 Spin_Up_Time            0x0003   094   093   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   096   096   020    Old_age   Always       -       4552
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000f   084   060   045    Pre-fail  Always       -       280206189
  9 Power_On_Hours          0x0032   079   079   000    Old_age   Always       -       18595 (222 131 0)
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   097   097   020    Old_age   Always       -       4017
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   098   000    Old_age   Always       -       55835426834
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   072   056   040    Old_age   Always       -       28 (Min/Max 21/28)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       1192
193 Load_Cycle_Count        0x0032   097   097   000    Old_age   Always       -       7938
194 Temperature_Celsius     0x0022   028   044   000    Old_age   Always       -       28 (0 15 0 0 0)
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
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       15330 (163 28 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       24913438230
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       101308256698

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  Conveyance offline  Completed without error       00%     17962         -
# 2  Extended offline    Completed without error       00%     15413         -
# 3  Short offline       Completed without error       00%     13710         -
# 4  Short offline       Completed without error       00%      9496         -

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.
 



le nvme est tout neuf .

sde et sdf (mme boitier usb tous deux. respectivement WD  3 To et WD 4 To ) sont neufs et reviennent du s.a.v. W.D.
ce sont , normalement , des red .

mon skyhawk (seagate que  vous ne verrez pas de si tôt) m'a claqué dans les pattes  au bout de  six mois .
retour s.a.v. ldlc

Dernière modification par Debian Alain (23-07-2020 08:57:36)

En ligne

#8 23-07-2020 08:48:27

Debian Alain
Adhérent(e)
Lieu : Bretagne
Distrib. : stable / testing
Noyau : Linux 5.8.0-1-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : conky et IDs usb

une partie de mon conky :

$hr
${alignc}${color grey}--- espace libre ---

racine libre : ${fs_free /}${goto 240}| video      : ${fs_free /mnt/ubuntu}
 /home libre : ${fs_free /home}${goto 240}| recycle    : ${fs_free /mnt/clonezilla}
 stable-home : ${fs_free /mnt/stable} ${goto 240}| Sauvegarde : ${fs_free /mnt/sauvegarde}  
(${execi 60 udevadm info --name=sde | awk -F= '/ID_BUS/{print $2}'}) sde : ${execi 60 lsblk /dev/sde1 -noLABEL} ${goto 240}:${execi 60 lsblk /dev/sde1 -o FSAVAIL | sed '1d'} ${goto 330}: ${execi 60 sudo smartctl -a /dev/sde | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sde | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdf | awk -F= '/ID_BUS/{print $2}'}) sdf : ${execi 60 lsblk /dev/sdf1 -noLABEL} ${goto 240}:${execi 60 lsblk /dev/sdf1 -o FSAVAIL | sed '1d'} ${goto 330}: ${execi 60 sudo smartctl -a /dev/sdf | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdf | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdg | awk -F= '/ID_BUS/{print $2}'}) sdg : ${execi 60 lsblk /dev/sdg1 -noLABEL} ${goto 240}:${execi 60 lsblk /dev/sdg1 -o FSAVAIL | sed '1d'} ${goto 330}: ${execi 60 sudo smartctl -a /dev/sdg | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdg | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdh | awk -F= '/ID_BUS/{print $2}'}) sdh : ${execi 60 lsblk /dev/sdh1 -noLABEL} ${goto 240}:${execi 60 lsblk /dev/sdh1 -o FSAVAIL | sed '1d'} ${goto 330}: ${execi 60 sudo smartctl -a /dev/sdh | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdh | awk '/Timing buffered disk reads:/{print $11}'}
$hr
${alignc}Reallocated_Sector_Ct     hdparm -t (Mo/Sec.)

(${execi 60 udevadm info --name=sda | awk -F= '/ID_BUS/{print $2}'}) sda : ${execi 60 lsblk /dev/sda1 -noLABEL} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sda | awk '/Device Model:/{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sda | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sda | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdb | awk -F= '/ID_BUS/{print $2}'}) sdb : ${execi 60 lsblk /dev/sdb1 -noLABEL} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdb | awk '/Device Model:/{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdb | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdb | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdc | awk -F= '/ID_BUS/{print $2}'}) sdc : ${execi 60 lsblk /dev/sdc1 -noLABEL} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdc | awk '/Device Model:/{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdc | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdc | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdd | awk -F= '/ID_BUS/{print $2}'}) sdd : ${execi 60 lsblk /dev/sdd1 -noLABEL} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdd | awk '/Device Model:/{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdd | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdd | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sde | awk -F= '/ID_BUS/{print $2}'}) sde : ${execi 60 lsblk /dev/sde1 -noLABEL} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sde | awk '/Device Model:/{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sde | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sde | awk '/Timing buffered disk reads:/{print $11}'}
(${execi 60 udevadm info --name=sdf | awk -F= '/ID_BUS/{print $2}'}) sdf : ${execi 60 lsblk /dev/sdf1 -noLABEL} ${goto 230}: ${execi 60 sudo smartctl -a  /dev/sdf | awk '/Device Model:/{print $NF}'}  ${goto 445}${execi 60 sudo smartctl -a /dev/sdf | awk '/5 Reallocated_Sector_Ct/{print $10}'} ${execi 60 sudo hdparm -t /dev/sdf | awk '/Timing buffered disk reads:/{print $11}'}
SSD : ${execi 60 sudo smartctl -a /dev/nvme0n1 | grep "Model Number:" | awk '{print $NF}'} : ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Data Units Written:" |awk '{sub(/^\[/, "",$5); print $5 " TBW "}'}/ ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Percentage Used:" | awk '{print $NF}'} used  
 



6T63uYq.png

Dernière modification par Debian Alain (23-07-2020 08:50:42)

En ligne

Pied de page des forums