I had to go back to the beginning to refresh my memory of what you wanted to do.
You said,
Quote:
What I'd like to do is write two entries in fstab for the two partitions that are in the external hard drive so that every time I connect this device it mounts where it should without messing up the system.
|
Entries in fstab will mount the external drives
if they are connected during boot. Entries in fstab will not automatically mount the drives if they are plugged in after the system boots. (You can run the command "sudo mount -a" to do it, but it does not happen automatically.)
If an external drive is connected
after the system boots, they will be mounted by the operating system without referencing fstab, so they will mount at /media/el-junior/Samsung 1 and /media/el-junior/Samsung 2. The reason you see /media/el-junior/Samsung 2 is because it is mounted using the partition Label - which is "Samsung 2".
On the other hand, if they are already connected before booting, fstab will mount them at the mount point specified in fstab - I think you said you put
/media/el-junior/Samsung_2 - right?
Maybe the command "
sudo mount -a" is what you were looking for.
If the drives are plugged in, but not mounted, "sudo mount -a" will mount them according to the instructions in fstab.
Now, you understand the 2 different mounts:
1) You plug in the drive and the operating system mounts it at /media/el-junior/Samsung 2 - because "Samsung 2" is the partition Label.
2) If the drives are already plugged in when you boot, fstab mounts them at the location specified in fstab - /media/el-junior/Samsung_2