This quirky method could let you use drives that won’t mount on your Mac after a bad ejection

macOS alerts you when an externally connected drive was unmounted before the operating system had a chance to tidy up all the loose ends on it. In some cases, you may be unable to remount a drive ejected early due to a power outage, shutting a computer down abruptly, or pulling a plug before macOS was ready.

A few Terminal commands can help in at some cases, including solving a problem for one Macworld reader who had amassed three drives that could be mounted under Windows but macOS refused mount or allow Disk Utility to perform repairs on. (This problem may affect drives formatted for Windows and macOS mounting more than HFS+ or APFS formatted drives, but it’s unclear.)

First, you need to find out what macOS’s internal representation of the disk is:

  1. Plug the drive in and power it up if necessary.

  2. Launch Terminal.

  3. Type the following and press Return:

    diskutil list

  4. In the resulting list, find the disk number associated with the unmounted volume. You may see multiple entries that start the same (as in the figure), such as disk3, disk3s1, and so forth. The first part is all that’s needed.

  5. Type the following and press return:

    diskutil eject diskX

    (replace diskX with the number of the disk, like disk3).

  6. Power down the drive if it has a power switch. Disconnect it from the Mac in all cases.

  7. Reconnect the drive and power it up if necessary. It should now appear on the desktop.

mac911 disk number terminal IDG

The disk number appears in a couple of places in the utility’s output.

The Macworld reader who reported this problem and that the solution worked for some drives had to use an additional bit of troubleshooting to fix another. A background process called QuickLookSatellite, which manages some aspects of generating previews for QuickLook in the Finder and elsewhere, had stalled. You can force quit that process via Activity Monitor:

  1. Launch Applications > Utilities > Activity Monitor.

  2. In the find field in its upper-right corner, enter QuickLookSatellite.

  3. Select each match that appears and click the X (Force Quit) button in the top-level corner, and confirm by clicking the Force Quit text button.

QuickLook will automatically restart any processes it needs, so there’s no need to launch the background process by itself.

This Mac 911 article is in response to a question submitted by Macworld reader Fiona.

Ask Mac 911

We’ve compiled a list of the questions we get asked most frequently along with answers and links to columns: read our super FAQ to see if your question is covered. If not, we’re always looking for new problems to solve! Email yours to including screen captures as appropriate, and whether you want your full name used. Not every question will be answered, we don’t reply to email, and we cannot provide direct troubleshooting advice.

Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read our affiliate link policy for more details.

Source : Macworld