- #Could not unmount disk mac external hard drive how to
- #Could not unmount disk mac external hard drive for windows 10
- #Could not unmount disk mac external hard drive password
As detailed, Apple recommends always using the “vifs” tool instead. I have verified this guide as working from OS X 10.7 – macOS 10.12.Īs a final note, many guides suggest using this command to edit the file:Īlthough I have used this command myself and it works well, it is not recommended by Apple as completely safe. Other file type commands are available, look up the ones you need if they are not mentioned here. To set a partition that is formatted as FAT to not automatically mount, replace “hfs” in the above command with “msdos”. If your partitions are set up differently, you must edit the command accordingly.įor example, if you did want the partition to mount automatically, but wanted it to be mounted as read-only instead of read-write, you could remove the phrase “noauto”, and replace “rw” with “ro”. Most macOS partitions are formatted in this way, but you can check the formatting of your drive in the Disk Utility application if you are unsure. The command given in this guide assumes the partition in question is formatted jhfs+ (Mac OS Extended Journaled), and that you wish it to be read-write on mount.
This method will work with normal, RAID, encrypted and CoreStorage partitions. When finished, press “esc” to leave edit mode, then type “:x” and press the “Enter” key to save changes and exit the editor. Press “A” to enter edit mode, navigate down to your inserted lines with the “Down Arrow” key, and use the “Delete” or “Backspace” key to remove as many of them as you like.
#Could not unmount disk mac external hard drive password
Enter your password to view /etc/fstab with your list of drives inside. First, open Terminal and issue the “sudo vifs” command. In order to reverse the changes described here you can remove the UUIDs of your drives from the /etc/fstab file which we added them to, using a similar process as before. Add any further partitions on the lines below, repeating the entire phrase but changing the Xs each time.Ħ) When you’ve finished, press the “esc” key to exit cursor mode, then type “:x” and hit the “Enter” key to save your changes and exit the document.Īfter a reboot, logout/login, or disconnect/reconnect of the drives, the partitions you have added to the document should not automatically mount. If you wish to mount those partitions in future, you can use Disk Utility or Terminal to do it manually. Replace the string of Xs with your own UUID which you noted earlier. UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none hfs rw,noauto Now copy and paste the following line into the document: Press the “A” key to bring up the cursor and, using the “Down Arrow” key and a final press of the “Enter” key, navigate down the document to below the lines marked with the # symbol, and above the lines marked with the ~ symbol.
It will return a string titled “Volume UUID”.ģ) Copy this long string and paste it somewhere, then repeat the command for all the other partition names you want, pasting their UUIDs somewhere safe too.ĥ) Enter your administrator password when prompted. An empty editable document will then appear in the Terminal window. Replace “Volume Name” with the name of the partition you want to stop from mounting, making sure to retain the speech marks if your volume name contains spaces or punctuation.
At the prompt, paste the command:ĭiskutil info /Volumes/"Volume Name" | grep 'Volume UUID' First, connect the drives and mount the partitions which you do not want to mount automatically in future.Ģ) Next, launch Terminal (found in /Applications/Utilities, or with Spotlight).
#Could not unmount disk mac external hard drive how to
This guide will detail how to ensure only the drives of your choosing mount automatically, leaving the rest unmounted within macOS.ġ) To prevent partitions from mounting automatically we are going to add their UUIDs to a list via Terminal. It also takes time for the drives to mount on every boot and unmount on sleep or shutdown. Add to this a couple of external hard drives with partitions for storage, OS installers and Time Machine backups for other computers, and your desktop and Finder sidebar can begin to look a real mess.
#Could not unmount disk mac external hard drive for windows 10
Whilst this behaviour is useful for the novice or for those connecting a single USB stick to copy some files, it can become unwieldy and even annoying if you have many multi-partitioned drives attached to your Mac.įor example, my desktop Hackintosh has three internal drives, each with at least two partitions, and one of these drives is not even needed when booted under macOS – it is for Windows 10 and Linux. With the exception of partitions in unreadable formats and certain hidden partitions such as EFI and Recovery HD, the default behaviour of macOS is to mount all partitions of a drive on boot-up, login, or on connecting an external drive.