Each time my QNAP restarts, it creates several shortcuts in the /share folder to make navigation easier, most notably the Public shortcut.
I would like to add an additional shortcut to this folder, to the .qpkg folder, occasionally I need to get in there. The problem is that when I create the symlink, the symlink is not persistent and when the device is restarted, it is gone.
Is there any way to make this symlink persistent? Thanks!
The symlinks (shortcuts) are not to make navigation easier. They are to separate the real datastores (which are hidden) from the apparent datastores (which are used for network sharing). Each shared folder gets a symlink automatically created to it in /share by QTS.
/share is not a boot-persistent location. You shouldn’t be creating anything in /share. But, if you must have a symlink there, put a command in your autorun.sh to create it on each NAS bootup.
I don’t know about webcrontab, but the internal QTS crond doesn’t presently support the @reboot directive.
Thanks so much for your reply. No, i think webcrontab is just a front end on myqnap.org for the existing crond on the device, and it didn’t recognize @reboot.
Not really an answer to your actual question, but what I do, instead of messing with symlinks, is I map a drive to a share that point to the root (1 level up from .qpkg) so if I need to access anything for admin reasons, I just go there.