continuing to look into this I think that I'm doing something wrong with the cgpt command
Based on the build scripts this is how they initially define the size
Code:
echo "Creating image file for Exynos-based Chromebooks"
dd if=/dev/zero of=${basedir}/kali-$1-exynos.img bs=1M count=7000
parted kali-$1-exynos.img --script -- mklabel gpt
cgpt create -z kali-$1-exynos.img
cgpt create kali-$1-exynos.img
cgpt add -i 1 -t kernel -b 8192 -s 32768 -l kernel -S 1 -T 5 -P 10 kali-$1-exynos.img
cgpt add -i 2 -t data -b 40960 -s `expr $(cgpt show kali-$1-exynos.img | grep 'Sec GPT table' | awk '{ print \$1 }') - 40960` -l Root kali-$1-exynos.img
so based on this (and other threads) I tried to simply follow the instructions, everything in th "`" is just a command to get the size. Which leaves me with this:
Code:
cgpt add -i 2 -t data -b 40960 -s 122773471 -l Root /dev/sda #sda is where my drive is mounted in the system.
that returns:
Code:
ERROR: Entry outside of valid region
Does anyone know what this means? I have also seen on another thread that my GPT header may be messed up. i'm going to continue to research that as a possibility