Apparently, if you browse to a Samba share using
gvfs(e.g., from Gnome's file manager, Thunar, etc.), it has a good chance of appearing as a mounted volume in
It seems to work for
mtpdevices as well. I hooked up my Android phone, and I got a
/run/user/1000/mtp:host...directory. I tried a couple command line operations in there, and while it was slow as snails, it worked. Now I can write scripts that operate on data stored on my phone!