Find out which device you want to format. In the following example we will assume it’s /dev/sdb

This example will create a ext4 partition spanning the entire size of the device, making sure it’s aligned to the sectors and while we’re at it, we’ll remove the reserved space allocation so we can use the entire space.

parted --script /dev/sdb mklabel gpt
parted --align=min --script /dev/sdb mkpart primary 0% 100%
parted --script /dev/sdb print
mkfs.ext4 -L "my­large­disk" -m 0 -v /dev/sdb1