3

I have a MacBook Pro 15 Mid 2014 with OS X El Capitan. When I accidentally disconnect the external USB disk (without clicking eject), I can't reconnect the disk. If I remove and plug the disk back in it doesn't appear in the Disk Utility.

The solution is to reboot the system.

Is there some command to reconnect the disk without rebooting the system?

  • Try diskutil mount `diskutil list | grep "Volume Name" | sed -n -e 's/^.* //p'`. Replace Volume Name with the name of your device. – Cullub Dec 26 '15 at 22:46
2

You can, in Terminal, try:

sudo diskutil list

Check the output for any drive matching the external drive you have connected. /dev/disk0 is your internal drive. If you have no other drives connected, then your external disk should show up as /dev/disk1.

If you can see the drive, run, from Terminal (assuming your drive is /dev/disk1):

diskutil mountDisk /dev/disk1

This should properly mount your external drive.

2

Open the terminal.

If the disk is not encrypted

Enter this into the terminal:

diskutil list

It will list all the disks that are physically connected to the computer, even if they aren't mounted.

Look for the name in the list and the corresponding code in the format disk#s#. I'll pick the code disk4s2 out of the air, you use what is in your list. Then mount the disk with:

diskutil mount /dev/disk4s2

If the disk is encrypted

I encrypt all my disks. If the disk is encrypted, you must use CoreStorage. It's just as easy, except you have to slog through my long-winded explanation, and you must use the disk's Jumble Number instead of its disk#s# designation. I call it the Jumble Number because it is not labeled and it is a long jumble of numbers. Don't faint. You can just highlight it, copy it with CMD+C and paste it with CMD+V.

First, find the disk:

diskutil coreStorage list

The word "coreStorage" is case sensitive. You must type it in lowercase but capitalize the S, otherwise it will say "command not found."

Look for the name in the list (for example, "Fred's Disk"), but this time use the Jumble Number that is directly beneath it.

Mount the disk as follows, but don't use the Jumble Number in my example, use the one you find in the list:

diskutil coreStorage unlockVolume 29B8Ad4C-2608-4822-A272-3DA848CACB83

Someone who is handy with AppleScript can probably whip up a substitute for Disk Utility that actually works.

  • The Jumble Number that you are referring to is called the Disk / Partition UUID. – Allan Mar 31 '16 at 1:47
  • Thank you, great answer! I'd only add that I needed to activate the encrypted disk from Disk Utility after mounting it. – cdf1982 May 7 '16 at 7:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .