From owner-freebsd-questions@FreeBSD.ORG Wed Jul 18 16:07:19 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 A924516A401 for ; Wed, 18 Jul 2007 16:07:19 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 5872713C4A3 for ; Wed, 18 Jul 2007 16:07:19 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l6IG50x2068303; Wed, 18 Jul 2007 12:05:00 -0400 (EDT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l6IG4x8U068302; Wed, 18 Jul 2007 12:04:59 -0400 (EDT) (envelope-from jerrymc) Date: Wed, 18 Jul 2007 12:04:44 -0400 From: Jerry McAllister To: Zbigniew Szalbot Message-ID: <20070718160444.GA68286@gizmo.acns.msu.edu> References: <28f0d5eec763405178ccd826b4212941@szalbot.homedns.org> <20070718150304.GA67836@gizmo.acns.msu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070718150304.GA67836@gizmo.acns.msu.edu> User-Agent: Mutt/1.4.2.2i Cc: Freebsd questions 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 16:07:19 -0000 On Wed, Jul 18, 2007 at 11:03:04AM -0400, Jerry McAllister wrote: > > > > > Hello, > > > > I have just installed an additional drive to my FreeBSD 6.2-RELEASE-p6 > > machine. I'd like to use this drive exclusively for /home. > > > > Currently /home is a link to /usr/home. Can I just mount (haven't done it > > yet) the new drive with the mount point /home then delete the symlink (?) > > and move the files from /usr/home to /home? Or do I need to delete the > > symlink first and only then try to mount the new drive as /home? > > You should remove the symlink first, otherwise the mount will go > over it and then you won't be able to rm it and later it will > still exist if the mount is not made and you will see again the > old stuff. Sorry, I just got off a 12 hour flight. The part that says you should remove the symlink first is correct. The explanation applies to directories that become mount points but not quite the same to symlinks. Then, after you remove the symlink, you have to create a mountpoint by doing a mkdir /home ////jerry > > > Can it break something? Is the procudure safe? Thank you in advance! > > It is safe. It won't break anything. But, as mentioned, don't forget to move your files and directories from /usr/home to the new /home after you get it there. ////jerry > > Well, I wonder what you might have in the old /home (/usr/home) > that you want to keep. You will need to move this stuff to > the new /home some way. Since the old one is not a file system > unto itself, you will not be about to use dump (well you could > in a certain way, but) so, probably you will want to use tar with a -P. > > ////jerry > > > -- > > Zbigniew Szalbot > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"