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: A Lie by Omission: There's a good reason for this: the media is corrupt. (posted 2024-05-20 at 13:06:48). I do podcasts too!. You can listen to my latest podcast, here: OJB's Podcast 2024-04-30 The Fall of Rome: I'm afraid that we really might be seeing the demise of the greatest era in history..
 Site ©2024 by OJBRSS FeedWhy Macs are BestMade & Served on Mac 
Site Features: Blog RSS Feeds Podcasts Feedback Log16 Jul 2020. Hits: 90,098,809
Description: Mac TipKeywords: Macintosh,Computers,Fixing Problems,TipsLoad Timer: 11ms