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

Posted on Dec 1, 2024 04:25 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 8, 2024 05:09 PM

My original post was just to provide advice to deal with a situation that can arise if one chooses to move the home directory to an external drive. The cons and the pros of relocating that directory is a big topic I'd rather not spend a whole lot of time on. I agree that if you don't know what your getting into technically, you probably shouldn't do it.


Personally, having done machine language modifications to my Apple II way back in 1980, worked as a Unix/Unix-like sysadmin for many years and used a hackintosh for the last 5 years, I'm more than up for time & trouble. I learned at lot in the first two weeks with my new M4 mini, re-configuring it 4 or 5 times including testing various restore and recovery methods. Now its in production and I'm pleased and more than ready if/when a failure occurs.

Similar questions

10 replies
Question marked as Top-ranking reply

Dec 8, 2024 05:09 PM in response to HWTech

My original post was just to provide advice to deal with a situation that can arise if one chooses to move the home directory to an external drive. The cons and the pros of relocating that directory is a big topic I'd rather not spend a whole lot of time on. I agree that if you don't know what your getting into technically, you probably shouldn't do it.


Personally, having done machine language modifications to my Apple II way back in 1980, worked as a Unix/Unix-like sysadmin for many years and used a hackintosh for the last 5 years, I'm more than up for time & trouble. I learned at lot in the first two weeks with my new M4 mini, re-configuring it 4 or 5 times including testing various restore and recovery methods. Now its in production and I'm pleased and more than ready if/when a failure occurs.

Dec 3, 2024 07:34 AM in response to ArlingtonCyclist

You should have kept the Home folder on the Mac's internal drive and only moved your Media Libraries to the external drive.


Move your Photos library to save space on your Mac - Apple Support

Change where your music files are stored on Mac - Apple Support

Move your iMovie for Mac library - Apple Support


The solution to your problem now does seem to be, reinstall macOS on the internal drive and then access the media libraries on the external drive as described in the above articles.

Dec 4, 2024 07:52 AM in response to den.thed

Thanks for your reply. If those files were the only issue, those are good ideas. With ~800GB in my Documents folder, those suggestions don't address the issue given a 250GB internal drive. The problem is having everything in the places Apple has always designated and have access that is transparent to the user and applications. Some applications as you correctly point out provide for relocating the associated files.


If there is a way to relocate the Documents folder and be able to navigate as always to it, I welcome suggestions. I've had past experience with having my home directory on a separate drive and I agree that it is highly preferable to keep it on the internal drive. Even with everything now working smoothly with the home directory on the external drive, I'd have no problem moving back to the internal drive with a satisfactory solution.


And btw no reinstall would be necessary to use the internal drive; my original home directory is still there and is only a change in System Settings and a reboot away.

Dec 4, 2024 09:12 AM in response to den.thed

No problem - appreciate you taking the time to reply. As noted in my original message, booting from the external drive worked very well for me until I tried to use TimeMachine. It seems to want to access system files on the internal drive to complete its initial backup and fails. I couldn't find a work around. Also, I hear that Apple Intelligence will not function when booting from an external drive.


To match the 4TB of storage on my prior system, I'd be looking at a M4 Pro at about $2600. Yes, sure would have made this migration dead simple but I have more time to fiddle with technical workarounds than money. 8)

Dec 6, 2024 09:49 PM in response to ArlingtonCyclist

Keep in mind that people who have relocated their home user folders may find their setup broken again after a macOS update patch. This occurred multiple times with Monterey, and I saw some reports this occurred with Ventura as well. A relocated home folder is an unsupported configuration that will break again.


Plus, as someone mentioned, Time Machine has issues with such a configuration. I saw a post a few years ago where the user put their home folder back onto the internal drive, but was unable to restore from their TM backup to the internal drive afterwards.


You are just asking for trouble by using that configuration. Of course if you are willing to take the time & trouble to research & fix things when they break, then go for it.


If you don't use those large libraries that can be relocated, and your data is all just regular data files, then just use the external drive as a pure data drive. Place all your documents there instead of within your Documents folder.


Just make sure you are backing up your external media as well as the data stored on the internal SSD.

Dec 8, 2024 04:48 PM in response to TanNguyenHoan

The error message is telling you that the system cannot access whatever folder you changed your home directory to. If you have another account on the system with admin privileges (something I recommend always having to provide access when your everyday user account gets messed up), log into that account. If so then test whether you can log into your user account via fast user switching. If you can, you may have the same situation I had where the external drive was not mounted until at least one user logs in. If not, go to System Setting and change your home directory back to its previous one. Reboot and see if you can log in. If so, your back in business. Then take the advice of others by leaving your home directory where it is and just creating a place for storing files in alternative locations. Not as clean as storing most things in Documents as Apple encouraged for years but safer.


If you don't have any other accounts with admin privileges, then booting into Recovery mode and reinstalling is your best bet.

Dec 4, 2024 08:46 AM in response to ArlingtonCyclist

Please do not take this the wrong way, but you could have saved yourself a lot of trouble, if you had purchased the new Mac mini with the same size or larger internal storage as your old system.


Your Documents folder can also be moved from the Home folder and reside on the external drive.


Another option is to get and use a large enough external SSD to hold everything and then startup and run from it.

see > Use an external SSD as your startup disk … - Apple Community

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mini M4 with home directory on external drive: unable to log in at this time….

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