Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0
#!/bin/bash | |
# | |
# Make a FreeBSD bootable sdcard for NanoPi Neo3. | |
# The idea is to mix an official ROCK64 snapshot with U-Boot for Neo3 board from Armbian project. | |
# This script is based on the original forum post at | |
# https://forums.FreeBSD.org/threads/nanopi-neo-3-rockchip-rk3328.76449/post-493043 | |
# | |
set -e | |
if [[ $UID != 0 ]]; then |
Determine the file system by using the file-utility.
file image.img
Use mdconfig to link the IMG image to a virtual device.
mdconfig -a -t vnode -f /path/to/image.img -u 0