You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Prevent FileVault volume from mounting in Lion

With Lion's new FileVault full-disk encryption, is there a way to stop a (non-boot) partition from mounting on startup/login and asking for a password to unlock it?

MacBook Pro, Mac OS X (10.7)

Posted on Jul 25, 2011 8:40 PM

Reply
Question marked as Top-ranking reply

Posted on Sep 27, 2017 9:39 AM

Thought I would update this thread in case it comes up in Google with High Sierra release:


Now that FileVault in High Sierra converts volumes to encrypted APFS volumes, this trick won't work.. any idea about which Daemons to move/hide to prevent unlock message for the APFS volumes?

20 replies

Jul 25, 2011 10:56 PM in response to Linc Davis

Yes it does. Looking in the logs, it appears that corestoraged is responsible.


11-07-26 1:40:55.493 AM corestoraged: 0x101e24960 unlockLVF: LVF=[XXXX], "AES-XTS", status = "Locked"

11-07-26 1:41:07.317 AM corestoraged: 0x101e24960 unlockLVF: LVF=[XXXX], "AES-XTS", status = "Locked"


Where [XXXX] looks like a UUID, but it's not one that I recognize, and not the UUID of the FileVault volume, unless it somehow has more than one.


Edited to add: Just in case, I tried adding this series of characters to fstab in place of the partition's UUID. Same issue. Corestoraged tries to mount it on startup and prompts for the password as soon as I log in.

Nov 14, 2011 1:03 PM in response to Josh123

lion 7.2 for me here, and i figured it out.


they have a file called fstab.hd, but there's a note in there that says they don't use it anymore.

what you have to do is make a file called just 'fstab' in your etc directory


so the first thing you do is find your partition's Unique Universal Identifier (UUID.) Do this by opening the disk utility, then clicking on the partition in question first, then info. The UUID should be labeled there. Simply copy it.


go to terminal, type in


sudo nano /etc/fstab


you should see a blank file.


type this in:


UUID=(your UUID) none (your file system type) rw,noauto


this is an example of what it would look like for a filesystem that is hfs (a mac journaled file system)


UUID=8BCD6347-4CR5-32A7-A3FB-8H35281DB30E none hfs rw,noauto


so if yours is a mac filesystem, that's all you have to type in your fstab file.


in nano, hit CTRL+O to save (write out) the new file. Then CTRL+X to exit. if it doesn't save, make sure you typed in 'sudo' before choosing the file.


notes:


if you have a separate file system other than the mac filesystem, you have to research what type of file system you have to type in place of "hfs". for example, if you're running an ntfs partition, you would type in "ntfs" instead of hfs.


Bottom line. fstab is not currently in osx lion, but if you make one there, it will work in not mounting your drives when you start. You can of course still mount the drive via disk utility and have the full function if you want to.

Dec 15, 2011 4:37 AM in response to philfsimon

Actually:


UUID=8BCD6347-4CR5-32A7-A3FB-8H35281DB30E none hfs rw,noauto


is incorrect, it misses two fields.

It should be:


UUID=8BCD6347-4CR5-32A7-A3FB-8H35281DB30E none hfs rw,noauto 0 0


The two '0' (zero's the cipher, not capital o) aren't trivial.


Basically an fstab entry has the following fields:

  1. Device identifier (device file or UUID or LABEL)
  2. Mount point
  3. Filesystem type (e.g. hfs, vfs,nfs,ntfs)
  4. Options (rw means read and write, ro means read only, noauto means don't mount automatically, nouser means only superuser can mount device. There are more options, usually depending on the fstype)
  5. Indicates whether the fs needs to be dumped (0=no, any other number means yes)
  6. Indicates whether the fs needs to be checked at boot time (0=no)


Although the man page for fstab implies that fields 5 and 6 can be omitted, they can't.


Message was edited by: jasper kips

Apr 25, 2012 6:50 AM in response to Josh123

OK, found a solution, sorta, but please note that I have two self-contained Lion installs on the same HDD, one FV2, the other unencrypted. If you just have separate System & User partitions, this is probably no use to you...


In the non-FV2 system, Go to /System/Library/CoreServices/SecurityAgentPlugins/


and remove the item DiskUnlock.bundle i.e. take it from that folder and store it somewhere safe, in case you need to add it back.


Restart et voila. No more prompting.


I've since created a test DMG encrypted with Disk Utility and can still unlock that, so the bundle seems to be for hardware only, but YMMV...


I've also flagged the "Disk Unlock" prompt to Apple Security as a potential security flaw/bug. Others in need of a more refined solution may wish to do the same.

Prevent FileVault volume from mounting in Lion

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.