memstick.img is bloated with 7% 2K blocks of nulls

Julian H. Stacey jhs at
Sat Feb 12 00:54:53 UTC 2011

Bruce Cran wrote:
> On Fri, 11 Feb 2011 20:09:30 +0100
> "Julian H. Stacey" <jhs at> wrote:
> > memstick.img wastes 7% with 2K blocks of nulls.
> Could this be due to using UFS1 instead of UFS2?

Don't know, Looking:
8.1 /usr/src/release/scripts/
man makefs
	-t fs-type ... The following file system
           types are supported:
                 ffs  BSD fast file system (default).
	FFS-specific options
	version       UFS version. 1 for FFS (default), 2 for UFS2

/usr/src/release/Makefile -->
	newfs -i ${FSINODE} -o space -m 0 /dev/r${VNDEVICE}c
	newfs -O1 -b 4096 -f 512 -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}
  man newfs:
	 -O filesystem-type
             Use 1 to specify that a UFS1 format file system be built; use 2
             to specify that a UFS2 format file system be built.  The default
             format is UFS2.
If anyone fancies looking deeper, please do :-)

Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich
 Mail plain text;  Not quoted-printable, Not HTML, Not base 64.
 Reply below text sections not at top, to avoid breaking cumulative context.

More information about the freebsd-hackers mailing list