TUAW Tip: Moving your home folder to another disk (or moving it back)
In ye olde times, with "Mack OSe 9," many users chose to keep their personal files, work, and documents on a different physical disk from their startup disk. It was a safety measure: If one disk goes down, at least the other won't. There was no structural reason to keep files in a particular disk location, other than keeping them out of the System Folder.
I visited a client yesterday whose drive scheme was set up exactly like this, and he wanted to be (finally) upgraded to Leopard. I wasn't sure how Leopard would handle the fact that his Users folder had been moved to a different drive, so (knowing I had backups of his entire system) I cautiously proceeded with the installation.
After the installer finished, Leopard had created a fresh, blank Users folder on the startup disk with a home folder bearing the same username. This wasn't exactly the answer I was looking for. I had to link, somehow, the new Users/hisname folder with his existing user folder on the other volume.
Turns out, Leopard handles this much better than previous versions of Mac OS X. Read on to find out how.
In fact, it's as easy as opening System Preferences, holding the Control key and clicking (or right-clicking) on the account you want to change, and selecting Advanced Options.

You can see that you can easily browse for the user's existing home folder by clicking Choose next to the Home Directory field. Restart the computer, and it's done and dusted. Thanks to our own Michael Rose for this tip.
Hopefully, when you log in, the user's old Desktop, Dock, and everything else is in its place. You can then safely delete /Users/fred in the Finder by throwing it in the Trash. Note that this only changes the path for Fred's home folder; any subsequent users that you create will get home folders in the usual /Users path on the startup disk.
Now, a word of caution. In the past, some security and software updates have been confused by the fact that a user's home folder isn't on the startup disk. While most of the time there shouldn't be a problem, this user's system configuration is now an edge case, and that's where problems crop up. That's why I don't really recommend setting up a client's computer this way. If you're comfortable with the risk, then go for it.
For the truly nerdcore among us, you can also do this via the Directory Services command-line utility: dscl. Note that dscl requires root privileges, so you'll need to preface the command with 'sudo' to get it to work.
When you run dscl, the next step is to navigate to the correct directory within the Directory Services hierarchy (not a literal directory on the disk, mind), and change the value for the user's home folder. In this example, the user's name is fred, the user's new, blank home folder that Leopard created is /Users/fred and his old (correct) home folder on another volume is /Volumes/External Drive/Users/fred. [Line wraps are marked with », that command should go on one line. -- Ed.]
sudo dscl localhost
cd /Local/Default/Users
change fred dsAttrTypeNative:home /Users/fred »
"/Volumes/External Drive/Users/fred"
exit
Restart the computer, and you're good to go. You can remove the empty user folder on the startup disk by dropping into Terminal and typing sudo rm -R /Users/fred and pressing return.
My client eventually wants to change this partition scheme back to a more traditional installation. He also wants to move his data onto one large physical disk instead of two small ones (now that he has Time Machine as his safety net). When we migrate his data onto one disk, we can run this command in reverse to point his username to his home folder on the new, large startup disk.
Also: OWC has a comprehensive walkthrough on this process, including copying your data, on their website. Thanks, @macsales!
Share
Source: http://www.iezzi.ch/archives/111
Categories
In ye olde times, with "Mack OSe 9," many users chose to keep their personal files, work, and documents on a different physical disk from...
Add a Comment
Q. If the external drive disconnects (due to crash, power, etc) while OS X is running and you are logged into your account:
What should you immediately do (- After restarting the ext drive, OS X still did not recognize my home folder, pictures, nor documents, etc...)
Thank you.
There are two things you can try. First, follow the instructions here for the Account screen (see the screenshot) and make sure that the Home Directory is pointing to the correct location.
Second, if there are permissions problems with your home folder, you may want to follow the instructions here, starting at step 4 (booting from your Leopard DVD):
http://support.apple.com/kb/TS1334
Since my first computer (Atari 520ST) I have always kept my documents and work files on a separate HD (don't even ask how much I paid for an 80MB HD at the time!!), imaginatively called "Documents".
I have maintained that practise for all these years, and now make monthly backups to DVD. If my startup HD goes down, at least I don't lose any of my personal files.
Address Book & iCal get backed up regularly plus sync'd with two phones. iTunes also allows music/video to live elsewhere and everything in iPhoto is brought in from the "Documents" HD to my Home folder, so no problems there either.
The only thing I've never done is keep backup files off-site...
Stan-O
You can run OS X Server on a Mini. I have done that starting with OS X Tiger. I had an 80Gb Mini with an external drive It worked great!
Performing this Home folder move preventing MobileMe syncing. Spend 1 hour with a MM and OSX specialist at Apple and they indicated that Syncing will not work unless home folder is on your primary boot drive. Just a heads' up.
Doh! You mean, click the little lock icon that says "Click the lock to make changes?"
Son-of-a-gun. That did it. Thanks Robert.
:)
I apologize if I am dense on this but if I open System Preferences / Accounts, nothing happens if I Ctrl-click on an account. Please provide a bit more detail on how you get to the Advanced Options pane.
Many thanks
Heather
Hi Heather, you might need to click the lock icon (in the bottom right corner of the screen) before you can make changes to accounts. Once you provide your administrator password, you'll be on your way.
Hope that helps!
Anyone tried this within an Active Directory environment?
Our Mac's internal drives are partitioned three ways with a boot drive, restore drive and a storage drive. I'd like to be able to have new users simply login to the Mac with their AD account and a new home folder would be created on the storage drive.
Prefs would be configured either with Open Directory or within the System/Library/User Templates folder.
I've been able to do this using a symbolic link to the /Users folder, but wondered if this was something that could be done in the Directory Services local file.
You can actually just redirect the home folder path within AD or OD to have this effect, although it may work better with the Apple schema extensions to AD, the 'golden triangle' or with a third-party tool like Centrify or ADmit Mac. afp548.com and macenterprise.org are good resources.
May 14 2009 at 6:16 PM Report abuse Permalink rate up rate down ReplyWhat would be great is if my home folder could be mirrored to multiple machines/disks. I know I could buy an XServe or use DropBox (I have DB). But, it would be nice to all my Macs looking exactly the same all the time (i.e., MacMini home media server, MBPro work laptop and MBAir Travel/Den laptop). That way, switching laptops would be transparent, my media would always be instantly available from the media server and everything would be backed up.
I'm dreaming.
So, in this way I could keep the pictures, movies, music, files, and etc. on a different drive than my boot-up disk while it would appear the same as in the normal sidebar?
May 14 2009 at 4:33 PM Report abuse Permalink rate up rate down ReplyWhat's wrong with just removing /Users/fred and then
cd /Users/
ln -s "/Volumes/External Drive/Users/fred"
?
In principle, nothing -- the symbolic link should behave like the real folder. In practice, this tends to cause obscure issues and break things.
May 14 2009 at 6:13 PM Report abuse Permalink rate up rate down Replyi'm going to set up my new machine like this. i did a test run and found that some programs just expect to find your home directory in /Users/homedir. so i think i'm going to do both the symlink and the dscl trick to cover my bases.
May 15 2009 at 1:56 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Refurb iHome iH120 Portable Alarm Clock w/ iPod Dock for $18 + free shipping
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
- Philips wOOx Alarm Clock Radio for Apple iPod / iPhone for $60 + free shipping
- iWatchz Elemetal Collection Bracelet for iPod nano for $75 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



28 Comments