AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1195964
Accepted
GPaiva
GPaiva
Asked: 2019-12-14 09:40:47 +0800 CST2019-12-14 09:40:47 +0800 CST 2019-12-14 09:40:47 +0800 CST

如何修复硬盘上的读取失败

  • 772

当我尝试在其上安装 Windows 10 时,我的一个硬盘驱动器无法正常工作,因此我搜索了错误并使用 Smartctl 自检检查了 HD 是否存在错误。

我尝试了一些常见的修复方法,例如用零覆盖有错误的部分,但它没有用。

以下是自检日志:

sudo smartctl -l selftest /dev/sdb 

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       90%       828         15353528
# 2  Short offline       Completed: read failure       90%       827         55762560
# 3  Extended offline    Completed: read failure       90%       827         15325464
# 4  Extended offline    Completed: read failure       90%       827         15323008
# 5  Extended offline    Completed: read failure       90%       827         15323008
# 6  Short offline       Completed: read failure       90%       827         16319388
# 7  Short offline       Completed: read failure       90%       827         16319388
# 8  Short offline       Completed without error       00%       537         -
# 9  Short offline       Completed without error       00%         0         -

我可以修复这些错误还是无法恢复?让我知道我是否可以提供更多信息。

硬盘信息

Model Family:     Seagate Samsung SpinPoint M8 (AF)
Device Model:     ST1000LM024 HN-M101MBB
Serial Number:    S32SJ5DF211384
LU WWN Device Id: 5 0004cf 4013ff254
Firmware Version: 2BA30001
User Capacity:    1.000.204.886.016 bytes [1,00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Smartctl 完整日志

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

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   100   100   051    Pre-fail  Always       -       29202
  2 Throughput_Performance  0x0026   252   252   000    Old_age   Always       -       0
  3 Spin_Up_Time            0x0023   092   080   025    Pre-fail  Always       -       2643
  4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       1361
  5 Reallocated_Sector_Ct   0x0033   095   095   010    Pre-fail  Always       -       864
  7 Seek_Error_Rate         0x002e   252   252   051    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0024   252   252   015    Old_age   Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       846
 10 Spin_Retry_Count        0x0032   252   252   051    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       18
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1408
 13 Read_Soft_Error_Rate    0x003a   100   100   000    Old_age   Always       -       0
181 Program_Fail_Cnt_Total  0x0022   100   100   000    Old_age   Always       -       3398445
191 G-Sense_Error_Rate      0x0022   100   100   000    Old_age   Always       -       107
192 Power-Off_Retract_Count 0x0022   252   252   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       17299
194 Temperature_Celsius     0x0002   064   055   000    Old_age   Always       -       31 (Min/Max 20/45)
195 Hardware_ECC_Recovered  0x003a   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   095   095   000    Old_age   Always       -       864
197 Current_Pending_Sector  0x0032   095   094   000    Old_age   Always       -       923
198 Offline_Uncorrectable   0x0030   252   252   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0036   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x002a   100   100   000    Old_age   Always       -       616
240 Head_Flying_Hours       0x0032   100   100   000    Old_age   Always       -       822
241 Total_LBAs_Written      0x0032   096   094   000    Old_age   Always       -       6322514
242 Total_LBAs_Read         0x0032   096   094   000    Old_age   Always       -       6719332
254 Free_Fall_Sensor        0x0032   252   252   000    Old_age   Always       -       0

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  Extended offline    Completed: read failure       90%       828         15353528
# 2  Short offline       Completed: read failure       90%       827         55762560
# 3  Extended offline    Completed: read failure       90%       827         15325464
# 4  Extended offline    Completed: read failure       90%       827         15323008
# 5  Extended offline    Completed: read failure       90%       827         15323008
# 6  Short offline       Completed: read failure       90%       827         16319388
# 7  Short offline       Completed: read failure       90%       827         16319388
# 8  Short offline       Completed without error       00%       537         -
# 9  Short offline       Completed without error       00%         0         -

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_read_failure [90% left] (0-65535)
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
hard-drive smart
  • 2 2 个回答
  • 10329 Views

2 个回答

  • Voted
  1. Best Answer
    Thomas Ward
    2019-12-14T09:45:14+08:002019-12-14T09:45:14+08:00

    您不会在 SMART 测试中恢复或修复这种类型的“读取失败”。这些故障表明设备和驱动器故障或故障前,特别是如果您实际尝试从磁盘读取数据并获取Input/Output errors等。

    您将需要更换驱动器。这是克服驱动器故障这一事实的唯一方法。

    • 7
  2. heynnema
    2019-12-15T16:38:03+08:002019-12-15T16:38:03+08:00

    要坏块您的磁盘,请按照以下步骤操作。如果它失败了,你的磁盘坏了......

        注意:不要中止坏块扫描!

        注意:请勿对 SSD 进行坏块

        注意:首先备份您的重要文件!

        注意:这将需要几个小时

        注意:您可能有待处理的 HDD 故障

    启动到 Ubuntu Live DVD/USB。

    在terminal...

    sudo fdisk -l# 识别所有“Linux 文件系统”分区

    sudo e2fsck -fcky /dev/sdXX# 只读测试

    或者

    sudo e2fsck -fccky /dev/sdXX# 无损读/写测试(推荐)

    -k 很重要,因为它保存了以前的坏块表,并将任何新的坏块添加到该表中。如果没有 -k,您将丢失所有先前的坏块信息。

    -fccky 参数...

       -f    Force checking even if the file system seems clean.
    
       -c    This option causes e2fsck to use badblocks(8) program  to  do  a
             read-only  scan  of  the device in order to find any bad blocks.
             If any bad blocks are found, they are added  to  the  bad  block
             inode  to  prevent them from being allocated to a file or direc‐
             tory.  If this option is specified twice,  then  the  bad  block
             scan will be done using a non-destructive read-write test.
    
       -k    When combined with the -c option, any existing bad blocks in the
             bad blocks list are preserved, and any new bad blocks  found  by
             running  badblocks(8)  will  be added to the existing bad blocks
             list.
    
       -y    Assume  an answer of `yes' to all questions; allows e2fsck to be
             used non-interactively.  This option may not be specified at the
             same time as the -n or -p options.
    
    • 4

相关问题

  • 在多台笔记本电脑上使用相同的硬盘作为引导驱动器

  • 交换分区的重要性

  • 如何列出新驱动器以便对它们进行分区和格式化?

  • Ubuntu 无法识别我的硬盘

  • 硬盘过热严重

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve