moving /home to new drive
Garrett Cooper
youshi10 at u.washington.edu
Wed Jul 18 08:39:27 UTC 2007
Zbigniew Szalbot wrote:
> Hello,
>
>
>> don't kill /usr/home :) symlink back to it, or just mount the new drive
>> in it - nothing wrong with having a disk mounted in a mount point which
>>
> is
>
>> part of the filesystem of another disk - as long as they are mounted in
>>
> the
>
>> right order during the boot process.... (eg, i wouldnt put /var/ under
>> /usr/ , for example... )
>>
>
> OK. So the procedure could be as follows (?):
>
> 1. mv -R /usr/home /usr/home-old
> 2. rm /home (deleting the symlink)
> 3. mount /dev/ad3s1c /usr/home
> 4. cp -pR /usr/home-old/ /usr/home/
> 5. ln -s /home /usr/home
>
> Is the procedure OK?
>
> One last question - what about fstab file? I guess I need to edit it so
> that next time while booting the system, it will mount the new drive as
> /usr/home?
>
> Thank you very much!
>
>
Try this instead:
1. mount /dev/ad3s1c /usr/home-new
2. cp -pR /usr/home/* /usr/home/.* /usr/home-new
3. umount /dev/ad3s1c
4. rm -Rf /usr/home/* /usr/home/.*
5. mount /dev/ad3s1c /usr/home
Don't forget to add /dev/ad3s1c to fstab later on.
-Garrett
More information about the freebsd-questions
mailing list