From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 17:37:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DE1B216A420 for ; Mon, 20 Aug 2007 17:37:57 +0000 (UTC) (envelope-from msherman77@yahoo.com) Received: from web88303.mail.re4.yahoo.com (web88303.mail.re4.yahoo.com [216.39.53.226]) by mx1.freebsd.org (Postfix) with SMTP id 7BFCD13C468 for ; Mon, 20 Aug 2007 17:37:57 +0000 (UTC) (envelope-from msherman77@yahoo.com) Received: (qmail 85060 invoked by uid 60001); 20 Aug 2007 17:37:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=urBL77+DriN5em18PwLMYBgqLtGX9EsaI+jXTCjQN2LNHwXr1Q43WKnaEWGduvRRaYEH5U3MX2hUIi0HxpYSOMcdzwixYEciycEPNXst2AGWJUxpbjisUDnIkweDr/YV61To6h6hRuaZnYJLNj6GNzHM0xPCoYLt0GWVjUL17A8=; X-YMail-OSG: Ifr2nY0VM1lNtWZMwPtNM3JnyELE_T9kvdlmQLwSL.UBXGtfTdR8a7kvt_RqUIOFlQ-- Received: from [204.253.245.126] by web88303.mail.re4.yahoo.com via HTTP; Mon, 20 Aug 2007 13:37:56 EDT Date: Mon, 20 Aug 2007 13:37:56 -0400 (EDT) From: Michael S To: "illoai@gmail.com" , FreeBSD Mailing List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <508113.84269.qm@web88303.mail.re4.yahoo.com> Cc: Subject: Re: Trying to move /usr 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: Mon, 20 Aug 2007 17:37:58 -0000 I reverted to the old /usr. What I had done: Initially I set up the newly installed drive (da2) to have only one partition (da2s1d) which I chose to be /user (note the e). I tarred /usr to a file in /user tar -cf /user/usr.tar /tar and extracted the file tar -xf usr.tar I had the whole structure of /usr underneath /user/usr And then cd usr mv * .. to have everything under /user Then I edited fstab. Whatever was /user became /usr and /usr became /user. I will definitely try dump. Never used it before. Thanks a lot, Michael --- "illoai@gmail.com" wrote: > On 20/08/07, Michael S wrote: > > Jerry, > > > > *** When I untarred the file I had everything > under > > /user/usr. I was under /user/usr and then I did mv > * > > .. > > > > I then edited fstab and changed > > /dev/da2s1d to be /usr, instead of /user > > > > And of course the old /usr I switched to /user > > So is your /usr now under /usr/usr? > > What I have done is: > # mkdir /mnt/usr > # mount /dev/whatever /mnt/usr > # cd /mnt/usr > # dump -L -f - /usr | restore -r -f - > And then edit your /etc/fstab to reflect the changes > and reboot. > > -- > -- >