System: macOS 10.14.6
One of the HDD in the system was giving issues and I suspected the old disk was dying. I wanted to check for bad sectors on it. It uses the Mac OS Extended (Journaled) filesystem. So I started a scan of the disk with fsck_hfs:
bash-3.2# fsck_hfs -S -E /dev/disk0
But even after more than 12-13 hours overnight it had only scanned around 66% of the 1TB drive:
** /dev/rdisk0 (NO WRITE) Scanning entire disk for bad blocks Scanning offset 6615812001408 of 1000204886016 (66%)
and I had to interrupt it as the system was needed.
Does FSCK mark the bad sectors as it scans for it (or does it do it only do this after the scan is complete?)
If the first case is true, is there any option to resume scanning from the offset specified in the status message (i.e from block 6615812001408)?
Is there any better system tools to scan disks for bad sectors which supports resume if the operation has to be interrupted?