I recently bought a Synology DS218+ to manage data and especially photos.

For this purpose, Synology offers different packages that can be installed within the Network Attached Storage to extend the feature set.
To fulfill my photo managing use-case (upload/backup, edit, group photos automatically according to topics and persons, …), I need two independent working packages called Photo Station and Moments.

Problem Description

Both packages, of course, use it’s own database managing files, index, and so on.
But that’s not the problem…

The problem is that unfortunately both packages have no possibility to change their default data directory.
On the one hand, Poto Station stores all uploaded files in /home/photo, and on the other hand, Memories only processes data located in home/Drive/Moments.

Well…
After some time of ARRRG, UUUHH, WTF!!111!!, asking Google for help and reading solutions like “just copy and manage your files in both directories“, I recognized, that I’m for sure not the only one facing this issue.

So I accepted the fact, that some software is developed like …

https://knowyourmeme.com/memes/tree-swing-cartoon-parodies

… and especially in combination with private (no shared data between NAS users) Photo Station there is no official working solution to this let’s call it FEATURE.

The Solution

In my point of view, there is one very, very simple solution to this directory problem, and I have not recognized any downside for now.

Simply mount Photo Stations photo folder to Moments.
How to:

  1. SSH into your Synology
  2. Find the corresponding folders in the filesystem.
    In my setup:
    Private Photo Station folder: /volume1/homes/USER/photo
    Moments folder: /volume1/homes/USER/Drive/Moments
  3. Mount Photo Station folder into Moments using
    mount --bind /volume1/homes/USER/photo /volume1/homes/USER/Drive/Moments/photo-mount
  4. Enable auto-mount after startup by adding the mount command to /etc/rc.local
  5. Start new indexing from Synology’s user-interface (Moments/Settings/Indexing).

In case anyone finds a better solution, do not hesitate to leave a comment!

Categories: General

2 Comments

Peter · 28. October 2020 at 22:45

Hi,

still satisfied with your work around for the paths? Besides that have you not experienced lag when uploading new photos? I.e. Moments start indexing and and a lot of other things like trying to identify faces/people etc. When this happen it’s like a deadlock and it does not accomplish much. It can take several hours to just upload a few hundred photos. I also have a DS218+ii that I consider unusable as whenever you upload anything to ../Drive/.. that trigger indexeing.
Does the bind of phot to moments solve that problem, i.e. have you not noticed any lag?

//Peter

    Fabian

    Fabian · 29. October 2020 at 9:58

    Hi Peter,
    thanks for your comment!
    No, I’ve not noticed lags or deadlocks, but I think that’s because I’ve never uploaded that many photos at once without using Synology Photo Station Uploader https://www.synology.com/de-de/support/download/DS218+#utilities.
    I only use the direct photo upload from my mobile phone, which uploads photos as soon as they are taken. – So one by one, which obviously can be handled by the Synology device.

    As you mentioned, Synology starts some quite complex and performance killing processes analyzing your photos. Besides the face/people/place recognition it also computes several previews to deliver previews as fast as possible to client devices and in my point of view, that’s what causes your lag.
    To work around that problem, I would recommend you use Synology Photo Station Uploader when uploading bigger amounts of photos so that Uploader uses the resources of your local machine to compute previews, compress data, and so on. Surely that is much faster and will prevent your Synology Device from deadlocks caused by these computations.

    Best regards,
    Fabian

Leave a Reply

Your email address will not be published. Required fields are marked *