블록 주소에서 실패한 파일을 확인하는 방법은 무엇입니까? LBA_of_first_error # 1

드라이브 고장에 대해 조사하는 동안 ( RAW 읽기 오류율에 대한 실패를 나타내는 동안 SMART가 통과하는 이유는 무엇입니까? 참조 )

모든 드라이브에서 SMART 테스트를 수행했습니다.

내 SSD 내장 드라이브는 다음을 사용하여 다음 오류를 표시합니다 smartmonctl

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed: read failure       90%       521         2023520
# 2  Short offline       Completed: read failure       90%       521         2023520

오프셋에 따라 영향을받는 파일을 어떻게 확인할 수 있습니까?



답변

시간을 내려면 시스템의 모든 파일을 읽고 I / O 오류에 대해 불만이 있는지 확인하십시오.

보고있는 영역이 파일에 전혀 할당되지 않았을 수 있습니다.


답변

마침내 나는 스스로 답을 찾을 수 있었다. 따라서 가능합니다.

echo '1613920' > error_blocks # The value from LBA_of_first_error column less the number of blocks in previous partitions
sudo fsck_hfs -B error_blocks /dev/disk1s2 # In my case, the filesystem is on /dev/disk1s1

결과는 다음과 같습니다.

1 blocks to match:
** /dev/rdisk1s2
** Root file system
   Executing fsck_hfs (version diskdev_cmds-557.3~1).
** Verifying volume when it is mounted with write access.
   Journal need to be replayed but volume is read-only
** Checking Journaled HFS Plus volume.
fsck_hfs: Volume is journaled.  No checking performed.
fsck_hfs: Use the -f option to force checking.

따라서 파일이 없습니다!

그러나 많은 블록을 확인한 후에도이 명령을 사용하여 경로를 표시 할 수 없으므로이 방법을 확인해야합니다.


답변