From owner-freebsd-questions@FreeBSD.ORG Thu Jul 24 13:12:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 902B537B401 for ; Thu, 24 Jul 2003 13:12:43 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF6E043F75 for ; Thu, 24 Jul 2003 13:12:42 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6OKCgLd044971; Thu, 24 Jul 2003 15:12:42 -0500 (CDT) (envelope-from dan) Date: Thu, 24 Jul 2003 15:12:42 -0500 From: Dan Nelson To: Peter Rosa Message-ID: <20030724201242.GC32490@dan.emsphone.com> References: <004501c3521d$e8532c40$3501a8c0@pro.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004501c3521d$e8532c40$3501a8c0@pro.sk> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: Scott Kupferschmidt cc: freebsd-questions Subject: Re: Defragment HDD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 20:12:43 -0000 In the last episode (Jul 24), Peter Rosa said: > From: "Scott Kupferschmidt" > > On Thu, 24 Jul 2003, Peter Rosa wrote: > > > is it possible, and by using what program, to defragment HDDs > > > under FreeBSD ? > > > > I always cat /dev/zero > file > > wait until the drive fills up, rm file and you're set. > > OK, but it is not the "real defragmenting" like Norton Speedisk or MS > Defrag on windoze machines. Is there anything other ? I think he was joking :) The FFS filesystem reserves 8% of the disk space so that it can allocate contiguous blocks for files. In general, you don't have to worry about file fragmentation. There are no tools for optimizing the layout of a disk (putting files in a directory next to each other on disk, for example) like SpeedDisk does, though. -- Dan Nelson dnelson@allantgroup.com