In this case the first disk sda is a 120GB disk the second sdb is a 750GB disk.
Sda has 5 partitions: sda1, sda2, et cetera.
Sdb has 3 partitions: sdb1, sdb2, and sdb3.
We will add sdb1 to the fstab file. First we need to create a mount point. Most mount points are created in /media or /mnt, they can be put in the mount point any where you want. In this case, we will use /media.
In Terminal type:
sudo mkdir /media/partitionname1
Partitionname1 is the directory name for this mount point. You can use any name you want - data, entertainment, multimedia - whatever suits your needs.
Open fstab for editing in Terminal type:
sudo nano /etc/fstab
Add the following line below to what is already there:
/dev/sdb1 /media/partition1 ext3 defaults 0 3
I'll explain:
/dev/sdb1: Dev stands for "device file system" and sdb1 the partition on the hard disk.
/media/partition1: The mount point or in other words the folder that the new partition will be mounted to.
ext3: The file system used on the partition.
defaults: Defaults will automatically define these options: rw, suid, dev, exec, auto, nouser, async. These are all the options needed to get the partition to work properly.
0: The dump frequency of all the fstabs I've seen so far don't change this setting. So I have no explanation of it at this time. I will follow up on this in another article at a later date.
3: This sets the order of the fsck file system checking. I like all partitions checked every once in a while so I changed this to 3. If you don't want the partition checked, simply set this to 0.
Close the fstab file: “ctrl+x”, “y” and “enter”.
Check to make sure it mounts. In Terminal type:
sudo mount -a
This will mount any unmounted devices. Now, your partitions will be mounted automatically every time you boot.