Site TIPS PAGE🔎   UP ONE LEVEL
 OJB's Web Site. V 2.1.tip tips mac owen2 
Tip

Up to OJB's Mac Tips List

Scan a Disk for Bad Blocks

You can use terminal to check a disk for bad blocks (physically damaged areas of the disk).

First find the name of the disk, run:
diskutil list
And make a note of the disk name, eg disk8

After finding the disk name, run:
sudo fsck_hfs -fy -S /dev/DISKNAME
Enter the admin password and let the check run.

Note: This process does not guarantee that it won't make the damage worse, but this applies to all processes of this type.



My latest blog post: An Empathy Deficit: They end up reducing the total empathy in the world. (posted 2025-06-28).
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51

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

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

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