Disk

lsblk -o NAME,SIZE,TYPE,MOUNTPOINT

Create partition

sudo fdisk /dev/<disk>
  1. n for new partition
  2. p for primary partition
  3. 1 to select first partition
  4. w write changes

Format the partition

sudo mkfs.ext4 /dev/<disk>1

Mount the partition

sudo mkdir -p /mnt/storage
sudo mount /dev/<disk>1 /mnt/storage

Persist the mount

Print the UUID

sudo blkid /dev/<disk>1
sudo vim /etc/fstab
UUID=<UUID> /mnt/storage ext4 defaults 0 2

Test configuration

sudo mount -a

Verify

df -h | grep /mnt/storage