determine ufs2 %fragmentation on mounted filesystem

Erik Norgaard norgaard at
Wed Feb 9 08:44:43 PST 2005

Nathan Kinkade wrote:
> Does anyone know of a way to determine the %fragmentation on a mounted
> UFS2 filesystem?  An entry showed up in messages yesterday stating that
> /usr has moved from time to space optimization yet the filesystem is
> only at about 25% of it's capacity.  From what I can read it seems that
> the kernel might also make this switch if fragmentation becomes
> excessive.  However, this is a busy production machine running Squid, so
> I can't conveniently umount /usr.

fsck -t ufs2 /usr?

Cheers, Erik
Ph: +34.666334818                           web:
S/MIME Certificate:
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2

More information about the freebsd-questions mailing list