If fsck fails during boot, and dumps you into SINGLE USER MODE to fix things, format(1M) will fail with ENXIO on /dev/tty.