#!/usr/bin/env bash

device="/dev/vdb"
fileSystem="ext4"
mountPoint="/data"
parted $device mklabel gpt yes
parted $device mkpart primary $fileSystem 0% 100%
parted $device quit
mkdir $mountPoint
mkfs.ext4 ${device}1
echo "${device}1 ${mountPoint} ext4 defaults 0 0" >> /etc/fstab
mount -a