This is a home project: A Samba Server on a "Banana pi - BPI M2 Berry". Server side script mount/umount automatically an external drive when switched ON/OFF, starting/stopping the smbd service.
OS: Ubuntu 16.04.7 LTS (Xenial Xerus), 3.10.108-BPI-M2U-Kernel