From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 23:58:38 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 2459B16A418 for ; Sun, 28 Oct 2007 23:58:38 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id B8CB113C48A for ; Sun, 28 Oct 2007 23:58:37 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.8/8.13.8) with ESMTP id l9SNwIqx051436; Sun, 28 Oct 2007 18:58:18 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20071028185606.023e2f98@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Sun, 28 Oct 2007 18:58:01 -0500 To: Gary Kline , Gary Kline From: Derek Ragona In-Reply-To: <20071028230203.GA13943@thought.org> References: <20071028215454.GA52631@thought.org> <20071028230203.GA13943@thought.org> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Mailing List Subject: {Disarmed} Re: What's best way to copy a filesystem? [was: Re: slight emergency here...] 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: Sun, 28 Oct 2007 23:58:38 -0000 At 06:02 PM 10/28/2007, Gary Kline wrote: >On Sun, Oct 28, 2007 at 01:54:54PM -0800, Gary Kline wrote: > > Guys, > > > > > > I think I've found the reason for the intermittent rashes. > > Part of /var is bad, and fsck cannot allocate inoinfo to repair > > the damage. > > > > At any rate, how do i as root, single user, cp -rp all of /var to > > elsewhere (/storage) and rmdir /var, them mkdir /var and copy > > everything back?? I've forgotten the cpio magic command. > > > The nutshelll of this posting could be: What's the best tool > to copy a /FILESYSTEM to /storage/FILESYSTEM? I don't know if this is the "best" way, but is one I've done for years . . . cd srcdir ; tar -cf - . | (cd destdir ; tar -xpf -) which for your example would be: cd /FILESYSTEM; tar -cf - . | (cd /storage/FILESYSTEM ; tar -xpf -) then you would rm -rf /FILESYSTEM ln -s /storage/FILESYSTEM /FILESYSTEM -Derek >-- > Gary Kline kline@thought.org www.thought.org Public Service Unix > http://jottings.thought.org http://transfinite.thought.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" > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. >MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.