[Samba] mounting ext usb drive
rpenny at samba.org
Wed Dec 25 09:13:26 UTC 2019
On 25/12/2019 01:38, samba.x.eliezer613--- via samba wrote:
> Hi, trying to mount on demand, external USB drive which is /bkup.
> /etc/fstab has it as:
> UUID=4C76D06176D04CF8 /bkup ntfs-3g noauto,user,rw 0 0
> The following does open a share but its not really /bkup and its not
> writeable. Corrections are welcome.
> preexec = /bin/mount /bkup
> comment = Backup Drive
> path = /bkup
> writable = yes
> postexec = /bin/umount /bkup
> If /bkup is mounted then the above share works from Windows or Unix
> clients. Thing is, wanted it to only mount when actually needed.
You normally need to be root to use mount, so try 'root preexec' & 'root
postexec', or read up on 'noauto' in fstab
More information about the samba