Koozali.org: home of the SME Server

Relocate users home dir to another physical drive

Ian Spratt

Relocate users home dir to another physical drive
« on: January 03, 2001, 12:14:31 AM »
Have looked through the various pages but need some help.  I have installed a new hard disk and would like to relocate the user home directory to that drive. I cannot locate the process / procedure to do this

Rob Conley

Re: Relocate users home dir to another physical drive
« Reply #1 on: January 08, 2001, 02:15:29 AM »
Ian,

I just went through something similar when I installed a new drive. Here's what I did to move the user's dirs.
From the parent dir of the users home dirs
1) find ./ -print | cpio -pdm
2) rm -rf
3) ln -s /

For example here's what I did with mine

1) cd /home/e-smith/files/users
* the dir may be wrong since I'm doing it from memory
2) find ./rob -print | cpio -pdm /home/e-smith/files/i-bays/Share/users
3) rm -rf rob
3 ln -s /home/e-smith/files/i-bays/Share/users/rob rob

In my case, this server is setup for home use by only myself and my wife. I mounted the new hardrive under an existing ibay and wanted both of our home dirs available to the other.  

Of course, this all depends on having the hardrive setup successfully. If you are having trouble with this, I would recommend doing a search in these discussions for adding hardrives.

Ian Spratt wrote:
>
> Have looked through the various pages but need some help.  I
> have installed a new hard disk and would like to relocate the
> user home directory to that drive. I cannot locate the
> process / procedure to do this