Tip Details Add a Related Tip

Rate as: Positive Negative

Fix /home directory after installing Leopard

If you do any sort of web development on your Mac, you are likely to have a /home directory on your drive. In my case, I have a /home directory with a bunch of symbolic links to directories in my user directories since these then allow me to match the directory structure on my production web servers. I know that Zend, and perhaps other development tools, also make use of the /home directory.

If you install Leopard, you are going to be in for a very rude surprise. Once you install Leopard, the /home directory will still be there, but it will be completely empty, and you'll be unable to figure out what is going on, nor will you be able to recreate what was in there previously.

I have no idea WTF Apple was thinking here, but the good news is that your files are still there and you can easily fix this problem with the /home directory. Here's how:

Edit the /etc/auto_master file. You'll need admin privileges to do this like so: sudo vi /etc/auto_master. Here are the contents of the file:

#
# Automounter master map
#
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,nosuid
/home                   auto_home       -nobrowse
/Network/Servers        -fstab
/-                      -static

All you need to do is comment out the line that starts /home by putting a pound sign (#) in front of it. When you are done, here's how the file should look:


#
# Automounter master map
#
+auto_master            # Use directory service
/net                    -hosts          -nobrowse,nosuid
#/home                   auto_home       -nobrowse
/Network/Servers        -fstab
/-                      -static

Once you do this, you need to restart your machine.

If you do this, you'll completely recover your /home directory after installing Leopard.
Rating: 85% positive, 14 total Votes
Categories: Leopard repair Mac
Added: on Nov 04, 2007 at 8:07 pm
Added By: Marcos84
Searches: /home leopard directory mac file

Comments on this Tip

Add a Comment
This happened to me too. I sat on hold with Apple tech support for 3 hours and never got through to a person who could help me. Thanks for this tip, it fixed the problem for me.
– Added by an anonymous user on Nov 05, 2007 at 6:22 am
this totally saved me.
– Added by an anonymous user on Mar 24, 2008 at 5:20 pm
Why mess around with the file system when there is chroot?
– Added by an anonymous user on Apr 09, 2008 at 9:24 am
How is chroot going to help here?
– Added by an anonymous user on Apr 10, 2008 at 2:12 pm
Very nice, thanks!!!
– Added by an anonymous user on Dec 09, 2008 at 5:23 pm
You don't have to reboot after that, you can just do:
$ sudo umount /home/
– Added by an anonymous user on Dec 09, 2008 at 5:24 pm
An alternative to to commenting out the line as suggested above is to edit the file auto_home. The man page on auto_master has more details, and should be read in any case before you start fiddling with auto_master.
– Added by an anonymous user on Aug 18, 2009 at 9:08 am
Your Comment:
(how to format)
Rate This Tip:

Verify Humanity:
Sorry, we know it's annoying, but please enter the characters shown in the image to the left so that we know you're an actual person and not an evil spammer. Thanks.
       

Related Tips

Fixing Spotlight

100% positive, 1 comment - last added on May 10, 2009 at 9:27 pm
– Tip added by an anonymous user on Aug 19, 2008 at 12:28 pm

Fixing blue screens of death on Leopard

Categories: Mac Leopard repair booting
no ratings, 0 comments
– Tip added by an anonymous user on Dec 30, 2008 at 3:08 pm

Duplicate birthdays in iCal

Categories: iCal Mac Leopard
100% positive, 0 comments
– Tip added by an anonymous user on Nov 29, 2008 at 7:18 am

See all your iCal events

Categories: iCal Mac search Leopard
100% positive, 0 comments
– Tip added by an anonymous user on Oct 20, 2008 at 9:41 pm

Adding spacers to the Dock

100% positive, 2 comments - last added on Dec 05, 2008 at 7:56 am
– Tip added by an anonymous user on Oct 30, 2008 at 7:56 am

Create Leopard favorites at side bar

Categories: Leopard Mac favorites
100% positive, 1 comment - last added on Jun 02, 2009 at 1:46 pm
– Tip added by virach on Apr 19, 2009 at 8:30 am

Zooming with the mouse on the Mac

100% positive, 1 comment - last added on Dec 16, 2008 at 7:30 pm
– Tip added by an anonymous user on Dec 16, 2008 at 7:28 pm

Changing the spotlight shortcut

100% positive, 0 comments
– Tip added by an anonymous user on Nov 22, 2008 at 9:09 pm

Disable data detectors in Mac Mail

Categories: Mac Mail Leopard
100% positive, 0 comments
– Tip added by an anonymous user on Nov 04, 2008 at 6:00 am

Missing CVS after trying to install iPhone SDK

Categories: CVS mac iPhone SDK Leopard
100% positive, 0 comments
– Tip added by an anonymous user on Oct 27, 2008 at 10:17 am

Organizing mailboxes in Snow Leopard

Categories: Mac Snow Leopard Mac
100% positive, 0 comments
– Tip added by an anonymous user on Oct 15, 2009 at 9:03 am

Restoring the /home directory in Snow Leopard

100% positive, 0 comments
– Tip added by an anonymous user on Sep 04, 2009 at 9:19 am

Make Spaces easier to recognize

100% positive, 0 comments
– Tip added by an anonymous user on Feb 03, 2009 at 2:46 pm

Easier way to customize Time Machine

100% positive, 0 comments
– Tip added by an anonymous user on Nov 06, 2008 at 4:38 pm

Better spotlight searches

100% positive, 0 comments
– Tip added by an anonymous user on Oct 28, 2008 at 7:40 am

add iChat and Photobooth effects

100% positive, 0 comments
– Tip added by an anonymous user on Oct 10, 2008 at 4:39 pm

Alert volumes on a Mac

no ratings, 0 comments
– Tip added by an anonymous user on Oct 14, 2009 at 9:32 am

Customize your Mac look-and-feel

no ratings, 0 comments
– Tip added by an anonymous user on Mar 30, 2009 at 1:28 pm

Keep dock icons from bouncing

Categories: Mac Leopard Dock
no ratings, 0 comments
– Tip added by an anonymous user on Dec 30, 2008 at 10:58 am

Router info in the Airport menu

0% positive, 0 comments
– Tip added by an anonymous user on Dec 03, 2008 at 2:54 pm