add new hard drive in ubuntu

Try and find it first

sudo lshw -C disk

or

fdisk -l

I can see new drive sdb

Command line

sudo fdisk /dev/sdb

I want a New partition and a primary partition, and it is partition 1

Starting from ? New disk - nothing on it.... so it can start from 1

At this point take a deep breath and press write

Format the disk

fdisk -l now shows the available partition

For Ubuntu

mkfs -t ext3 /dev/sdb1

For a Dos Partition

mkfs -t fat32 /dev/sdb1

Mount point time

sudo mkdir /media/mynewdrive

fstab

To Auto mount it

Add a line in the fstab

/dev/sdb1    /media/mynewdrive   ext3    defaults     0        2