Building Disk Image (on OpenBSD)
Creating Disk Image
$ dd if=/dev/zero of=kouji.img bs=1K count=10240
# vnconfig vnd3 kouji.img
Installing an MBR on the Disk Image
# fdisk -iy vnd3
Creating Root Slice on the Disk Image
# echo "a\n\n\n\n\nw\nq\n" | disklabel -E vnd3
Creating UFS on the Root Slice
# newfs /dev/rvnd3a
Mount the Root Slice
# mount /dev/vnd3a /mnt
Install Bootloader on the Disk Image
# install -d /mnt/usr/mdec
# install -o root -g bin -m 0555 obsd32/usr/mdec/{biosboot,boot} /mnt/usr/mdec
# installboot -r /mnt vnd3
Copyright © 2021 - 2022
Mohamed Aslan
Last updated: January 18, 2022