Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.7: Fix issues with startup items accessing encrypted disks System 10.7
When logging in to an account on Lion the login items as well as any applications being resumed get launched right away; in my case, this happens before the system has had a chance to unlock the external encrypted disk that some of these programs need access to, resulting in various issues from unwanted dialog boxes to enter my passphrase to unlock the disk to the programs terminating. For the apps that are launched as a startup item at least there is a work around.

I'm running Lion on a machine with a small internal SSD drive for the OS and applications and a large external drive that holds data such as the iPhoto and iTunes libraries as well as my Dropbox folder. I chose to encrypt the external drive and have my keychain remember the password so that it is always available to me, however I've run into a real annoyance: When I first log in Dropbox is launched (it is a startup item) before the system has had a chance to unlock the external disk housing the dropbox folder. Dropbox.app can't find the dropbox folder and it asks if I want to quit or relink.

The solution was to use this hint to add a short delay before launching Dropbox or other applications that would try to access the encrypted disk.

Unfortunately this only helps with items launched as a Login Item. If anyone has thoughts on how to avoid a similar problem for applications being 'resumed' to their previously running state prior to the encrypted disk holding their data files being mounted please let me know in the comments -- I'm finding this happening a lot with iTunes and iPhoto which I often have running when I log out.

[crarko adds: The older hint (which was submitted for Tiger) uses a script which is run at login that acts as a proxy for staring up the other items. You can set the delay to whatever is required.]
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[7,837 views]  

10.7: Fix issues with startup items accessing encrypted disks | 5 comments | Create New Account
Click here to return to the '10.7: Fix issues with startup items accessing encrypted disks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.7: Fix issues with startup items accessing encrypted disks
Authored by: ckoerner on Aug 19, '11 07:46:44AM
I think this utility might be of some assistance. To quote the read me, "Unlock allows the system to unlock and mount Core Storage encrypted volumes during boot. In other words, this allows you to log in as a user whose home directory is on an encrypted secondary disk without any problems.".

[ Reply to This | # ]
10.7: Fix issues with startup items accessing encrypted disks
Authored by: pbeyersdorf on Aug 19, '11 09:41:09AM

Thanks for the tip - I'll give this a try and report if it works out.



[ Reply to This | # ]
10.7: Fix issues with startup items accessing encrypted disks
Authored by: diamondsw on Aug 19, '11 08:59:28AM

Normally I try to avoid telling people "don't do what you're trying to do", but here...

Don't encrypt your iTunes and iPhoto libraries. That's just going to be extra complexity (which you're already hitting) and slower performance for zero gain. And I seriously hope you're not putting anything sensitive in Dropbox, what with their security lapses.



[ Reply to This | # ]
10.7: Fix issues with startup items accessing encrypted disks
Authored by: kiezpro on Aug 19, '11 09:25:34AM
I'm running a similar setup with the SSD as the main drive and an encrypted HDD mounted under /Users/Shared. What I've done is
  • mount the HDD under /Users/Shared in /etc/fstab, like this:
    UUID=0EDEB832-AEB7-464E-FB8A-925AC8174A64      /Users/Shared   hfs     rw,auto 0 2
  • copy my Keychain item with the password for the HDD to the System Keychain using Keychain Access so the system has immediate access
This works fine for me and mounts /Users/Shared before I log in.
Edited on Aug 19, '11 09:38:16AM by kiezpro


[ Reply to This | # ]
10.7: Fix issues with startup items accessing encrypted disks
Authored by: skeeks on Aug 19, '11 09:49:53AM

Theres a little app called "Delayed Launcher" that can do exactly what you suggest.
Works with Lion.

http://www.macupdate.com/app/mac/29931/delayedlauncher



[ Reply to This | # ]