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: A Different View: People whose ideas differ aren't bad, they just have a different view. (posted 2025-07-22).
Warning: mysqli_connect(): (HY000/1040): Too many connections 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: