![]() ![]() Your Terminal window should now look similar to this: Repairing a disk from Terminal in OSXĬongratulations! Your disk has now been verified and repaired entirely from the command line. ![]() You may also use / as the identifier for your Mac's hard drive. If you wish to target a different drive, insert the name of that drive instead of SD. Just as before, I’ll use SD as my drive identifier. Repairing the DiskĪssume, 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: diskutil repairvolume /Volumes// and press Return. If there was an error I would see a message that reads: The volume was found corrupt and needs to be repaired. So I can be confident in the drive and its ability to store data. You will see something that looks like this: Verifying a Disk via Terminal in OSX ![]() If you are targeting the Mac's hard drive you can also simply use a /. To start the verification process, type the following command, while being sure to substitute the portion for the actual name of the drive. Once you have the list of disks, you can target one or many of them for verification and repair. You’ll be shown a list of disks attached to your Mac. The Terminal window should now look very similar to this: Accessing the Volumes directory from the OSX Terminal So to switch to the Volumes directory, open Terminal and type or paste in this command: cd /Volumes. In the terminal a /is known as the root, or lowest level, directory. The command used to switch from directory to directory is cd. This directory is located one step away from the root of the Mac. If you aren't at least a bit comfortable in Terminal, you may want to stick to the graphical user interface applications like Disk Utility.Īll of the disks that are attached to the Mac are located within the Volumes directory in Terminal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |