Ah, Mr Thagrol, hello again... your documentation (Building A Pi Based NAS) was excellent, I just want to go furtherFor stuff you're serving you'd generally mount it under /srv not /mnt.
There's also no need to (re)mount a directory to make it available as a Samba share or even to make it appear at a different place in the file tree. Samba can export any arbitrary directory as a share.
So, the current state of my smb.conf is (at this point I have pretty much what your PDF describes):For a bind mount you'd do something like the following in your fstab:I've included the nofail option as it allows boot to continue should the mount fail (e.g. if teh drive is nto present at boot) which makes troubleshooting thins much easier.Code:
PARTUUID=*/mnt/fooext4defaults,nofail00/mnt/foo/bar/mnt/baznonedefaults,bind,nofail00
Code:
[global]log file = /var/log/samba/log.%mserver role = standaloneunix password sync = yes[nvme02]path = /mnt/nvme02/available = yesvalid users = xxxxxxxxread only = nobrowsable = yespublic = yeswritable = yesforce create mode = 666force directory mode = 777I'll look at those links (even the "shamelessly self-promoting" ones).Some suggested reading
That's what I did when I mentioned above that I copied that for multiple "shares" and rebooted.If you use the fstab entry you have specified, then that's exactly what happens - you end up with the directories in the NASData partition appearing under /mnt/nvme02. Any of those directories can then be shared out using an entry in smb.conf, for example:Samba has no concept of drives - it just shares out any location in Linux's filesystem hierarchy. The following is therefore also perfectly valid:Code:
[shareone]path = /mnt/nvme02/firstdirread only = no[sharetwo]path = /mnt/nvme02/seconddirread only = noCode:
[sharethree]path = /mnt/nvme02/firstdir/anotherdirread only = no
That is what I meant, yes but unless I've done something wrong (entirely likely), it didn't work.you mean this from the perspective of the client machines - i.e. they're Windows boxes, and you want a mapped drive (U:, V:, W: etc) per category of data. If I've understood you correctly, then the above example should allow you to do this, i.e. a directory in NASData for each category of data, each with it's own share specified in smb.conf.I'd rather have specific mappable drives for each category of data
Thanks both
James
Statistics: Posted by JamesCRocks — Sat Aug 09, 2025 12:10 pm