Stop prompting to unlock disk

automountfilesystemfilevaultterminal

I have two hard disks on my 2012 Mac Mini. The first disk is partitioned with Mac HD and Data HD. The second drive has OS X Public Beta and Windows partitioned.

I want to prevent OS X on my main disk from auto-mounting OS X Public Beta and Windows 7. Both are encrypted (FileVault 2 and Bitlocker).

I tried to edit /etc/fstab and /private/etc/fstab which seem to be replicated but it doesn't work. I thought I was doing something wrong, so I added a line for Data HD which is not encrypted and it didn't mount.

sudo vifs

UUID=NUMBER none hfs ro,noauto

That's the line I'm issuing for Public Beta. I'm assuming its not hfs because of FV2 so is there another file system I need to enter? I also tried hfs+ and it didn't work, I still get prompted to enter passcode.

For Windows 7, I'm assuming I would use ntfs? I'm not using BootCamp so I don't think it would be fat.

Best Answer

Instead of using UUID try using LABEL. This will help to rule out UUID problems.

The following line in /private/etc/fstab stops the drive named SpareSSHD from mounting on OS X 10.10:

LABEL=SpareSSHD none    hfs rw,noauto

My drives are encrypted with FileVault2 and this works.

The following links provide more detail:

/private/etc/fstab and /etc/fstab are the same file. As @forquare confirms, they are symlinked. You can edit either.