Mount/Unmount Bootcamp Partition

It is not always we need or want the Bootcamp windoze partition mounted. Most hardly access it... ever from the Mac. So why keep the partition mounted all the time? Makes no sense, luckily we can disable the automount for the Bootcamp partition.

Get the UDID of the Disk

We need to know the UDID of the partition in order to disable the automount, but we need to know the disk's node to find that UDID. To find out what is the disk's node (IDENTIFIER):

diskutil list

You'll see the name of your Bootcamp Volume in the list, and next to it the disk's node. Mine is disk0s4.

To get the UDID of the Bootcamp disk we issue the command below.

diskutil info /dev/disk0s4 | egrep -om1 "([A-Z0-9]{8}.[A-Z0-9]{4}.+$)"

Copy of the UDID and paste it somewhere.

Editing Config File

We need to edit the fstab file that is located in the /etc directory. We'll use Terminal and nano:

sudo nano /etc/fstab

Type or paste the line below in it, make sure to use your UDID not the one in the example below:

UUID=A649F190-9353-45DD-8B60-1D2B85C4F5FE none ntfs rw,noauto

Save the file by pressing CTRL + O and quit CTRL + X.

From now on the Bootcamp partition will not automount anymore. And if you want to access it you'll have to manually mount it. Keep reading to find out how.

Manually Mounting

This can be done by using the Disk, or in a Terminal. You can also create a service to do it. We'll cover the terminal and the service options.

Take a look also at Mounty a little utility that can mount the Bootcamp partition as read/write. It is another nice option with an interface and r/w native support for "clean" partitions.

Mounting Using the Terminal

The command to mount the Bootcamp disk is diskutil mount DISK_NODE

In our example that would be:

diskutil mount /dev/disk0s4

Mounting Using a Service

Using a service is fast and easy! Let's create an Automator service that we can either access via the Finder menu options or with a hotkey combination. Follow these steps:

  1. Open
  2. Select Service and click on Choose
  3. Find the option Run Shell Script and drag it to the right pane
  4. In Service receive selected select no input
  5. Change any application to
  6. In the Run Shell Script box delete the cat command and type:
diskutil mount DISK_NODE

Where DISK_NODE is the Bootcamp disk node. e.g. diskutil mount /dev/disk0s4

Save the file using the menu File > Save. A good name is for it is "Mount Bootcamp", right?

You can now mount the Bootcamp partition by clicking on the Finder's menu:

Finder > Services > Mount Bootcamp

As you can see mine has a hotkey linked to it, which makes things even easier. Anywhere with Finder selected I can press the hotkey and the Bootcamp will be mounted.

Service Hotkey

  1. Open System Preferences click on Keyboard and select the Shortcuts tab.
  2. In the left panel select Services
  3. In the right panel find and select the "Mount Bootcamp" line
  4. Click on add shortcut and press a sequence.

Make sure the combination is unique, don't use something like CMD + C.

I choose CTRL + ALT + CMD + D

{{ message }}

{{ 'Comments are closed.' | trans }}