openbsd_disk_formatting
OpenBSD/Disk formatting
This is how you can format a disk on OpenBSD:
- Use
sysctl hw.disknamesordmesg | grep sdto find the names of attached disks. - Then, run
disklabel -E sdXwhere X is the name of the connected disk you want to edit (MAKE SURE YOU HAVE IT RIGHT!) - Enter
zto delete the existing partition table. Then typeato add a partition. Afterwardswand thenqto save and quit. - After this is done you will be left with a partition called sdXa. (a is the root partition in the bsd disklabel scheme) Run
newfs sdXato format it.
See also
openbsd_disk_formatting.txt ยท Last modified: by xmpub
Discussion