Disk defragmentation

Jerry McAllister jerrymc at clunix.cl.msu.edu
Wed Jan 7 09:28:05 PST 2004


> 
> Hi,
> 
> How can I defragment my HDD partitions in FreeBSD?

You don't need to.   The FreeBSD file systems don't have a problem
with fragmentation.    If you run fsck and see the word fragments, it
means something other than in the MS world.

But, if you insist on doing it, your best bet would be to use
dump(8) to make a complete backup of the filesystem.  Then
re-newfs(8) it and then restore(8) the backup in to it.

////jerry

> 
> Cheers,
> 
> Mazen
> 


More information about the freebsd-questions mailing list