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

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



My latest blog post: Avoid Microsoft: If you don't really like computers much you could make things a bit better for yourself. (posted 2024-12-04). My latest podcast: OJB's Podcast 2024-08-22 Stirring Up Trouble.
 ©2024 by OJBBlogMS Free ZoneMac Made
T: 11. H: 180,240,514
Features: RSS Feeds Feedback LogMod: 07 Jun 2024