Hi,
I am trying to configure FreeBSD 11.1 auto installation using the mfsbsd utility, Auto installation works fine when I define 6 partitions but when I try to configure more than 6 partitions then it failed with no space available index '9'
While checking the mfsbsd scripts do_gpt.sh under tools (https://github.com/mmatuska/mfsbsd)
it shows the code is trying to create gpt partition(not MBR)
While after deployment with less then 6 partitions - I can see it creates MBR with BSDLABLE.
my installerconfig's partition portion is as below ( i defined more partitions here, when I remove /opt - last partition) then it will work fine .
Appreciate your help!!
Thanks,
Niks
I am trying to configure FreeBSD 11.1 auto installation using the mfsbsd utility, Auto installation works fine when I define 6 partitions but when I try to configure more than 6 partitions then it failed with no space available index '9'
While checking the mfsbsd scripts do_gpt.sh under tools (https://github.com/mmatuska/mfsbsd)
it shows the code is trying to create gpt partition(not MBR)
Code:
--do_gpt.sh--
if [ -n "$VERBOSE" ]; then
TIME=time
set -x
else
TIME=
fi
gpart create -s gpt ${unit}
gpart add -t freebsd-boot -b 40 -l boot -s 472 ${unit}
gpart bootcode -b ${BOOTDIR}/pmbr -p ${BOOTDIR}/gptboot -i 1 ${unit}
gpart add -t freebsd-ufs -l rootfs ${unit}
${TIME} makefs -B little ${TMPIMG} ${FSPROTO}
${TIME} dd if=${TMPIMG} of=/dev/${unit}p2 bs=128k
my installerconfig's partition portion is as below ( i defined more partitions here, when I remove /opt - last partition) then it will work fine .
Code:
root@server:~ # cat installerconfig.sample
# for variations in the root disk device name between VMware and Virtualbox
if [ -e /dev/ada0 ]; then
PARTITIONS="ada0 { 12G freebsd-ufs /, 8G freebsd-swap, 8G freebsd-ufs /tmp, 12G freebsd-ufs /home, 8G freebsd-ufs /var, 8G freebsd-ufs /var/log, 8G freebsd-ufs /var/log/audit, 8G freebsd-ufs /opt }"
elif [ -e /dev/da0 ]; then
PARTITIONS="da0 { 12G freebsd-ufs /, 16G freebsd-swap, 8G freebsd-ufs /tmp, 12G freebsd-ufs /home, 8G freebsd-ufs /var, 8G freebsd-ufs /var/log, 8G freebsd-ufs /var/log/audit, 8G freebsd-ufs /opt }"
elif [ -e /dev/vtbd0 ]; then
PARTITIONS="vtbd0 { 12G freebsd-ufs /, 16G freebsd-swap, 8G freebsd-ufs /tmp, 12G freebsd-ufs /home, 8G freebsd-ufs /var, 8G freebsd-ufs /var/log, 8G freebsd-ufs /var/log/audit, 8G freebsd-ufs /opt }"
else
echo "Unknown disk for install.sh to work with!"
exit -1
fi
DISTRIBUTIONS="kernel.txz base.txz"
BSDINSTALL_DISTDIR=/tmp
---------------end----------------
Appreciate your help!!
Thanks,
Niks