Search:
Advanced search
|
Browse by category:
|
Contact Us |
How to Verify and Repair a Disk From the OS X Command Line |
|||||
How to Verify and Repair a Disk From the OS X Command LineThe Disk Utility application is a powerful tool for keeping the drives that are connected to your Mac happy and healthy. But there are situations in which it may not be available. As an example, connecting to a remote computer via SSH, or Disk Utility simply refusing to launch. In this tutorial, I’ll show you how to:
Screencast
Important NotesBefore I take you any further, you need to understand a couple of things:
Locating the DiskAll of the disks that are attached to the Mac are located within the Volumes directory in Terminal. This directory is located one step away from the root of the Mac. The command used to switch from directory to directory is So to switch to the Volumes directory, open Terminal and type or paste in this command: Accessing the Volumes directory from the OSX Terminal Type Verify the DiskOnce you have the list of disks, you can target one or many of them for verification and repair. To start the verification process, type the following command, while being sure to substitute the
If you are targeting the Mac's hard drive you can also simply use a Verifying a Disk via Terminal in OSX This test came back successful. So I can be confident in the drive and its ability to store data. If there was an error I would see a message that reads: Repairing the DiskAssume, for a moment, that the disk did come back with an error or needing repair. To repair a disk from the command line, type or paste the following command into terminal: Just as before, I’ll use Repairing a disk from Terminal in OSX Congratulations! Your disk has now been verified and repaired entirely from the command line. Cr. computers.tutsplus.com/tutorials/how-to-verify-and-repair-a-disk-from-the-os-x-command-line--cms-21561 |