#This Docs describes how to attached a new HD in linux this is blog is design to works with Ubuntu.
#Display all attched DISK
sudo lshw -class disk
#Show all attched HD
sudo fdisk -l
—
Disk /dev/sda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders, total 125829120 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003fa82
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 121634815 60816384 83 Linux
/dev/sda2 121636862 125827071 2095105 5 Extended
/dev/sda5 121636864 125827071 2095104 82 Linux swap / Solaris
Disk /dev/sdb: 21.5 GB, 21474836480 bytes
213 heads, 34 sectors/track, 5791 cylinders, total 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x36e7606e
Device Boot Start End Blocks Id System
/dev/sdb1 2048 41943039 20970496 83 Linux
Disk /dev/sdc: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
### Initiate fdisk to partition the disk:
sudo fdisk /dev/sdb
# Select n to a add a new partition
# Select 1 to a add it as primary partition
#Format it as ext3
sudo mkfs -t ext3 /dev/sdb1
##Monut the New Disk
#Create a direcory
sudo mkdir /media/mynewdrive
#Mount into manually:
sudo mount /dev/sdb1 /media/mynewdrive
#Unmount into manually:
sudo mount /dev/sdb1 /media/mynewdrive
#Automatic Mount At Boot
sudo nano -Bw /etc/fstab
#add this line
/dev/sdb1 /media/backupdrive ext4 defaults 0 2