From owner-freebsd-questions@FreeBSD.ORG Wed Jul 18 06:13:33 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D643C16A401 for ; Wed, 18 Jul 2007 06:13:33 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id A0E1413C48D for ; Wed, 18 Jul 2007 06:13:33 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 11623 invoked from network); 18 Jul 2007 01:13:32 -0500 Received: from 203-158-59-146.dyn.iinet.net.au (HELO localhost) (203.158.59.146) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 18 Jul 2007 01:13:32 -0500 Date: Wed, 18 Jul 2007 16:13:29 +1000 From: Norberto Meijome To: Olivier Nicole Message-ID: <20070718161329.0f9f7a5c@localhost> In-Reply-To: <200707180546.l6I5kaS9025869@banyan.cs.ait.ac.th> References: <28f0d5eec763405178ccd826b4212941@szalbot.homedns.org> <200707180546.l6I5kaS9025869@banyan.cs.ait.ac.th> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: zbigniew@szalbot.homedns.org, freebsd-questions@freebsd.org Subject: Re: moving /home to new drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 06:13:33 -0000 On Wed, 18 Jul 2007 12:46:36 +0700 (ICT) Olivier Nicole wrote: > From: Olivier Nicole > To: zbigniew@szalbot.homedns.org > Cc: freebsd-questions@freebsd.org > Subject: Re: moving /home to new drive > Date: Wed, 18 Jul 2007 12:46:36 +0700 (ICT) > Sender: owner-freebsd-questions@freebsd.org > > > Or do I need to delete the > > symlink first and only then try to mount the new drive as /home? > > - delete the symlink > - create a directory /home > - mount the new drive > - copy the files - verify the copy is successful - mv /usr/home /usr/home_old - create a symlink from /usr/home to /home - i DONT know whether this is necessary or not, but if you want to keep things as seamless as possible, you'd need it (i dont even know what is supposed to be the real path - i thought /usr/home was the real thing and /home just a shortcut). - test /home - when happy, delete /usr/home_old (else you wont have made any room in the other drive ;) BTW, why not just - mv /usr/home /usr/home_old - mkdir /home - mount [new_drive] /home - copy -r /usr/home_old/* /usr/home/ ( make sure you use an appropriate command for copying the data - cp does not handle special files correctly - check the archives for discussions on this subject). - test and deleted old copy ? B _________________________ {Beto|Norberto|Numard} Meijome Which is worse: ignorance or apathy? Don't know. Don't care. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.