Mini M4 with home directory on external drive: unable to log in at this time….
With so little storage on my Mini M4’s internal drive, I moved my home directory to my external Thunderbolt drive. This worked well with one big exception: I was unable to log into my account after booting. This unhelpful message appeared:
‘You are unable to log in to the user account “user” at this time. Logging into the account failed because an error occurred.’
Strangely, after logging in with the separate admin account that I created just for circumstances like this one, I could successfully log into that account via fast user switching.
Apple support knowledgeably suggested a variety of things that I’d already tried and finally suggested reinstalling the system. I was considering doing that but skeptical that it would address the issue. After some more thought, it occurred to me that the issue might be that the external drive was not mounted until a login happened. And sure enough, after going into Terminal and entering this command which does exactly what it says, all is well and life is good with my Mini M4.
sudo defaults write /Library/Preferences/SystemConfiguration/autodiskmount AutomountDisksWithoutUserLogin -bool true
I hope this helpful for those experiencing this issue.
On a separate topic,I did test installing the system on the external drive and booting from it. This worked well but had one fatal flaw for me: TimeMachine will fail doing its initial backup. I believe it is trying to backup system files on the internal drive which it doesn’t have access to.
Mac mini, macOS 15.1