We are doing this so we can get the drive identifier, which is typically something like disk1s2, or disk2s2, etc.
This will provide a list of all drives that are attached to the Mac, that are either mounted and unmounted, and all of their respective partitions. To do this youll need another volume attached or connected to the Mac in some form or another, then launch Terminal to get started (sits in ApplicationsUtilities). This is infinitely useful for troubleshooting situations, for scripting and automation, and its a great trick for those of us who just like to tinker around in Terminal. This trick works with external USB disks, hard drives, Firewire, Thunderbolt, DVDs, CDs, network drives, even USB thumb drives, literally any volume that can be mounted and accessed through the incredibly helpful diskutil command.īy using the command line to remount the drive, the entire process can be completed remotely if necessary through SSH, and without ever having to physically disconnect a drive from the Mac.