Tip Details

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: 88% positive – 18 total Votes
I Like this Tip I Don't Like this Tip
Categories: Leopard repair Mac
Added: on Nov 04, 2007
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
this totally saved me.
– Added by an anonymous user on Mar 24, 2008
Why mess around with the file system when there is chroot?
– Added by an anonymous user on Apr 09, 2008
How is chroot going to help here?
– Added by an anonymous user on Apr 10, 2008
Very nice, thanks!!!
– Added by an anonymous user on Dec 09, 2008
You don't have to reboot after that, you can just do:
$ sudo umount /home/
– Added by an anonymous user on Dec 09, 2008
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
Your Comment:
(how to format)
Keywords:
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, 3 comments - last added on Jan 28, 2011
– Tip added by an anonymous user on Aug 19, 2008

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

Duplicate birthdays in iCal

Categories: iCal Mac Leopard
100% positive, 1 comment - last added on Jul 01, 2010
– Tip added by an anonymous user on Nov 29, 2008

Adding spacers to the Dock

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

Magic mouse momentum scrolling in Leopard

80% positive, 1 comment - last added on Jan 31, 2010
– Tip added by an anonymous user on Nov 29, 2009

Restoring the /home directory in Snow Leopard

100% positive, 0 comments
– Tip added by an anonymous user on Sep 04, 2009

Disable data detectors in Mac Mail

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

Create Leopard favorites at side bar

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

Organizing mailboxes in Snow Leopard

Categories: Mac Snow Leopard Mac
100% positive, 1 comment - last added on Feb 17, 2010
– Tip added by an anonymous user on Oct 15, 2009

Keep dock icons from bouncing

Categories: Mac Leopard Dock
100% positive, 0 comments
– Tip added by an anonymous user on Dec 30, 2008

Zooming with the mouse on the Mac

100% positive, 1 comment - last added on Dec 16, 2008
– Tip added by an anonymous user on Dec 16, 2008

Changing the spotlight shortcut

100% positive, 0 comments
– Tip added by an anonymous user on Nov 22, 2008

Easier way to customize Time Machine

100% positive, 0 comments
– Tip added by an anonymous user on Nov 06, 2008

No disk eject on the Mac

100% positive, 0 comments
– Tip added by an anonymous user on Apr 25, 2011

Shortcut to opening screen sharing on the Mac

100% positive, 0 comments
– Tip added by an anonymous user on Mar 25, 2010

Customize your Mac look-and-feel

50% positive, 0 comments
– Tip added by an anonymous user on Mar 30, 2009

Make Spaces easier to recognize

100% positive, 0 comments
– Tip added by an anonymous user on Feb 03, 2009

Show only active apps in the Dock

no ratings, 0 comments
– Tip added by an anonymous user on Mar 27, 2010

Alert volumes on a Mac

no ratings, 0 comments
– Tip added by an anonymous user on Oct 14, 2009

Router info in the Airport menu

0% positive, 0 comments
– Tip added by an anonymous user on Dec 03, 2008