Trivially ported to FreeBSD 4.x (by Robert Watson) with only extremely minor tweaks, largely to adapt to no OPENDEV() on FreeBSD. For 5.0 and above, scan_ffs supports multiple MAGIC's for UFS1 and UFS2. Make sure to run this tool on the slice, if you use slices, rather than the disk itself, or all the offsets will be off. I.e., ./scan_ffs ad0s1 as opposed to: ./scan_ffs ad0 Michael Ranner