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 / 问题 / 1190461
Accepted
Stephen Boston
Stephen Boston
Asked: 2019-11-21 15:50:40 +0800 CST2019-11-21 15:50:40 +0800 CST 2019-11-21 15:50:40 +0800 CST

ntfsfix 没有显示错误,但驱动器上经常出现 IO 错误

  • 772

我有一个 NTFS 磁盘作为数据驱动器安装到 Ubuntu 系统(19.10)。

在过去的几天里,驱动器变得非常缓慢且不可靠。

期刊 (journalctl -r) 显示:

Nov 20 15:23:39 acer smartd[1253]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 54 to 53
Nov 20 15:23:39 acer smartd[1253]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 46 to 47
Nov 20 15:23:39 acer smartd[1253]: Device: /dev/sdb [SAT], SMART Usage Attribute: 188 Command_Timeout changed from 100 to 99
Nov 20 15:23:39 acer smartd[1253]: Device: /dev/sdb [SAT], SMART Usage Attribute: 183 Runtime_Bad_Block changed from 97 to 96
Nov 20 15:23:39 acer smartd[1253]: Device: /dev/sdb [SAT], 41344 Offline uncorrectable sectors (changed +8)
...
Nov 20 15:23:39 acer smartd[1253]: Device: /dev/sdb [SAT], 41344 Currently unreadable (pending) sectors (changed +8)

但是ntfsfix报告磁盘还可以(我认为)

 sudo ntfsfix -bd /dev/sdb1
 Mounting volume... OK
 Processing of $MFT and $MFTMirr completed successfully.
 Checking the alternate boot sector... OK
 NTFS volume version is 3.1.
 Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
 NTFS partition /dev/sdb1 was processed successfully.
  • 还有其他方法可以检查此磁盘吗?

根据评论的建议,一些smartctl输出。

smartctl -data -A /dev/sdb
smartctl 7.0 2018-12-30 r4883 [x86_64-linux-5.3.0-23-generic] (local build)
Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org

[=== START OF READ SMART DATA SECTION ===
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   079   078   006    Pre-fail  Always       -       168133076
  3 Spin_Up_Time            0x0003   094   092   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1209
  5 Reallocated_Sector_Ct   0x0033   093   093   036    Pre-fail  Always       -       9840
  7 Seek_Error_Rate         0x000f   074   060   030    Pre-fail  Always       -       8648101443
  9 Power_On_Hours          0x0032   073   073   000    Old_age   Always       -       24172
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1237
183 Runtime_Bad_Block       0x0032   096   096   000    Old_age   Always       -       4
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       12019
188 Command_Timeout         0x0032   099   098   000    Old_age   Always       -       11 26 26
189 High_Fly_Writes         0x003a   097   097   000    Old_age   Always       -       3
190 Airflow_Temperature_Cel 0x0022   047   042   045    Old_age   Always   In_the_past 53 (Min/Max 47/58 #91)
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       -       1217
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       3392
194 Temperature_Celsius     0x0022   053   058   000    Old_age   Always       -       53 (0 18 0 0 0)
197 Current_Pending_Sector  0x0012   001   001   000    Old_age   Always       -       41344
198 Offline_Uncorrectable   0x0010   001   001   000    Old_age   Offline      -       41344
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       23784h+22m+27.579s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       16322055947757
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       108452827544617

我不知道如何准确解释它,但它看起来像一些加热问题?

disk ntfs ntfs-3g io
  • 2 2 个回答
  • 982 Views

2 个回答

  • Voted
  1. Best Answer
    Alvin Liang
    2019-11-21T17:40:47+08:002019-11-21T17:40:47+08:00

    建议更换驱动器。

    1. Smart 05 表示用多少备用扇区来替换坏扇区。RAW 值 9840 表示 9840 个扇区,即 4920KB。93 是标准化值,意味着您仍有 93% 的备用分离器。

    2. 但是,同时,197 表示有 41344 个待处理扇区。待处理扇区并不一定意味着这些扇区是坏的,但硬盘驱动器未能完全处理它。(有时是因为在断电前没有刷新) 在下一次写入时,它要么回到良好的扇区状态,要么转到 05 并被备用扇区替换。

      无论哪种方式,41344 已经是 20MB 左右。这已经太多了,意味着您的驱动器不稳定。

    • 5
  2. heynnema
    2019-11-22T07:52:59+08:002019-11-22T07:52:59+08:00

    由于您已将数据备份到云中,我们可以将驱动器准备为坏块,这样......

    • 用于gparted放置一个新的 GPT 分区表(这将擦除驱动器)

    • 用于gparted创建使用所有未分配空间的单个 ext4 分区(您始终可以在磁盘阻塞后重新创建 NTFS 分区)


    Note: do NOT abort a bad block scan!
    
    Note: do NOT bad block a SSD
    
    Note: backup your important files FIRST!
    
    Note: this will take many hours
    
    Note: you may have a pending HDD failure
    

    启动到 Ubuntu Live DVD/USB。

    在terminal...

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

    注意:确保正确识别坏块的驱动器... sdb1/etc。

    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.
    

    注意:如果不良阻塞不会导致可用驱动器,请更换它。

    • 0

相关问题

  • 有没有办法强制特定文件仅存在于 RAM 中?

  • 如何找出剩余的磁盘空间?

  • 从 9.04 到 10.04 后磁盘非常慢

  • 是否可以扩展 wubi 安装可用的磁盘空间?[复制]

  • 如何确定我系统上最大的文件/目录存储在哪里?

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