Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create more than 6 partitions #90

Open
nikunj12 opened this issue Jun 12, 2018 · 1 comment
Open

unable to create more than 6 partitions #90

nikunj12 opened this issue Jun 12, 2018 · 1 comment

Comments

@nikunj12
Copy link

Hi,

I am trying to create more than 6 partitions but it fails with " no space on device "9" ". While doing investigation on "do_gpt.sh" , I found that do_gpt creates "gpt"

---do_gpt.sh output---
gpart create -s gpt ${unit}
gpart add -t freebsd-boot -b 40 -l boot -s 512K ${unit}
gpart bootcode -b ${BOOTDIR}/pmbr -p ${BOOTDIR}/gptboot -i 1 ${unit}
gpart add -t freebsd-ufs -l rootfs ${unit}

but when I see on the Server it creates "MBR" , I believe there is some bug which does not allow to create gpt using mfsbsd.

I tried manually it works fine

@nikunj12
Copy link
Author

My installerconfig.sample file is as below , when I remove last partition i.e /opt it works fine but when I add /opt entry it fails.
Ps : I am testing it on VM with 100 GB disk.

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-u
fs /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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant