First, we'll rename /Users to /UsersOld, and we'll create a new /Users directory that will serve as the mount-point for our new partition

Then we have to edit the /etc/fstab to instruct OS X to automatically mount (that is, make it accessible) the new partition on /Users

Afterward, we'll "move" the contents of our /UsersOld folder into its new place.



Lastly, we might want to tweak the set-up a bit to make it look, as much as possible, as a regular installation

# echo you type this you type this #

Getting Ready

Make sure all your users (if any) are logged-out

Login as 'root'

Launch the Terminal

Renaming the /Users directory

# mv /Users /UsersOld #

Setting up the new /Users mount-point

# mkdir /Users # chown root:admin /Users # chmod 755 /Users #

Identifying the Partition

Open Disk Utility

Find the partition you wish to use as '/Users', right-click it and select 'Information' (or hit CmdKey i)

i) Select the value of ' Universal Unique Identifier ', and copy it ( CmdKey c)

', and copy it ( c) Close the information window

If the partition is mounted, right-click on it, and 'Unmount' it

Setting up auto-mounting of /Users

Before editing this file, it might be wise to save a backup of the original one.

# touch /etc/fstab # cp /etc/fstab /etc/fstab.orig #

Launch TextEdit (or, if you are familiar with the vi text editor, you can use vifs )

# open -a TextEdit /etc/fstab #

text editor, you can use ) The TextEdit window opens (probably with an empty file if you haven't already edited it)

Make sure it's in plain text format (if not, select from the Format menu the "Make Plain Text" option)

Append the following line at the end of the file:

UUID= TheValueYouCopiedAbove /Users hfs auto

After editing, your file should look similar to: UUID= 84BA91DE-C37F-F13D-B5C9-FECA5184DEB7 /Users hfs auto

After editing, your file should look similar to: Save the file and Quit TextEdit

Mounting the new /Users for the first time

In Disk Utility, find the partition you designated for '/Users', right-click it and select 'mount'

The new /Users Volume should appear in Finder (and in the Desktop if you selected that in your Finder's Preferences)

In Finder, locate the 'Users' Volume, right-click on it and select 'Get Info' (or hit CmdKey i)

i) Verify that the 'Ignore ownership on this volume' is NOT checked.

# diskutil enableOwnership /Users #

Moving the home directories contents to the new /Users partition

# mv /UsersOld/* /UsersOld/.[^.]* /Users/ # rmdir /UsersOld #

We can now reboot and verify the /Users is correctly mounted !

... But don't uncork the champagne yet !

Final tweaks

The familiar Users folder icon has been replaced by a disk icon, If you've set your finder preferences to show the hard disks on the desktop, /Users is also shown there.

Fixing the icon

# cp /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/UsersFolderIcon.icns /Users/.VolumeIcon.icns #

Hiding the /Users icon

Launch TextEdit (or, if you are familiar with the vi text editor, you can use vifs )

# open -a TextEdit /etc/fstab #

text editor, you can use ) The TextEdit window opens with contents similar to this: UUID=84BA91DE-C37F-F13D-B5C9-FECA5184DEB7 /Users hfs auto

Change auto so it reads auto ,nobrowse , as follows: UUID=84BA91DE-C37F-F13D-B5C9-FECA5184DEB7 /Users hfs auto ,nobrowse

so it reads , as follows: Save the file and Quit TextEdit

Browsing /Users over the network is complicated

It will be hidden in the Time Machine "space" interface too, so it's tricky to restore files or folders.

Showing hidden files is a way around this, but it clutters all Finder windows, and restores the /Users desktop icon (Defeating the purpose of nobrowse).

nobrowse

Now... Where's that champagne !

After considering the Alternatives for separating the OS X users' home directories , I decided to use a separate partition.In this post, I'll explain in detail how to use a separate partition ("Volume" in Mac OS X) for /Users.While the actual procedure is not difficult, it involves several steps.Mac OS X, being a Unix system, has the almighty '' user. However, on OS X Snow Leopard, it's disabled by default.As we'll be using the '' account for this procedure, check Apple's support article on 'root' if yours is not enabled.Throughout the rest of this guide, we'll also be using the Terminal.I'll be marking the commands to be typed in bold, as follows:Now we'll move our current /Users folder aside, so we can set-up a new one for our mount-point.We'll now prepare the new /Users Mount-Point.This is as simple as creating a Folder, and setting correct ownership and permissions.Mac OS X identifies each partition by a UUID (Universal Unique Identifier).We'll need the UUID to instruct OS X to automatically mount the partition in the next step, so let's gather it.It's time to instruct Mac OS X how to mount our new /Users partition.Being a Unix-based system, this can be done by editing the /etc/fstab file.At this stage, our /etc/fstab file is ready, and, on the next boot, Mac OS X should be able to automatically mount our /Users partition.Let's verify that it can be mounted, as expected, on /Users.As we want to keep the same level of permissions as we had before the move, we'll make sure file ownership is preserved.If you prefer, this can also be done from the Terminal, as follows:With our partition mounted, and permissions properly set, it's time to move all users' home directories to the new partitionAt this time, all our users home directories are in the new partition, and as we instructed OS X to mount it automatically (via the /etc/fstab file), it should be accessible just as before.You wouldn't notice it's been relocated, except for a couple of details:We can fix these two easily:Fixing the icon is as simple as Fixing the Orange HardDisk Icons , however, instead of using thefile, we'll be using thefile found inIf you prefer, this can also be done from the Terminal, as follows:If you don't want the Users Volume to appear as a separate one (eg. on the Desktop, or finder's sidebar), we'll append an option to the line we added in /etc/fstab.The option is, and we'll add it immediately after, separated by a comma.On the next reboot (actually, on the next mount), the Users icon will no longer appear on the Desktop or in Finder as a separate disk.There are a couple of side-effects to hiding the /Users folder that make this a less-than-optimal solution:Given these twoI stopped using theoption.I can live with that /Users icon on my Desktop !