Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2007 01:39:25 -0700
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        Zbigniew Szalbot <zbigniew@szalbot.homedns.org>
Cc:        Norberto Meijome <freebsd@meijome.net>, freebsd-questions@freebsd.org
Subject:   Re: moving /home to new drive
Message-ID:  <469DD1BD.5030700@u.washington.edu>
In-Reply-To: <1d6b2d9302d9d7813174be0184960a84@szalbot.homedns.org>
References:  <20070718180538.636eb98a@localhost> <1d6b2d9302d9d7813174be0184960a84@szalbot.homedns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?469DD1BD.5030700>