Here is a tutorial to mount your drive partitions using UUID (even if u change the label and swap ur hard drives this thing will not change). The UUID of a particular partition changes only after format/deletion of that drive.
Step by step approach:
Step 1 (Create a directory in media folder to mount the desired partition)
use this command
Code:
sudo mkdir /media/dld
Here dld is the directory on which I want to mount sda6 partition
Step 2 (Find out UUID of the desired partition sda6)
use this command to find out UUID
or
sudo vol_id /dev/sdxx or
ls -l /dev/disk/by-uuid
Step 3 (Open fstab file inside /etc directory)
use this command to open fstab file
Code:
sudo gedit /etc/fstab
Step 3 (Edit you fstab file to include the partition sda6 to mount on dld)
include this line (assuming the partition is NTFS)
Code:
# dld
UUID=C21477C91477BECB /media/dld ntfs defaults,force,umask=007,gid=46 0 1
Do the same for other partitions