The classic way to mount a file system in Linux (and UNIX-like systems) is to modify the
/etc/fstab file. For example, to mount the file system on
/mnt/ExpansionDrive, you add this line to
/dev/sdc1 /mnt/ExpansionDrive auto defaults
… and then issue this command in a terminal (using root privileges):
In this example, you reference the file system by the disk and partition it’s located on: the first partition (
1) on the third drive in the system (
This has two drawbacks. Firstly, it’s complicated to keep track of drive and partition numbers, and secondly, the name of the drive may change when you reconfigure the hardware. For example, if you add a drive to the system,
/dev/sdc1 may suddenly become
/dev/sdd1, and the wrong file system may be mounted.
Another way to reference file systems is by using the volume id. For example, the file system on your drive may have been assigned the volume id
AE12-B3C5 by the factory. In that case, you can use this line in
UUID=AE12-B3C5 /mnt/ExpansionDrive auto defaults
This method ensures the correct file system is mounted, but it’s still hard to read and remember.
A third way to reference file systems is by using the volume label. For example, the file system on your drive may have been assigned the volume label
ExpansionDrive by the factory. In that case, you can use this line in
LABEL=ExpansionDrive /mnt/ExpansionDrive auto defaults
With this method, it’s very easy to see which file system is referenced. To ensure the correct file system is mounted, you only need to assign each disk a unique label.