Page 1 of 1

Problems with shared directory

Posted: Mon May 20, 2019 4:09 pm
by lollapalooza
Maybe I have hit a bug.
My router is a Netgear WNDR3700 V2 with Gargoyle 1.10.0.

I have shared a directory of my USB attached drive, which I use to share my audio/video files across my network (share type CIFS)

Everything works fine until I unmount the drive, and then plug it again.

In this case, the shared folder seems to be correctly configured by looking at Gargoyle GUI.

But, as a matter of fact, the folder is not shared.
When I try to access \\192.168.0.1\foldername ... it does not work.

If I reboot the router, everything works fine again.

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 2:33 am
by Lantis
This is one of those thing's where it's doing exactly what it was programmed to do, but the programmed behaviour is a little unfriendly.

If you were to hit Save Changes on the page, it would relaunch all of the sharing.

I'm not inclined to make any changes to how this works, as the scenarios to check to make it different are a bit complicated.

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 4:50 am
by ektus
Could you simply add a "restart samba/cifs/ftp/whatever" button on the usb storage page? I've been hitting the same problem, and solved it by issuing

Code: Select all

/etc/init.d/samba reload
from the web shell.

Found that one here on the forums in viewtopic.php?t=2483 :geek:

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 4:52 am
by Lantis
But you can just hit save again...
I don’t understand why a shared drive is constantly being ejected.

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 4:55 am
by lollapalooza
Because it's an USB drive...
I connect it to my router when I need it there.
Then I connect it to my laptop when I need it there.
Then I bring it to office...
Etc. :-)

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 4:57 am
by ektus
In my case, possibly problems with the power supply. It's a 2,5" HDD (Toshiba 2TB) that pulls 500mA upon startup, which might be a bit much for the Archer C7 it's attached to. I've since added a powered hub in between, so will have to keep watching.

Anyway, hitting save without having changed anything isn't exactly intuitive...

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 5:33 am
by Lantis
There is the service manager plugin which would give you a start/stop/restart button for all of the services.

Re: Problems with shared directory

Posted: Mon Jun 10, 2019 7:16 am
by ektus
There is? Okay, found it and installed it. Thank You! Now to wait for a reason to use it ;)