Monday, April 4, 2016

How to prevent partition from mounting automatically on OS X Lion

You might have another OS installed a long side OS X and don't want to mount it when starting OS X to avoid modifying it accidentally which can corrupt the OS. To prevent the partition from mounting automatically, you can do as followings:

See which volume you don't want to be mounted automatically from the output of the command below.
> diskutil list

From the following command, note the Volume Name and Type (Bundle) attributes.
> diskutil info /Volumes/<Win7>
   Device Identifier:        disk0s6
   Device Node:              /dev/disk0s6
   Part of Whole:            disk0
   Device / Media Name:      BOOTCAM

   Volume Name:              Win7
   Escaped with Unicode:     Win7

   Mounted:                  Yes
   Mount Point:              /Volumes/Win7
   Escaped with Unicode:     /Volumes/Win7

   File System Personality:  Tuxera NTFS
   Type (Bundle):            fusefs_txantfs
   Name (User Visible):      Windows NT Filesystem (Tuxera NTFS)

Create or edit /etc/fstab file
> sudo nano /etc/fstab
LABEL=Win7      none    fusefs_txantfs  ro,noauto       0       0

Then, reboot machine. That's it.




Problems I solved:
At first, I put ntfs instead of fusefs_txantfs in /etc/fstab file then it didn't work. I changed it to fusefs_txantfs and it worked.




No comments:

Post a Comment