From owner-freebsd-questions@FreeBSD.ORG Wed Jul 18 08:39:27 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 9223A16A407 for ; Wed, 18 Jul 2007 08:39:27 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout4.cac.washington.edu (mxout4.cac.washington.edu [140.142.33.19]) by mx1.freebsd.org (Postfix) with ESMTP id 6FA1813C4A6 for ; Wed, 18 Jul 2007 08:39:27 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.141] (may be forged)) by mxout4.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l6I8dQGt025178 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 18 Jul 2007 01:39:27 -0700 X-Auth-Received: from [192.168.10.45] (c-24-10-12-194.hsd1.ca.comcast.net [24.10.12.194]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l6I8dPTS011562 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Jul 2007 01:39:26 -0700 Message-ID: <469DD1BD.5030700@u.washington.edu> Date: Wed, 18 Jul 2007 01:39:25 -0700 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Zbigniew Szalbot References: <20070718180538.636eb98a@localhost> <1d6b2d9302d9d7813174be0184960a84@szalbot.homedns.org> In-Reply-To: <1d6b2d9302d9d7813174be0184960a84@szalbot.homedns.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.2.304607, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.7.18.11933 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: Norberto Meijome , 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 08:39:27 -0000 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