How to mount new drive in Ubuntu

Initiate fdisk with the following command:
fdisk /dev/vdb
 Fdisk will display the following menu:

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x7cc55b24.

Command (m for help): m

Help:

  DOS (MBR)
   a   toggle a bootable flag
   b   edit nested BSD disklabel
   c   toggle the dos compatibility flag

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   u   change display/entry units
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty DOS partition table
   s   create a new empty Sun partition table
We want to add a new partition. Type "n" and press enter.
Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
We want a primary partition. Enter "p" and enter.
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-97656249, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-97656249, default 97656249):

Created a new partition 1 of type 'Linux' and of size 46.6 GiB.
Now that the partition is entered, choose option "w" to write the partition table to the disk. Type "w" and enter.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

Command Line Formatting

To format the new partition as ext3 file system (best for use under Ubuntu):
mkfs -t ext4 /dev/vdb

Create A Mount Point

Now that the drive is partitioned and formatted, you need to choose a mount point. This will be the location from which you will access the drive in the future. I would recommend using a mount point with "/media", as it is the default used by Ubuntu. For this example, we'll use the path "/hdd2"
sudo mkdir /hdd2

Automatic Mount At Boot

Note: Ubuntu now recommends to use UUID instead, see the instructions here:https://help.ubuntu.com/community/UsingUUID
You'll need to edit /etc/fstab:
mcedit /etc/fstab
Add this line to the end (for ext4 file system):
/dev/vdb /hdd2 ext4 defaults 0 2
You can now run
sudo mount -a
 (or reboot the computer) to have the changes take effect.