Hello!
I have spent the past few weeks getting my new home server up and running. I'm currently looking for advice /help with setting up some sort of system to keep my SMB shares mounted on various Ct's after reboot or power loss.
Currently I have multiple SMB share linked with folder in my MNT folder using
mount -t cifs -o user=SMBUSER //NASIP/SMBSHARE NAME /mnt/LINKEDFOLDERNAME
then
pct set CT# -mp0 /mnt/LINKEDFOLDERNAME,mp#=shared
this has worked great for having my smbs shared to multiple unprivileged containers .etc.
Issue is If I reboot my server or have a power failure I have family that relyo n the server calling me and I have to drop into sehll and reapply the second command across multiple Cts.
Could anyone share some knowledge on how to automate this / do this better?
I'm currently a GUI warrior beginning to learn terminal. So If I have to use terminal please go easy.
Thank you.
I have spent the past few weeks getting my new home server up and running. I'm currently looking for advice /help with setting up some sort of system to keep my SMB shares mounted on various Ct's after reboot or power loss.
Currently I have multiple SMB share linked with folder in my MNT folder using
mount -t cifs -o user=SMBUSER //NASIP/SMBSHARE NAME /mnt/LINKEDFOLDERNAME
then
pct set CT# -mp0 /mnt/LINKEDFOLDERNAME,mp#=shared
this has worked great for having my smbs shared to multiple unprivileged containers .etc.
Issue is If I reboot my server or have a power failure I have family that relyo n the server calling me and I have to drop into sehll and reapply the second command across multiple Cts.
Could anyone share some knowledge on how to automate this / do this better?
I'm currently a GUI warrior beginning to learn terminal. So If I have to use terminal please go easy.
Thank you.