Score:1

How to access a share on a Synology Drive without mounting it

pe flag

How can I (on Ubuntu 22.04) access my Synology shares without mounting them.

If I use the Ubuntu File GUI tool I see the Synology unit when I click the + Other Locations option. Clicking on (File Sharing) brings up the shares. I can access the files in the shares by clicking them.

I would like to do that from within a bash script?

ls smb://<synology-ip>/<share> doesn't work and neither does ls smb://<synology-ip>.

While researching the solution I came across Access Windows 10 Shared Folder from Ubuntu 18.04. The solution required one to client max protocol = NT1 in the /etc/samba/smb.conf file.

I did that and got the following when I reloaded the configuration file: lp_load_ex: Max protocol NT1 is less than min protocol SMB2_02.

This solution did not work for me. Not sure if it makes the system more vulnerable.

Thanks

in flag
You may find the Synology shares in `/run/user/$UID/gvfs` if you've already connected to them in the GUI (without mounting). I am not sure how to identify/add network shares via the command line, though.
pe flag
Thanks. I would like to use cron to copy files from the synology to the ubuntu machine once a month. If it can't be done I will go the fstab route. How does File do it?
in flag
Nautilus (the file manager) uses more aspects of the "Gnome Virtual File System" (gvfs) than I have found documentation for. Generally for this kind of thing I use mounts. If it's a monthly thing, then you could write a shell script that temporarily mounts the network location, copies files, then unmounts on completion.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.