- lsblk – List all disks & partitions attached (Can change after reboot)
sudoparted /dev/sda mklabel gpt
– Initializes the disk with a GPT partition [Destructive!]sudo parted -a opt /dev/sda mkpart primary ext4 0% 100%
– Creates a new partitionmkfs.ext4 -L datapartition /dev/sda1
– Format the partition as Ext4
Note: Partitions have a number appended to the end of the disk name