Personally I do not like to edit fstab or put drives in fstab that might not always be there on boot.
I know there are ways to work with fstab to get those conditions resolved but I am a linux newb with enough knowledge to seriously screw up my system lol.
So, what i have done is i have edited my /etc/rc.local to run a script that mounts drives for me.
This way if i screw things up with mount commands or if a drive is not there my base system will boot anyway. Really handy on a headless system so i dont have to go fishing for a monitor to borrow and a keyboard / mouse.
The same effect can be had by making an entry in crontab that is @reboot /dir/dir/script
Those are my 2 favorite ways of working with non essential drives and mounting them.
Ok turns out i lied about my rc.local, i pulled the changes out of there for whatever reason. This is an example from my system. My crontab is:
Then the script is:
mount UUID=7e615a2d-088b-4800-8bee-b58b2835d621 /media/emby
chown -R emby.MEDIA /media/emby/
mount UUID=4ec27b2b-2a18-4890-b430-0b245c2b3cfc /Movie-Backup
I also greatly prefer to mount based on uuid, the uuid normally will not change unless you force it to change ( I believe but i could be wrong ) where the /dev/sda or sdb can change and the why that changes i am not really versed on if its order that things are plugged in or slot plugged in to.
Anyway i hope someone also finds this useful.
Edited by tdiguy, 12 February 2018 - 04:49 PM.