I have different disks with pictures
/media/drive1/pictures/ /media/drive2/pictures/ /media/drive3/pictures/ /media/drive4/pictures/ # ...
I have a folder called share which has symlinks for every subfolder of each pictures directory of each drive. I merge every subfolder with a script like this:
# I do this for every drive for item in "/media/drive1/pictures/"* do target=/media/share/pictures/`basename "$item"` if [ ! -d "$target" ]; then ln -s "$item" "$target" chown -h lsc:lsc "$target" fi done
I've been sharing this successfully with Samba for a whlle now.
[global] # ... follow symlinks = yes
Since this is a pure private network and the share is READONLY, security isn't a big deal.
### /etc/exports /media/share *(ro,async)
When I mount my share
mount 184.108.40.206:/ foo the symlinks try to follow on the local host.
My question: How can I share a folder that follows symlinks on the host that's sharing the mount?
bind bind solution in
/etc/fstab won't work here, since every subfolder of
/media/share/ points to different locations/disks.