Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Hack5190

macrumors 6502a
Original poster
Oct 21, 2015
531
311
(UTC-05:00) Cuba
Is there a way to edit fstab to disable / stop prompting for the password in order to mount encrypted volumes at logon?

The traditional method of using the UUID for unencrypted volumes in fstab doesn't stop the password prompt.

IE: I want to mount these volumes on demand - no stored password and no prompting at login.
[doublepost=1560873392][/doublepost]For anyone who reads / finds this in a search - "encrypted disks are unlocked before fstab is read". That explains why I'm unable to use the unencrypted UUID's to stop the password prompt.
 
Last edited:
Can you explain why you want things to work the way you've described?

One way to obtain a "don't auto-mount" capability is to use an encrypted disk-image instead of an encrypted disk (sparsebundle would be optimal). Since disk-images aren't mounted automatically, you don't have to disable any auto-mount. They'll be mount-on-demand by default.

If you do choose to auto-mount a disk-image, I'm fairly sure you can simply add it to your Startup Items. If that doesn't work, you can make an AppleScript that mounts any number of disk-images, and add that script to your Startup Items.

Disk-images are sub-optimal in one respect: they increase the number of objects being dealt with. Every distinct "disk" will need a disk-image, roughly doubling the number of objects. If that's not an acceptable tradeoff, ignore this post.
 
I want to mount these volumes on demand - no stored password and no prompting at login.
I don't understand. If you have an encrypted volume, the password is required to mount it. So if you a) don't want to store the password, and b) don't want to ask for the password, where do you propose the system should obtain the password from?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.