From owner-freebsd-questions@FreeBSD.ORG Sat Mar 3 23:25:24 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 4300E16A400 for ; Sat, 3 Mar 2007 23:25:24 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 1109C13C4A5 for ; Sat, 3 Mar 2007 23:25:23 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id l23NMdUf096801; Sat, 3 Mar 2007 18:22:39 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id l23NMdYg096800; Sat, 3 Mar 2007 18:22:39 -0500 (EST) (envelope-from jerrymc) Date: Sat, 3 Mar 2007 18:22:39 -0500 From: Jerry McAllister To: Christian Baer Message-ID: <20070303232239.GA96768@gizmo.acns.msu.edu> References: <539c60b90703010849x33dd4bbbt8f6ca6aa0c8e83a0@mail.gmail.com> <20070301192109.A24369@chylonia.3miasto.net> <20070302085100.125cf488@localhost> <20070301221738.GA86154@gizmo.acns.msu.edu> <20070301223905.GA86318@gizmo.acns.msu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: defrag 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: Sat, 03 Mar 2007 23:25:24 -0000 On Sat, Mar 03, 2007 at 02:53:30PM +0100, Christian Baer wrote: > On Thu, 1 Mar 2007 17:39:05 -0500 Jerry McAllister wrote: > > >> Well, it would do some, but for the greatest effect, you would need: > >> dump + rm -rf * + restore > >> That would get it all. > > > Of course, I should have re-emphasized that this is not needed. > > You will not improve performance. Its only value might be to exercise > > every used file block on the filesystem to make sure it is still > > readable. And for that you don't need to nuke and rewrite things. > > You could of try changing the above command into 'rm -rfP *'. That would > make sure everything on your file system is still readable. And it would > give you a lot of time to think about it. :-) > > > Just doing the backup (which you should do anyway) will read up all > > used file space (except what you might have marked as nodump). > > Actually, that way you won't get every sector on the drive - not unless > the drive is full to the brim anyway. Note that I did say all of the _used_ space - eg actual files. > > If you really just want to check the drive, use > smartctl -t long /dev/whatever > > You could also try > dd if=/dev/whatever of=/dev/null bs=1m > > The idea with the backup isn't a bad one either. Cause if your drive > goes up in flames, you don't really care. You still have your data. Yup, just what I was sort of pointing out. ////jerry > > Regards > Chris > _______________________________________________ > 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"