Ref: 19780004
Title: How to Move A Home Directory to a Different Partition
Date: 12/17/90

Copyright 3Com Corporation, 1991.  All rights reserved.

To move home directories because of limited disk space or for other reasons,
follow these steps:

1.  Find a partition that will have enough space for the user's
home directory.

2.  As Admin, get the user's homedir directory name.  It will
temporarily be created on the new partition as a sharename.

3.  Log in as the server user and create a sharename exactly as
the homedir directory name and give it read, write, and create
access.

Note:  The homedir directory name cannot exist as a sharename
for the server.

4.  Log in as the user to be moved and link to the home directory and
the temporary sharename that was previously created.  Then use XCOPY with
the /s parameter to copy the contents of the directory to the sharename.
For example:

   3f link e:;link g: \\<server name>\<tempname>
   xcopy e:*.* g: /s

At this point you have a mirrored copy of the home directory.

5.  Unshare any sharenames associated with the home directory and delete
all files and directories in the home directory.

6.  Log in as Admin and delete the user.  If you delete a user with
resources associated with a sharename you will see this prompt:

   *** Failed to delete user from share server (User has
   resources.)  Delete from name service anyway [Y,N]?

7.  Type N and resolve the problem by logging in as the user and unsharing
resouces.

If you delete a user when the home directory is not empty, you will
see this prompt:

   *** Failed to delete user from share server, homedir not empty.
   Delete from name server anyway [Y,N]?

If you type Y, the user name is deleted from the Name server but not from
the Share server's sharelist.  A homedir directory entry pointer
still exists.  To resolve, log in as user and verify that all files and
directories are deleted.

8.  As Admin, continue to delete the user.  If you are running mail, you
will see this prompt:

   *** Failed to delete user from Mail server (user has mail).
   Delete from mailserver anyway [Y,N]?

Type N.  The user will be able to retrieve mail from new partition.

9.  Log in as the server user and delete the temporary sharename.

10. Log in as Admin and run 3N ADD USER to add the user back.  Use the same
3-part name and home directory name, and use the new drive ID.  Ignore the
warning prompt:

   *** User already exists.  Do you still want to add anyway [Y,N]?

Type Y.  This points to the new drive ID with the directory name
that was created as the temporary sharename.

