Structure of UFS2 filesystem

greg gval at
Sun Feb 1 17:33:34 PST 2004

I am looking for resources that describe the UFS2 filesystem structure.
I want to write some code that will pull a UFS2 filesystem back from the
dead. It has a bad Super Block, and no good Super Blocks can be found.
However, I sifted through the raw data on the disk, and my data is still

Could somebody point me to documentation on this subject. I have tried
googling through the BSD filter. I received no useful results.

I looked at the source code for ffs, but it is a bit hard to read
without a basic understand of how the filesystem is structured.

If the tools I write are any good, I will make the source code available
under a BSD style licence.

Thank You,
greg <gval at>

More information about the freebsd-fs mailing list