Dismount ShareFS Drive
andym (447) 463 posts |
There’s probably a really easy answer to this that I just can’t see in the documentation, but how do I dismount a ShareFS drive from a task window? I can unshare it, but it leaves the now-unavailable drive icon on the icon bar. Help says Syntax: *Dismount <:discname> but whatever I type, it just comes back with an error, depending on how I typed it. It either tries to dismount a standard physical disc, or complains about the name not being recognised. Is it possible to do this without using ShareFS as the current FS, or can I do it whilst using a physical FS as the current one? |
John WILLIAMS (8368) 485 posts |
ISTR there is a way by prefixing the command with the filing system name, this switching to that FS only for the duration of the command, but the details and precise syntax elude me. |
David Pitt (3386) 1248 posts |
One can always cheat and see what Reporter reports on dismounting from the iconbar. Reporter 2.71 (04 Dec 2015) List Thu 26th Mar 2020 10:12 10:12:14.53 ** Clear ** from Menu 10:12:22.20 Filer_CloseDir Share::Pi3B+Work 10:12:22.21 Share:Dismount :Pi3B+Work Reporter 2.71 (04 Dec 2015) Listed 3 lines These commands appear to do the job but do leave the icon on the iconbar. Filer_CloseDir Share::Pi3B+Work Share:Dismount :Pi3B+Work |
andym (447) 463 posts |
Yes, that’s the problem I get. Whatever I do, the icon remains even if I UnShare the drive, it still doesn’t do it. Just leaves it showing as “not available” but never clears the icon. Weird… |
John Sandgrounder (1650) 574 posts |
I assume that the taskwindow is not on the system which owns the shared drive. On the remote system if you access a shared drive from a task window the icon for the remote shared drive does not appear on the task bar. So, no need to remove the icon as it is not there. My checking done with 5.24 on a Raspberry Pi 2. |
Martin Avison (27) 1417 posts |
My guess is that when Dismounted from the iconbar, as well as doing the Filer_CloseDir and Share:Dismount, ShareFS also does a hidden function which performs the opposite of the *ShareFSIcon command – ie it removes the icon. If so, this really should be available externally as a command. |
andym (447) 463 posts |
It IS on the system that owns the shared drive. It’s a USB drive that want to share/unshare across the network, automatically, by running an obey file. But once it’s UnShared, I want it to clear off!
That’s exactly what I was looking for. I looked for a switch in ShareFSIcon to do the inverse, but obviously there isn’t one. So for now, it looks like this just isn’t doable? |
David Pitt (3386) 1248 posts |
Duff answer deleted. |
John Sandgrounder (1650) 574 posts |
OK, I think I now have a better understanding of the problem. The best I can think of is to use *Share -noicon when creating the share. |