

sudo parted /dev/sda
(parted) mklabel gpt
(parted) mkpart primary ext4 0% 100%
(parted) quit

sudo mkfs.ext4 /dev/sda1
sudo mkdir /data
echo "/dev/sda1 /data ext4 defaults 0 0" | sudo tee -a /etc/fstab
sudo mount /data1