Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.1. Mac Tip.You are here: tip tips mac owen2 
Tip

Up to OJB's Mac Tips List

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



I usually write a blog post about once a week. The latest post can be viewed here: But is it Science?: Ask yourself this: is it really science? (posted 2024-10-04 at 12:30:35).
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 59

Warning: mysqli_connect(): Error while reading greeting packet. PID=26979 in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 59

Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 59

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.inc.php on line 60
Could not connect to MySQL: