Symbolic links

Questions about the Synology Photo Station can be placed here.
Forum rules
Synology Community is the new platform for the enthusiasts' interaction, and it will soon be available to replace the Forum.
xylem
I'm New!
I'm New!
Posts: 5
Joined: Sun Jul 24, 2016 9:28 pm

Symbolic links

Unread post by xylem » Sun Jul 24, 2016 9:32 pm

hi,

I wanr DS Photo to index a folder outside the default /photo so I've created a symbolic link to that external folder. The index shows the folder but it is empty. Any other way to get an external folder indexed?

regards

User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
Posts: 19644
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Symbolic links

Unread post by HarryPotter » Mon Jul 25, 2016 9:03 am

DSM - Control Panel - Indexing Service - Indexed Folders
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS718+ / DSM 6.2-23511 / ST4000VN000-2AH166 / SA400S37120G SSD cache /16 GB RAM
DS415+ / DSM 6.2-23511

LMS 7.9.1-166, 2 Squeezebox 3 + Boom

APC Smart UPS SUA750i

xylem
I'm New!
I'm New!
Posts: 5
Joined: Sun Jul 24, 2016 9:28 pm

Re: Symbolic links

Unread post by xylem » Mon Jul 25, 2016 6:11 pm

I have that setup in Indexing service, but the images do not show up in Photo Station.

HardyK
Enlightened
Enlightened
Posts: 430
Joined: Tue Apr 12, 2016 8:46 pm

Re: Symbolic links

Unread post by HardyK » Mon Jul 25, 2016 9:12 pm

I don't think you'll see photos outside the photo folder in Photo Station. It says explicitly in Control Panel -> Indexing Service, under Media Indexing that PS won't add images outside of the photo folder. I quote:

"Please note that only the image files under the shared folder "/photo" will be added to Photo Station after being indexed."
DS216j

Feature Suggestion: https://www.synology.com/form/inquiry/feature
Tech Support: DSM Main menu -> Support Center

xylem
I'm New!
I'm New!
Posts: 5
Joined: Sun Jul 24, 2016 9:28 pm

Re: Symbolic links

Unread post by xylem » Mon Jul 25, 2016 9:18 pm

Is there a way to change that default folder?

HardyK
Enlightened
Enlightened
Posts: 430
Joined: Tue Apr 12, 2016 8:46 pm

Re: Symbolic links

Unread post by HardyK » Mon Jul 25, 2016 9:58 pm

Not as far as I know but you're not the only one to want to do this. Maybe worth a feature request or at least asking Syno support why it's so rigid in its photo setup.
DS216j

Feature Suggestion: https://www.synology.com/form/inquiry/feature
Tech Support: DSM Main menu -> Support Center

xylem
I'm New!
I'm New!
Posts: 5
Joined: Sun Jul 24, 2016 9:28 pm

Re: Symbolic links

Unread post by xylem » Thu Jul 28, 2016 8:50 pm

For anyone interested, I've found the workaround:
mount --bind /volume1/folder1/folder2 /volume1/photo
Folder2 is properly indexed by DS Photo.
Put that line in /etc/rc.local to get it mounted with every reboot.

HardyK
Enlightened
Enlightened
Posts: 430
Joined: Tue Apr 12, 2016 8:46 pm

Re: Symbolic links

Unread post by HardyK » Thu Jul 28, 2016 10:16 pm

Nice work, many thanks for that. Will give it a try myself.
DS216j

Feature Suggestion: https://www.synology.com/form/inquiry/feature
Tech Support: DSM Main menu -> Support Center

mikeshick
Trainee
Trainee
Posts: 15
Joined: Tue Aug 04, 2015 11:40 pm

Re: Symbolic links

Unread post by mikeshick » Fri Dec 08, 2017 3:44 pm

xylem wrote:For anyone interested, I've found the workaround:
mount --bind /volume1/folder1/folder2 /volume1/photo
Folder2 is properly indexed by DS Photo.
Put that line in /etc/rc.local to get it mounted with every reboot.
can you please explain how to put the command in rc.local. I'm searching for how to work with the editor.

Also, as I understand from https://github.com/Entware-ng/Entware-ng/issues/645, "As of DSM 6 (I think; not exactly sure when this changed), /etc/rc.local is no longer executed during startup"....and therefore

"The simplest workaround on recent versions of DSM 6 is to use the Task Scheduler to create a triggered task (running on boot-up) that does the mounting. I have tested this personally and it works fine. See https://forum.synology.com/enu/viewtopic.php?t=116174 for more discussion on the issue."

Can anyone comment on this, and provide instruction? Thank you.

HardyK
Enlightened
Enlightened
Posts: 430
Joined: Tue Apr 12, 2016 8:46 pm

Re: Symbolic links

Unread post by HardyK » Sat Dec 09, 2017 4:29 pm

- Enable SSH in Control Panel.
- Use WinSCP or similar to log in.
- Create/edit rc.local in /etc
- You may need root access so follow these instructions:
https://www.synology.com/en-uk/knowledg ... SSH_Telnet
DS216j

Feature Suggestion: https://www.synology.com/form/inquiry/feature
Tech Support: DSM Main menu -> Support Center

Post Reply

Return to “Photo Station”