如何删除/修复 NTFS 中损坏的文件夹

如何删除/修复 NTFS 中损坏的文件夹

我的外部 NTFS 硬盘上有一个损坏的文件夹,但它似乎不允许我删除它。

的输出ls -la(用“xxxx”替换我的用户名)

ls: cannot access 'hd/backgrounds': Input/output error
total 60
drwxrwxrwx  1 xxxx users 16384 Oct 21 15:53  .
drwxr-xr-x 22 xxxx users  4096 Oct 21 15:53  ..
drwxrwxrwx  1 xxxx users     0 Oct 13 18:43  .Trash-1001
drwxrwxrwx  1 xxxx users  4096 Oct 16 10:59 'System Volume Information'
d?????????  ? ?        ?         ?            ?  backgrounds
drwxrwxrwx  1 xxxx users  4096 Oct 14 12:31  backups
drwxrwxrwx  1 xxxx users     0 Oct 11 15:56  documents
drwxrwxrwx  1 xxxx users  8192 Mar 24  2020  drawing
drwxrwxrwx  1 xxxx users     0 Mar 24  2020  games
drwxrwxrwx  1 xxxx users  4096 Oct 10 22:10  iso
drwxrwxrwx  1 xxxx users  4096 Mar 24  2020  modeling
drwxrwxrwx  1 xxxx users  4096 Mar 24  2020  programming
drwxrwxrwx  1 xxxx users 12288 Oct 10 21:14  unsorted
drwxrwxrwx  1 xxxx users     0 Oct 20 10:08  vids

rm -rf backgrounds

rm: cannot remove 'hd/backgrounds': Input/output error

sudo ntfsfix --clear-dirty --clear-bad-sectors /dev/sdb3

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/sdb3 was processed successfully.

我找不到任何有关如何修复过去的 ntfsfix 的信息,所以我陷入了困境。有人知道如何解决这个问题吗?

编辑:SMART 测试的输出

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

General SMART Values:
Offline data collection status:  (0x80) Offline data collection activity
                                        was never started.
                                        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:                ( 7216) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 121) 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: 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     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   142   142   054    Pre-fail  Offline      -       68
  3 Spin_Up_Time            0x0007   127   127   024    Pre-fail  Always       -       181 (Average 180)
  4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       5644
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   110   110   020    Pre-fail  Offline      -       36
  9 Power_On_Hours          0x0012   099   099   000    Old_age   Always       -       13103
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       5317
192 Power-Off_Retract_Count 0x0032   096   096   000    Old_age   Always       -       5651
193 Load_Cycle_Count        0x0012   096   096   000    Old_age   Always       -       5651
194 Temperature_Celsius     0x0002   200   200   000    Old_age   Always       -       30 (Min/Max 13/42)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   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  Short offline       Completed without error       00%      1376         -
# 2  Short offline       Completed without error       00%         0         -

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.

答案1

ntfsfix是一个非常基本的实用程序,它并不总能修复 NTFS 错误。

您有两个选择:

  • 重新格式化并从备份恢复
  • 使用chkdsk.exeWindows 中的实用程序。如果您没有 Windows 许可证,Microsoft 允许您下载和使用Windows 10 企业版180 天。您可以将其安装在裸机或虚拟机中。

相关内容