I would like to partition a drive from a script, so that there is a big partition filling most of the drive, then a small one at the end. So far I have come up with.
parted -s -- /dev/sda mklabel msdos parted -s -a optimal -- /dev/sda mkpart primary 1MiB -10GiB parted -s -a optimal -- /dev/sda mkpart primary -10GiB -1s
Unfortunately the last command doesn't work. It seems
parted will accept a negative number for the end of a partition but not for the start. How do I get around this?