newfs unable to create filesystem on a fresh geli encrypted provider. If you create a BSD scheme partition inside a geli encrypted provider like so: geli init -b -v -a hmac/sha512 -e aes-cbc -l 256 -s 4096 /dev/ad0p1 geli attach /dev/ad0p1 gpart create -s BSD ad0p1.eli gpart add -s 1g -t freebsd-ufs ad0p1.eli then you try to newfs, you get an error: # newfs -U /dev/ad0p1.elia newfs: can't read old UFS1 superblock: read error from block device: Invalid argument Fix: The workaround for this bug is to dd data to the provider before using newfs: dd if=/dev/random of=/dev/ad0p1.elia bs=8m After that, newfs works as it should. How-To-Repeat: geli init -b -v -a hmac/sha512 -e aes-cbc -l 256 -s 4096 /dev/ad0p1 geli attach /dev/ad0p1 gpart create -s BSD ad0p1.eli gpart add -s 1g -t freebsd-ufs ad0p1.eli newfs -U /dev/ad0p1.elia
Responsible Changed From-To: freebsd-bugs->freebsd-fs Reclassify and assign.
Hi, newfs(8) are trying to read a superblock area, but it gets EINVAL error code, because you have not initialized your geli provider. -- WBR, Andrey V. Elsukov
Please close this bug. It is not a bug, I failed to read the man page completely.
State Changed From-To: open->closed Close per submitter request.