title: Create multiple partitions without being prompted on Ubuntu CLI
body: <p>I am trying on Ubuntu to programmatically create 2 partitions on the same volume and I want to do that automatically without being prompted.</p>
  <p>Edit:
  I managed to do that with <code>parted</code>:</p>
  <pre class="lang-bash prettyprint-override"><code>parted -a optimal $EXTRA_DISK mklabel gpt
  parted -a optimal $EXTRA_DISK mkpart primary 0% 40%
  parted -a optimal $EXTRA_DISK mkpart primary 40% 100%
  </code></pre>