Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 1996 17:43:49 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        valtech@caribnet.net (Sean Batson)
Cc:        questions@FreeBSD.ORG
Subject:   Re: defrags
Message-ID:  <199606110043.RAA05303@phaeton.artisoft.com>
In-Reply-To: <Pine.BSF.3.91.960610193940.207A-100000@fb03.caribnet.net> from "Sean Batson" at Jun 10, 96 07:45:48 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> How is fragmentation dealt with under FreeBSD?

By using clyinder groups to prevent it from ever ocurring.

> Is there a utility for defragmenting the Hard Drive?

No.  Since it never occurs, you never need a defragger.

> The following is summary of my start up showing my disk:
> 
> /dev/rwd0a: clean 8604 free (108 frags, 2124 blocks, 0.7% fragmentation)
> /dev/rwd0s2f: clean 21384 free (148 frags, 5309 blocks, 0.1% fragmentation)
> /dev/rwd0s2e: clean 12934 free (70 frags, 3216 blocks, 0.5% fragmentation)
> 
> How do i defrag the above partitions?

Change your file sizes so that partial files are all some multiple
of 512 bytes.  ;-).  The reported fragmentation is the unusable
disk space (as opposed to the DOS fragmentation, which is the disk
space rendered unusable by the DOS FS layout policy).

You will always have some minimal amount of fragmentation because
hard disks read and write in terms of blocks.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199606110043.RAA05303>