I am running ubuntu 22.04, and I installed plex so that I can access a folder of an external hard drive which should be mounted on /media/PlexEnrico. I need to edit fstab file so that the device /dev/sdb2 is automatically mounted after system boot.
even if I try to do: mount /dev/sdb2 /media/PlexEnrico this action require root and makes the folder unaccessible for plex.
I would ask if anyone can help me setting the fstab file in /etc/ so that the hard drive is mounted correctly and it's accessible by plex. on the system there is a user plex, so theoretically we should grant access to this user. I already know it's useless to edit /media folder permission before mounting, since the mount will cause any subfolder to be controllable just by root.
thank you