Switched to Volumes Directory ls - this will list names of all the connected drives You can do that using two simple commands: cd /Volumes - this will change the active folder under terminal to your hidden Volumes directory Once you have done that, you need to check the names of the volumes that are currently connected to your system. The first thing you need to do is start Terminal (/Go/Utilities/Terminal). In this guide, I will show you how you can repair a disk on Mac OS X using the command-line. This could come in handy in situations when you can't or don't want to use Disk Utility for some reason.
However, this can also be performed using the command-line. Mac OS X comes with an easy-to-use application, called Disk Utility, that allows users to verify and repair hard disks using a graphical user interface and it is recommended for most Mac users that are not comfortable using the terminal. How to Repair a Disk on Mac OS X from Command Line