Install parted:
sudo apt-get install parted
Use parted to create partition:
parted /dev/sdb
Inside parted cli, follow these steps:
(parted) mklabel gpt Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes (parted) unit GB (parted) mkpart primary 0.0GB 3000GB (parted) print
Format the filesystem we created, using mkfs and try to mount it to mount point:
mkfs.ext4 /dev/sdb1 mkdir /tes mount /dev/sdb1 /tes