title: Fill a disk with an ext4 partition in a script
body: <p>I tried to use parted for scripted partitionning like so :</p>
  
  <pre><code>parted -a optimal /dev/sda mklabel gpt mkpart primary ext4 1 -1
  </code></pre>
  
  <p>But it complains about -1 not being a recognized option. Still the same sub-command works in the parted prompt. So my question is how to use the same options in a script ?</p>