Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ.
The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version.
This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.


[Index] [Menu] [Up] Title[Header]
Tips

(Up to OJB's Mac Tips List Page)


Bad Block Scan from Terminal

How to do a bad block scan of a volume.

This reads the whole disk and reports any (hardware) errors found.

List available disks: diskutil list
Find the ID of volume to be scanned in the list, eg /dev/disk2

Enter this: sudo fsck_hfs -dylS DISKID
Example: sudo fsck_hfs -dylS /dev/disk2s2

Meaning of options...
d = output debugging info
y = assume a yes response to all questions
l = live fsck (lock down and test-only)
S = Scan disk for bad blocks


[Up]

[Contact][Server Blog][AntiMS Apple][Served on Mac]