...
Create a partition and format it. You may use parted to do all in one go and mkfs.ext4:
No Format sudo parted -s -a optimal -- /dev/vdb mkpart primary ext4 0% 100%
No Format sudo mkfs.ext4 /dev/vdb1
Info You may partition the disk differently and use any other filesystem type.
Add this entry to your VM's /etc/fstab:
No Format echo "/dev/vdb1 /data1 ext4 defaults 0 0" | sudo tee -a /etc/fstab > /dev/null
If your VM uses disk IDs then use the following command to find the vdb ID and amend the line above as required:
No Format echo "UID-$(blkid /dev/vdb) /data1 ext4 defaults 0 0" | sudo tee -a /etc/fstab > /dev/null
Make the directory where you are mounting your filesystem. Make sure you use the same path as defined in fstab:
No Format sudo mkdir /data1
Mount the file system
No Format sudo mount -av
...