Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 22/04/2023, à 12:14

michel54

copie fichier mkv impossible

Bonjour,

J'ai deux DD, un WD book de 1To et un WD Elements de 3 To, tous les deux en NTFS.
Je désire copier des fichiers au format .mkv de 1To vers 3To. Ils sont tous lisibles, mais certains ne peuvent être copiés. La copie s'arrête au milieu du fichier.
Que dois-je faire? Y a-t-il une exlication.
Je suis sous Kubuntu 18.04
Merci
Michel

Hors ligne

#2 Le 22/04/2023, à 13:42

geole

Re : copie fichier mkv impossible

Bonjour.
En premier, on va regarder l'état physique du disque émetteur.
Pour cela , tu installes l'application smartmontools
Puis tu postes le retour de la commande 3.1.1

En second, tu relances une copie qui ne fonctionne pas. Puis lorsqu'elle s'arrête, tu donne ce retour.

journalctl --no-pager -b -n 30

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#3 Le 22/04/2023, à 14:37

michel54

Re : copie fichier mkv impossible

Je n'arrive pas à utiliser smartmontools

Voici le résultat de l'essai de copie:

$ cp My\ Book/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv Elements/films/series/03_un_homme_blesse.mkv
cp: erreur de lecture dans 'My Book/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv': Erreur d'entrée/sortie
$ journalctl --no-pager -b -n 30
-- Logs begin at Sun 2023-03-26 13:16:24 CEST, end at Sat 2023-04-22 14:30:51 CEST. --
avril 22 14:30:16 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Add. Sense: Unrecovered read error
avril 22 14:30:16 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 CDB: Read(10) 28 00 5f 29 af 20 00 00 08 00
avril 22 14:30:16 michel-Aspire-M3910 kernel: print_req_error: critical medium error, dev sdi, sector 1596567328
avril 22 14:30:16 michel-Aspire-M3910 kernel: Buffer I/O error on dev sdi1, logical block 199570660, async page read
avril 22 14:30:16 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread_i: ntfs_pread failed: Erreur d'entrée/sortie
avril 22 14:30:16 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread error reading '/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv' at offset 646975488: 4096 <> -1: Erreur d'entrée/sortie
avril 22 14:30:19 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
avril 22 14:30:19 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Sense Key : Medium Error [current] 
avril 22 14:30:19 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Add. Sense: Unrecovered read error
avril 22 14:30:19 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 CDB: Read(10) 28 00 5f 29 af 20 00 00 08 00
avril 22 14:30:19 michel-Aspire-M3910 kernel: print_req_error: critical medium error, dev sdi, sector 1596567328
avril 22 14:30:19 michel-Aspire-M3910 kernel: Buffer I/O error on dev sdi1, logical block 199570660, async page read
avril 22 14:30:19 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread_i: ntfs_pread failed: Erreur d'entrée/sortie
avril 22 14:30:19 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread error reading '/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv' at offset 646975488: 4096 <> -1: Erreur d'entrée/sortie
avril 22 14:30:48 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread_i: ntfs_pread failed: Erreur d'entrée/sortie
avril 22 14:30:48 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread error reading '/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv' at offset 646975488: 4096 <> -1: Erreur d'entrée/sortie
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Sense Key : Medium Error [current] 
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Add. Sense: Unrecovered read error
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 CDB: Read(10) 28 00 5f 29 af 20 00 00 08 00
avril 22 14:30:48 michel-Aspire-M3910 kernel: print_req_error: critical medium error, dev sdi, sector 1596567328
avril 22 14:30:48 michel-Aspire-M3910 kernel: Buffer I/O error on dev sdi1, logical block 199570660, async page read
avril 22 14:30:51 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread_i: ntfs_pread failed: Erreur d'entrée/sortie
avril 22 14:30:51 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
avril 22 14:30:51 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Sense Key : Medium Error [current] 
avril 22 14:30:51 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Add. Sense: Unrecovered read error
avril 22 14:30:51 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 CDB: Read(10) 28 00 5f 29 af 20 00 00 08 00
avril 22 14:30:51 michel-Aspire-M3910 kernel: print_req_error: critical medium error, dev sdi, sector 1596567328
avril 22 14:30:51 michel-Aspire-M3910 kernel: Buffer I/O error on dev sdi1, logical block 199570660, async page read
avril 22 14:30:51 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread error reading '/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv' at offset 646975488: 4096 <> -1: Erreur d'entrée/sortie

Hors ligne

#4 Le 22/04/2023, à 14:48

geole

Re : copie fichier mkv impossible

L'erreur est bien visible.

avril 22 14:30:19 michel-Aspire-M3910 kernel: Buffer I/O error on dev sdi1, logical block 199570660, async page read
avril 22 14:30:19 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread_i: ntfs_pread failed: Erreur d'entrée/sortie
avril 22 14:30:19 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread error reading '/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv' at offset 646975488: 4096 <> -1: Erreur d'entrée/sortie
avril 22 14:30:48 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread_i: ntfs_pread failed: Erreur d'entrée/sortie
avril 22 14:30:48 michel-Aspire-M3910 ntfs-3g[4590]: ntfs_attr_pread error reading '/Films/series/art_du_crime/saison_2/03_un_homme_blesse.mkv' at offset 646975488: 4096 <> -1: Erreur d'entrée/sortie
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Sense Key : Medium Error [current] 
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 Add. Sense: Unrecovered read error
avril 22 14:30:48 michel-Aspire-M3910 kernel: sd 8:0:0:0: [sdi] tag#0 CDB: Read(10) 28 00 5f 29 af 20 00 00 08 00
avril 22 14:30:48 michel-Aspire-M3910 kernel: print_req_error: critical medium error, dev sdi, sector 1596567328

Frappe ces commandes

sudo apt-get install --no-install-recommends smartmontools 
sudo smartctl -s on -a /dev/sdi

et poste le résultat de la seconde

Tente de réparer d'abord en utilisant windows 
Il faudra trouver la lettre windows qui correspond  à la partition SDI
  Il faudra se mettre en mode administratif
Il faudra alors frapper cette commande  en mettant la vraie valeur de la lettre

 chkdsk /R  Lettre[b]:[/b]

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#5 Le 22/04/2023, à 14:54

michel54

Re : copie fichier mkv impossible

Résultat de smartctl:

smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-209-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Green
Device Model:     WDC WD10EADS-11M2B2
Serial Number:    WD-WCAV58907213
LU WWN Device Id: 5 0014ee 20422a943
Firmware Version: 80.00A80
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 40smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-209-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Green
Device Model:     WDC WD10EADS-11M2B2
Serial Number:    WD-WCAV58907213
LU WWN Device Id: 5 0014ee 20422a943
Firmware Version: 80.00A80
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sat Apr 22 14:52:42 2023 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART 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:      (  25) smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-209-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Caviar Green
Device Model:     WDC WD10EADS-11M2B2
Serial Number:    WD-WCAV58907213
LU WWN Device Id: 5 0014ee 20422a943
Firmware Version: 80.00A80
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sat Apr 22 14:52:42 2023 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART 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:      (  25) The self-test routine was aborted by
                                        the host.
Total time to complete Offline 
data collection:                (21300) 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:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 245) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x3031) SCT Status 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     0x002f   200   200   051    Pre-fail  Always       -       215
  3 Spin_Up_Time            0x0027   130   128   021    Pre-fail  Always       -       6458
  4 Start_Stop_Count        0x0032   097   097   000    Old_age   Always       -       3943
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3498
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1763
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       392
193 Load_Cycle_Count        0x0032   147   147   000    Old_age   Always       -       159518
194 Temperature_Celsius     0x0022   108   101   000    Old_age   Always       -       39
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       154
198 Offline_Uncorrectable   0x0030   200   199   000    Old_age   Offline      -       93
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   199   000    Old_age   Offline      -       121

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  Short offline       Aborted by host               90%      3497         -
# 2  Extended offline    Aborted by host               90%      3497         -
# 3  Short offline       Aborted by host               90%      3497         -

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.The self-test routine was aborted by
                                        the host.
Total time to complete Offline 
data collection:                (21300) 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:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 245) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x3031) SCT Status 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     0x002f   200   200   051    Pre-fail  Always       -       215
  3 Spin_Up_Time            0x0027   130   128   021    Pre-fail  Always       -       6458
  4 Start_Stop_Count        0x0032   097   097   000    Old_age   Always       -       3943
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3498
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1763
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       392
193 Load_Cycle_Count        0x0032   147   147   000    Old_age   Always       -       159518
194 Temperature_Celsius     0x0022   108   101   000    Old_age   Always       -       39
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       154
198 Offline_Uncorrectable   0x0030   200   199   000    Old_age   Offline      -       93
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   199   000    Old_age   Offline      -       121

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  Short offline       Aborted by host               90%      3497         -
# 2  Extended offline    Aborted by host               90%      3497         -
# 3  Short offline       Aborted by host               90%      3497         -

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.96 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 2.6, 3.0 Gb/s
Local Time is:    Sat Apr 22 14:52:42 2023 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART 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:      (  25) The self-test routine was aborted by
                                        the host.
Total time to complete Offline 
data collection:                (21300) 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:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 245) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x3031) SCT Status 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     0x002f   200   200   051    Pre-fail  Always       -       215
  3 Spin_Up_Time            0x0027   130   128   021    Pre-fail  Always       -       6458
  4 Start_Stop_Count        0x0032   097   097   000    Old_age   Always       -       3943
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   100   253   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3498
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1763
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       392
193 Load_Cycle_Count        0x0032   147   147   000    Old_age   Always       -       159518
194 Temperature_Celsius     0x0022   108   101   000    Old_age   Always       -       39
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       154
198 Offline_Uncorrectable   0x0030   200   199   000    Old_age   Offline      -       93
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   199   000    Old_age   Offline      -       121

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  Short offline       Aborted by host               90%      3497         -
# 2  Extended offline    Aborted by host               90%      3497         -
# 3  Short offline       Aborted by host               90%      3497         -

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.

Je n'ai plus windows depuis longtemps!

Hors ligne

#6 Le 22/04/2023, à 16:11

geole

Re : copie fichier mkv impossible

Quelle idée d'avoir  conservé du NTFS que seul windows sait réparer de A à Z

  9 Power_On_Hours          0x0032   096   096   000    Old_age   Always       -       3498
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       154

Je te propose de finir tes sauvegardes
Puis de lancer mon  script qui devrait traiter ces secteurs illisibles.

Soit cela casse. Soit cela se répare.
Dans ce cas, j'essaierais de trouver une  signature .mkv qu'on rajoutera dans les secteurs illisibles détectés (jamais fait).

IL faut faire un copier/coller de chaque paquet de commandes.
[1) Installer l'application. ddrescue avec cette commande

sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt-get update
sudo apt install gddrescue

2) Donner un état rapide du disque.

DSKin=sdi  #### Nom du disque à lire!
sudo smartctl -s on -a /dev/$DSKin  | egrep "Sector Size|Pending|Reallocated"
A=$(sudo smartctl -a /dev/$DSKin| grep "Sector Size");
if [[ $A =~ "4096 bytes physical" ]];  then M=8; else  if [[ $A =~ "512 bytes physical" ]];  then M=1; else echo -e "\n\a\E[31mGros problème de réponse de smartctl, Prière de ne  pas continuer. \E[0m\n"; fi; fi
echo Facteur Multiplicateur $M

ATTENTION, Tout ce qui suit est à faire dans la même session. Sinon il faudra repositionner les variables.

DSKin=sdi #Nom du disque à lire
DSKout=null #Nom du disque à écraser
M=8 #Secteurs physiques de 4096 octets
Suivi=$HOME/$DSKin.rescue #### Attention si choix par uuid, il faut mettre un non de disque car le répertoire $HOME/disk/by_id  n'existe pas

3) Puis lire rapidement le disque. Mais cela prend du temps.

###rm $Suivi
sudo ddrescue -f -n -b$((512*$M)) /dev/$DSKin /dev/$DSKout $Suivi 

4) Puis les parties pas faciles. Cela prend aussi du temps.

sudo ddrescue -f -c1 -r0 -b$((512*$M)) /dev/$DSKin /dev/$DSKout $Suivi 

5) Puis liste de ce qui n'est pas lisible.

touch $HOME/$DSKin.badblocs
sudo ddrescuelog -l- -b$((512*$M)) $Suivi >$HOME/$DSKin.badblocs
wc -l $HOME/$DSKin.badblocs

6) Puis réparation.

while read j; do sudo dd if=/dev/$DSKin bs=$((512*$M)) count=1 skip=$j 1>/dev/null 2>/tmp/REP; cat /tmp/REP | sed  's/\xc2\xa0//g' > /tmp/REP1; 
if grep -q "$((512*$M))octets" /tmp/REP1; then echo Bonne lecture du secteur $j; else echo Réparation du bloc N°$j; 
for ((k=$(($j*$M));k<$(($j*$M+$M));k++));do sudo hdparm --yes-i-know-what-i-am-doing --write-sector $k /dev/$DSKin;sleep 1; done;
sudo dd if=/dev/$DSKin bs=$((512*$M)) count=1 skip=$j 1>/dev/null 2>/tmp/REP;cat /tmp/REP | sed  's/\xc2\xa0//g' > /tmp/REP1; 
if grep -q "$((512*$M))octets" /tmp/REP1;then echo Bonne réparation du secteur $j;else  echo -e "\n\a\E[31mMauvaise Réparation du bloc N°$/\E[0m\n";fi;fi; done < $HOME/$DSKin.badblocs

7)  Un nouveau contrôle.

sudo smartctl -s on -a /dev/$DSKin | egrep "Sector Size|Pending|Reallocated"

Je pensais faire la modification .mkv dans le script. Sur le principe, c'était simple si chaque secteur était automatiquement et immédiatement réparé. Mais un essai m'a montré que ce n'était pas le cas. Alors je ne vais pas prendre de risque et je fais un second script de rectification fonctionnelle.

DSKin=sdi
while read j ;do sudo dd if=/dev/$DSKin bs=512 count=1 skip=$(($j-1)) of=/dev/$DSKin seek=$j 2>/dev/null; done <$HOME/$DSKin.badblocs

Dernière modification par geole (Le 24/04/2023, à 05:34)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#7 Le 22/04/2023, à 16:23

michel54

Re : copie fichier mkv impossible

Je vais essayer cela en début de semaine prochaine.
Merci d'avoir consacré du temps à mon problème
Cordialement
Michel

Hors ligne

#8 Le 24/04/2023, à 11:15

michel54

Re : copie fichier mkv impossible

Je réponds rapidement à:

Quelle idée d'avoir  conservé du NTFS que seul windows sait réparer de A à Z

Je mets sur mon DD ce que j'enregistre sur FranceTV. et je le lis sur ma télé en passant par mon lecteur BlueRay qui possède une prise USB.
J'avais essayé en changeant le formatage initial du DD càd NTFS. Impossible de lire le DD avec le lecteur BR!
Voilà pourquoi j'ai un format NTFS.

J'essaie bientôt la solution proposée, la sauvegarde n'est pas terminée.
Merci
Michel

Hors ligne

#9 Le 29/04/2023, à 11:29

michel54

Re : copie fichier mkv impossible

Bonjour,
J'ai fait toutes les commandes que tu me conseillais.
Certaines ont duré toute la nuit, plus de 12h.
J'ai toujours le même problème.

sudo smartctl -s on -a /dev/$DSKin | egrep "Sector Size|Pending|Reallocated"
Sector Sizes:     512 bytes logical, 4096 bytes physical
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       57

Je ne peux copier certains fichiers.

cp Lendemain\ de\ fête.mp4 /home/michel/
cp: erreur de lecture dans 'Lendemain de fête.mp4': Erreur d'entrée/sortie

Mais ce que je ne comprends pas, c'est que je peux les lire sans problème, que ce soit avec VLC ou sur mon lecteur BR.

Cordialement
Michel

Hors ligne

#10 Le 29/04/2023, à 13:12

geole

Re : copie fichier mkv impossible

Bonjour
Peux-tu donner ce retour.

DSKin=sdi
while read j ;do sudo dd if=/dev/$DSKin bs=512 count=1 skip=$(($j-1)) of=/dev/$DSKin seek=$j 2>/dev/null; done <$HOME/$DSKin.badblocs

Les programmes d'affichage sont certainement équipés pour passer outre un bloc non lisible.     En visionnage, on ne remarque probablement pas le petit défaut d'affichage de l'image.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#11 Le 29/04/2023, à 13:21

michel54

Re : copie fichier mkv impossible

Le retour est le fichier suivant:


183082138
183082141
183082454
183082489
197307847
197307851
197307855
197307858
197307861
197307862
197307863
197307864
197307865
197307866
197307867
197307869
197307872
197307873
197307874
197307875
197307876
197307877
197307878
197307880
197307884
197307885
197307887
197307888
197307890
197307892
197307895
197307896
197307999
197308003
197308012
197308015
197308016
197308017
197308018
197308021
197308024
197308025
197308026
197308029
197308031
197308033
197308036
197308039
197308041
197308047
197308048
197308049
197308055
197308057
197308058
199570916
199571051
199571077
199571087
199571272
199571388
199571392
199571405
199571446
199571745
199571754
199571906
199571931
199572418
199572436
209067345
209067346
209067348
209067350
209067353
209067356
209067361
209067366
209067369
209067509
209067511
209067516
209067517
209067522
209067523
209067525
209067528
209067529
209067531
209067666
209067667
209067669
209067670
209067671
209067672
209067673
209067674
209067675
209067676
209067678
209067679
209067680
209067681
209067682
209067683
209067684
209067686
209067687
209067688
209067689
209067690
209067691
209067692
209067693
209067694
209067695
209067696
209067697
209067698
209067699
209067700
209067701
209067703

Hors ligne

#12 Le 29/04/2023, à 18:24

geole

Re : copie fichier mkv impossible

Ce n'est pas ce que je pensais avoir. Peux-tu refaire

DSKin=sdi
M=1
while read j; do sudo dd if=/dev/$DSKin bs=$((512*$M)) count=1 skip=$j 1>/dev/null 2>/tmp/REP; cat /tmp/REP | sed  's/\xc2\xa0//g' > /tmp/REP1; 
if grep -q "$((512*$M))octets" /tmp/REP1; then echo Bonne lecture du secteur $j; else echo Réparation du bloc N°$j; 
for ((k=$(($j*$M));k<$(($j*$M+$M));k++));do sudo hdparm --yes-i-know-what-i-am-doing --write-sector $k /dev/$DSKin;sleep 1; done;
sudo dd if=/dev/$DSKin bs=$((512*$M)) count=1 skip=$j 1>/dev/null 2>/tmp/REP;cat /tmp/REP | sed  's/\xc2\xa0//g' > /tmp/REP1; 
if grep -q "$((512*$M))octets" /tmp/REP1;then echo Bonne réparation du secteur $j;else  echo -e "\n\a\E[31mMauvaise Réparation du bloc N°$/\E[0m\n";fi;fi; done < $HOME/$DSKin.badblocs

Tu ne posteras que le début.

DSKin=sdi
while read j ;do sudo dd if=/dev/$DSKin bs=512 count=1 skip=$(($j-1)) of=/dev/$DSKin seek=$j; done <$HOME/$DSKin.badbloc

Tu ne posteras que le début.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#13 Le 01/05/2023, à 14:35

michel54

Re : copie fichier mkv impossible

Voici le début de la première commande:

$ while read j; do sudo dd if=/dev/$DSKin bs=$((512*$M)) count=1 skip=$j 1>/dev/null 2>/tmp/REP; cat /tmp/REP | sed  's/\xc2\xa0//g' > /tmp/REP1; 
> if grep -q "$((512*$M))octets" /tmp/REP1; then echo Bonne lecture du secteur $j; else echo Réparation du bloc N°$j; 
> for ((k=$(($j*$M));k<$(($j*$M+$M));k++));do sudo hdparm --yes-i-know-what-i-am-doing --write-sector $k /dev/$DSKin;sleep 1; done;
> sudo dd if=/dev/$DSKin bs=$((512*$M)) count=1 skip=$j 1>/dev/null 2>/tmp/REP;cat /tmp/REP | sed  's/\xc2\xa0//g' > /tmp/REP1; 
> if grep -q "$((512*$M))octets" /tmp/REP1;then echo Bonne réparation du secteur $j;else  echo -e "\n\a\E[31mMauvaise Réparation du bloc N°$/\E[0m\n";fi;fi; done < $HOME/$DSKin.badblocs
[sudo] Mot de passe de michel : 
Réparation du bloc N°183082138

/dev/sdi:
re-writing sector 183082138: FAILED: Input/output error

Mauvaise Réparation du bloc N°$/

Réparation du bloc N°183082141

/dev/sdi:
re-writing sector 183082141: FAILED: Input/output error

Mauvaise Réparation du bloc N°$/

Voici le début de la seconde commande:

 while read j ;do sudo dd if=/dev/$DSKin bs=512 count=1 skip=$(($j-1)) of=/dev/$DSKin seek=$j; done <$HOME/$DSKin.badbloc
bash: /home/michel/sdi.badbloc: Aucun fichier ou dossier de ce type

Hors ligne

#14 Le 01/05/2023, à 14:38

geole

Re : copie fichier mkv impossible

Les réparations ont l air de mal se passer.
J ai mal copié en oubliant la fin

DSKin=sdi
while read j ;do sudo dd if=/dev/$DSKin bs=512 count=1 skip=$(($j-1)) of=/dev/$DSKin seek=$j; done <$HOME/$DSKin.badblocs

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#15 Le 01/05/2023, à 14:41

michel54

Re : copie fichier mkv impossible

Voici le résultat de la seconde commande:

while read j ;do sudo dd if=/dev/$DSKin bs=512 count=1 skip=$(($j-1)) of=/dev/$DSKin seek=$j; done <$HOME/$DSKin.badblocs
[sudo] Mot de passe de michel : 
1+0 enregistrements lus
1+0 enregistrements écrits
512 bytes copied, 0,463473 s, 1,1 kB/s
1+0 enregistrements lus
1+0 enregistrements écrits
512 bytes copied, 0,0238032 s, 21,5 kB/s
1+0 enregistrements lus
1+0 enregistrements écrits
512 bytes copied, 0,00769801 s, 66,5 kB/s
1+0 enregistrements lus
1+0 enregistrements écrits
512 bytes copied, 0,0364125 s, 14,1 kB/s
1+0 enregistrements lus
1+0 enregistrements écrits
512 bytes copied, 0,0274211 s, 18,7 kB/s
1+0 enregistrements lus

Hors ligne