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 / 问题 / 1296740
Accepted
Killah4Ever
Killah4Ever
Asked: 2020-12-02 11:59:53 +0800 CST2020-12-02 11:59:53 +0800 CST 2020-12-02 11:59:53 +0800 CST

我运行了 smartctl,我很高兴它说它通过了整体健康测试,但我担心 120 个重新分配的扇区数

  • 772
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MQ01ABF...
Device Model:     TOSHIBA MQ01ABF050
Serial Number:    563TT0VST
LU WWN Device Id: 5 000039 701e00efc
Firmware Version: AM0P2D
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes 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 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Dec  1 20:52:46 2020 CET
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:  (0x00) Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
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:        (  120) 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:    ( 120) minutes.
SCT capabilities:          (0x003d) SCT Status supported.
                    SCT Error Recovery Control supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

SMART Attributes Data Structure revision number: 128
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   099   050    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   100   100   001    Pre-fail  Always       -       593
  5 Reallocated_Sector_Ct   0x0033   100   100   050    Pre-fail  Always       -       120
  9 Power_On_Hours          0x0032   060   060   000    Old_age   Always       -       16114
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       3715
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       1252
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       262
193 Load_Cycle_Count        0x0032   084   084   000    Old_age   Always       -       160450
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       32 (Min/Max 11/51)
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0032   062   062   000    Old_age   Always       -       15578
241 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       34624675632
242 Total_LBAs_Read         0x0032   100   100   000    Old_age   Always       -       27836621543
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 46937 (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 46937 occurred at disk power-on lifetime: 16104 hours (671 days + 0 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 41 00 08 58 2e 40  Error: UNC at LBA = 0x002e5808 = 3037192

  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 08 00 08 58 2e 40 00      01:55:31.055  READ FPDMA QUEUED
  60 18 f0 f2 61 6a 40 00      01:55:31.055  READ FPDMA QUEUED
  60 20 e8 4a 62 6a 40 00      01:55:31.055  READ FPDMA QUEUED
  60 00 e0 7a cb 2a 40 00      01:55:31.055  READ FPDMA QUEUED
  60 08 d8 ea bd 1a 40 00      01:55:31.055  READ FPDMA QUEUED

Error 46936 occurred at disk power-on lifetime: 16104 hours (671 days + 0 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 41 50 08 58 2e 40  Error: UNC at LBA = 0x002e5808 = 3037192

  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 b8 7a cb 2a 40 00      01:55:26.911  READ FPDMA QUEUED
  60 20 b0 4a 62 6a 40 00      01:55:26.906  READ FPDMA QUEUED
  60 18 a8 f2 61 6a 40 00      01:55:26.906  READ FPDMA QUEUED
  60 08 50 08 58 2e 40 00      01:55:26.890  READ FPDMA QUEUED
  60 08 28 2a 66 11 40 00      01:55:26.889  READ FPDMA QUEUED

Error 46935 occurred at disk power-on lifetime: 16104 hours (671 days + 0 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 41 b0 08 58 2e 40  Error: WP at LBA = 0x002e5808 = 3037192

  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 08 10 f2 0b 51 40 00      01:55:22.635  WRITE FPDMA QUEUED
  61 08 f0 ea 09 50 40 00      01:55:22.635  WRITE FPDMA QUEUED
  61 08 e8 92 09 50 40 00      01:55:22.634  WRITE FPDMA QUEUED
  61 08 08 32 09 50 40 00      01:55:22.633  WRITE FPDMA QUEUED
  61 08 00 6a 08 50 40 00      01:55:22.633  WRITE FPDMA QUEUED

Error 46934 occurred at disk power-on lifetime: 16104 hours (671 days + 0 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 41 a8 08 58 2e 40  Error: WP at LBA = 0x002e5808 = 3037192

  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 08 d8 f2 07 10 40 00      01:55:22.178  WRITE FPDMA QUEUED
  60 08 a8 08 58 2e 40 00      01:55:18.477  READ FPDMA QUEUED
  60 28 d0 0a 66 11 40 00      01:55:18.459  READ FPDMA QUEUED
  60 08 38 00 58 2e 40 00      01:55:18.444  READ FPDMA QUEUED
  60 98 28 e2 03 aa 40 00      01:55:18.444  READ FPDMA QUEUED

Error 46933 occurred at disk power-on lifetime: 16104 hours (671 days + 0 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 41 a0 08 58 2e 40  Error: UNC at LBA = 0x002e5808 = 3037192

  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 80 a0 00 58 2e 40 00      01:55:14.288  READ FPDMA QUEUED
  60 80 98 80 57 2e 40 00      01:55:14.287  READ FPDMA QUEUED
  60 80 90 00 57 2e 40 00      01:55:14.286  READ FPDMA QUEUED
  60 80 88 80 56 2e 40 00      01:55:14.286  READ FPDMA QUEUED
  60 80 80 00 56 2e 40 00      01:55:14.285  READ FPDMA QUEUED

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%     16114         -
# 2  Short offline       Aborted by host               90%     16088         -
# 3  Short offline       Completed: read failure       00%     16056         11470
# 4  Short offline       Completed: read failure       00%     16055         11470
# 5  Short offline       Completed: read failure       00%     16055         11470
# 6  Short offline       Completed: read failure       00%     16055         11470
# 7  Short offline       Completed: read failure       00%     16055         11470
# 8  Short offline       Completed: read failure       00%     16054         11470
# 9  Short offline       Aborted by host               90%     16054         -
#10  Short offline       Completed: read failure       00%     16052         11470
#11  Short offline       Completed: read failure       00%     16052         11470
#12  Short offline       Aborted by host               90%     16046         -
#13  Short offline       Completed: read failure       00%     15343         368296
#14  Short offline       Completed without error       00%     14996         -
#15  Short offline       Aborted by host               50%     14996         -
#16  Short offline       Completed without error       00%     13750         -
#17  Short offline       Completed without error       00%      3162         -
#18  Short offline       Completed without error       00%      3161         -
#19  Short offline       Interrupted (host reset)      80%      3161         -
#20  Short offline       Completed without error       00%      3161         -
#21  Short offline       Completed without error       00%      3161         -

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.

hard-drive smart
  • 1 1 个回答
  • 1023 Views

1 个回答

  • Voted
  1. Best Answer
    heynnema
    2020-12-02T12:43:41+08:002020-12-02T12:43:41+08:00

    NCQ

    您有 NCQ 磁盘错误。

      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 08 00 08 58 2e 40 00      01:55:31.055  READ FPDMA QUEUED
      60 18 f0 f2 61 6a 40 00      01:55:31.055  READ FPDMA QUEUED
      60 20 e8 4a 62 6a 40 00      01:55:31.055  READ FPDMA QUEUED
      60 00 e0 7a cb 2a 40 00      01:55:31.055  READ FPDMA QUEUED
      60 08 d8 ea bd 1a 40 00      01:55:31.055  READ FPDMA QUEUED
    

    本机命令队列 (NCQ) 是串行 ATA 协议的扩展,允许硬盘驱动器在内部优化接收到的读取和写入命令的执行顺序。

    编辑sudo -H gedit /etc/default/grub并更改以下行以包含此额外参数。然后sudo update-grub将更改写入磁盘。重启。监视器挂起,并观察/var/log/syslog或dmesg继续出现错误消息。

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash libata.force=noncq"
    

    坏块

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

    注意:请勿对 SSD 进行坏块

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

    注意:这将需要几个小时

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

    以“试用 Ubuntu”模式启动到 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.
    
    • -1

相关问题

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

  • 交换分区的重要性

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

  • 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