Я пытаюсь проверить внешний жесткий диск USB 3.5 "на наличие поврежденных секторов и исправить их, если это возможно.
$ sudo fsck_hfs -fy -S /dev/disk2
Дает следующий вывод:
** /dev/rdisk2 (NO WRITE)
Scanning entire disk for bad blocks
Executing fsck_hfs (version hfs-285).
volumeType is 0
0000: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
. . .
01b0: 0000 0000 0000 0000 0000 0000 0000 00fe |................|
01c0: ffff eefe ffff 0100 0000 2f7b a8ae 0000 |................|
01d0: 0000 0000 0000 0000 0000 0000 0000 0000 |................|
. . .
01f0: 0000 0000 0000 0000 0000 0000 0000 55aa |..............U.|
block 8509328: *** NO MATCH ***
block 8509329: *** NO MATCH ***
block 8509330: *** NO MATCH ***
block 8509331: *** NO MATCH ***
block 8509332: *** NO MATCH ***
block 8509333: *** NO MATCH ***
block 8509334: *** NO MATCH ***
block 8509335: *** NO MATCH ***
block 2305765384: *** NO MATCH ***
block 2305765385: *** NO MATCH ***
block 2305765386: *** NO MATCH ***
block 2305765387: *** NO MATCH ***
block 2305765388: *** NO MATCH ***
block 2305765389: *** NO MATCH ***
block 2305765390: *** NO MATCH ***
block 2305765391: *** NO MATCH ***
block 2305765472: *** NO MATCH ***
block 2305765473: *** NO MATCH ***
block 2305765474: *** NO MATCH ***
block 2305765475: *** NO MATCH ***
block 2305765476: *** NO MATCH ***
block 2305765477: *** NO MATCH ***
block 2305765478: *** NO MATCH ***
block 2305765479: *** NO MATCH ***
block 2305765480: *** NO MATCH ***
block 2305765481: *** NO MATCH ***
block 2305765482: *** NO MATCH ***
block 2305765483: *** NO MATCH ***
block 2305765496: *** NO MATCH ***
block 2305765497: *** NO MATCH ***
block 2305765498: *** NO MATCH ***
block 2305765499: *** NO MATCH ***
block 2305765500: *** NO MATCH ***
block 2305765501: *** NO MATCH ***
block 2305765502: *** NO MATCH ***
block 2305765503: *** NO MATCH ***
block 2305765528: *** NO MATCH ***
block 2305765529: *** NO MATCH ***
block 2305765530: *** NO MATCH ***
block 2305765531: *** NO MATCH ***
block 2305765532: *** NO MATCH ***
Это хорошо или плохо? Как понять этот вывод?
ОБНОВИТЬ:
Найдено здесь: https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man8/fsck_hfs.8.html
EXIT VALUES
fsck_hfs indicates some status by exit value. The current list of exit status results is:
0 No errors found, or successfully repaired.
3 A quick-check (the -n option) found a dirty filesystem; no repairs were made.
4 During boot, the root filesystem was found to be dirty; repairs were made, and the
filesystem was remounted. The system should be rebooted.
8 A corrupt filesystem was found during a check, or repairs did not succeed.
47 A major error was found with -E.
Похоже, мой жесткий диск в порядке:
volumeType is 0
Но я хочу понять другие выходные строки