From owner-freebsd-questions@FreeBSD.ORG Tue Oct 30 08:04:29 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 17AB116A421 for ; Tue, 30 Oct 2007 08:04:29 +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 EA22013C4AA for ; Tue, 30 Oct 2007 08:04:24 +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 l9TCbUMD060471; Mon, 29 Oct 2007 07:37:30 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20071029073602.02396200@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 29 Oct 2007 07:37:09 -0500 To: Gary Kline , Jon Hamilton From: Derek Ragona In-Reply-To: <20071029014508.GA82718@thought.org> References: <20071028215454.GA52631@thought.org> <20071028230203.GA13943@thought.org> <20071028233422.GC2196@woodstock.nethamilton.net> <20071029014508.GA82718@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: Gary Kline , FreeBSD Mailing List Subject: 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: Tue, 30 Oct 2007 08:04:29 -0000 At 08:45 PM 10/28/2007, Gary Kline wrote: >On Sun, Oct 28, 2007 at 06:34:22PM -0500, Jon Hamilton wrote: > > Gary Kline , said on Sun Oct 28, 2007 [03:02:03 PM]: > > > > } > 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? > > > > The best tool is the one you use successfully. If you're really > talking about > > a whole filesystem, dump and restore may contain the least surprises in > > unusual situations: > > > > $ newfs /dev/whatever > > $ mount /dev/whatever /mnt > > $ cd /dev/whatever > > $ dump 0af - /old_filesystem | restore -rf - > > > > Then delete /mnt/restoresymtable when it's all done. > > > > Of course you can use tar, cpio, cpdup if you have it, or even cp. At > > different points in time historically some of those have had problems with > > some situations like sparse files, "extra" hard links, symlinks, etc. > > > > > Seems like I'm running into inode problems.... I finally > tar'd /var to a /temp fs, then forgot to do the newfs. So now > I've got a fs panic. > > Hope it isn't a bad drive..... > > thanks. > > gary I would run the manufacturer's diagnostics on the drive to be sure. Often drives will have a media issue SMART doesn't catch. -Derek -- 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.