Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Networking and servers • Re: Samba Guidance

$
0
0
...
I'd like to mount folders from the above partition to folders in, say, the /mnt directory so I end up with mappable folders where [ideally] there is no other limit other than the physical limits of the 1.4Tb partition.
...
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:

Code:

[shareone]path = /mnt/nvme02/firstdirread only = no[sharetwo]path = /mnt/nvme02/seconddirread only = no
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:

[sharethree]path = /mnt/nvme02/firstdir/anotherdirread only = no
and so is

Code:

[sharefour]path = /mntread only = no
I think when you say
I'd rather have specific mappable drives for each category of data
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.

Statistics: Posted by andrum99 — Sat Aug 09, 2025 12:10 am



Viewing all articles
Browse latest Browse all 8597

Trending Articles