From owner-freebsd-questions Sun Jan 6 15: 2: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id 3B03137B41A for ; Sun, 6 Jan 2002 15:02:06 -0800 (PST) Received: from there ([66.57.85.154]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 6 Jan 2002 18:01:35 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Paul Murphy , freebsd-questions@FreeBSD.ORG Subject: Re: Filesystem Full (was (No Subject)) Date: Sun, 6 Jan 2002 18:00:56 -0500 X-Mailer: KMail [version 1.3] References: <20020106162046.2dfa4beb.pnmurphy@cogeco.ca> <20020106170559.42eef3c8.pnmurphy@cogeco.ca> In-Reply-To: <20020106170559.42eef3c8.pnmurphy@cogeco.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: <0d9aa3501230612FE6@Mail6.nc.rr.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 06 January 2002 05:05 pm, Paul Murphy wrote: > On Sun, 6 Jan 2002 16:20:46 -0500 > > Paul Murphy wrote: > > /dev/da1s1f 663553 2764 607705 0% /usr/home > > /dev/da1s1e 192543 183627 -6487 104% /usr/ports > > > > I want to switch these two filesystems, here is my plan: > > > > 1) back them up to /usr/tmp You have a /usr/tmp big enough for both?? > > 2) rm -r /usr/home && rm -r /usr/ports You can save yourself a little trouble and just mv them. It'll do all that for you. > > 3) edit the fstab appropriately > > 4) umount /usr/home && umount /usr/ports > > 5) mount /usr/home && mount /usr/ports Sounds sensible > > 6) cp -r /usr/tmp/home/* /usr/home && cp -r /usr/tmp/ports/* /usr/ports Again, mv is easier & preserves all the file attributes; if you don't use mv for some reason (extra paranoia?), use pax -rw or cp -pr or a tar-pipe to preserve all the file attributes. > > > > Does this seem right? Any gotcha's? I don't want to loose any data as > > these are fairly important filesystems (although I could cvsup ports). > > Sorry, I don't believe I sent that without a Subject line, please DO > read. -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) http://www.babbleon.org -------> Free Dmitry Sklyarov! (let him go home) <----------- http://www.eff.org http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message