newfs

Create a new UFS filesystem.

NetBSD

Before creating a filesystem, use disklabel to create a slice.

You must use the raw device to create a filesystem:

newfs -O 2 /dev/rsd1d

Use the block device to mount the new filesystem:

mount /dev/sd1d /mnt/newfs