Hi,
I am trying to build a nanobsd.sh image on FreeBSD 10.0 i386 and then to convert it to a VirtualBox hard drive image.
The converted image does not have a proper third partition which is data partition in a nanobsd image.
After booting the image in a VirtualBox machine:
It seems the third partition (the one that holds the data for config files) has errors on it:
In my nanobsd.conf I have (20MB for data partition):
The image was converted to a VirtualBox hard drive image using:
For VirtualBox host I use OSX Mavericks.
I think the nanobsd.sh script does not properly calculate the size for third partition.
I am trying to build a nanobsd.sh image on FreeBSD 10.0 i386 and then to convert it to a VirtualBox hard drive image.
The converted image does not have a proper third partition which is data partition in a nanobsd image.
After booting the image in a VirtualBox machine:
Code:
Trying to mount root from ufs:/dev/ada0s1a [ro]...
mount: /dev/ada0s3: Invalid argument
mount -o ro /dev/ada0s3 /conf/default/etc failed: dropping into /bin/sh
It seems the third partition (the one that holds the data for config files) has errors on it:
Code:
# disklabel /dev/ada0s3
disklabel /dev/ada0s3
disk label: /dev/ada0s3: no valid label found
In my nanobsd.conf I have (20MB for data partition):
Code:
NANO_MEDIASIZE=2097152
NANO_DATASIZE=40960
NANO_IMAGES=2
The image was converted to a VirtualBox hard drive image using:
# VBoxManage convertfromraw --format VDI source.img destination.vdiFor VirtualBox host I use OSX Mavericks.
I think the nanobsd.sh script does not properly calculate the size for third partition.