Page 1 of 1
Mount Shares Locally mount.cifs Error 111
Posted: Fri Jan 28, 2011 12:56 am
by michaelcombs
I am having trouble mounting my Greyhole shares locally. I followed the directions according to the wiki using the mount_shares_locally script, creating .smb_credentials, etc.
If I manually run "service mount_shares_locally start" as root everything works fine. However, upon reboot, the shares are created but they are empty.
Checking boot.log I see "mount error(111): Connection refused". However, if I run "service mount_shares_locally stop" and then "service mount_shares_locally start" all is fine again -> shares created which contain my data.
Any ideas?
Thanks.
Re: Mount Shares Locally mount.cifs Error 111
Posted: Fri Jan 28, 2011 5:42 am
by bigfoot65
Did you follow the wiki guidance exactly? I overlooked the one modification to /etc/init.d/mount_shares_locally file. That caused me issues, but once I completed that step all was well.
Re: Mount Shares Locally mount.cifs Error 111
Posted: Fri Jan 28, 2011 10:47 am
by michaelcombs
Thanks.
Yes I followed them exactly and have double checked it several times. What's odd is that the script works fine if I manually run it in a terminal. It's just not working on startup. It appears it cannot connect 127.0.0.1 which is a little confusing.
Re: Mount Shares Locally mount.cifs Error 111
Posted: Wed Feb 02, 2011 5:16 pm
by gboudreau
Do you run the service command as root, or as your user, when you run it manually ?
fpaste your complete boot.log please. Maybe Samba starts too soon before mount_shares_locally or something.
Re: Mount Shares Locally mount.cifs Error 111
Posted: Thu Feb 03, 2011 9:11 pm
by michaelcombs
I ran the service command as root. Here is my boot log:
http://fpaste.org/hxch/
Thanks.
Re: Mount Shares Locally mount.cifs Error 111
Posted: Fri Feb 04, 2011 4:57 am
by gboudreau
Does your /etc/init.d/mount_shares_locally file contain a "sleep 10" on line 26 ?
If not, re-download the script from the URL in here:
http://wiki.amahi.org/index.php/Mount_Shares_Locally
(and change the username) then try again.
Re: Mount Shares Locally mount.cifs Error 111
Posted: Fri Feb 04, 2011 8:32 am
by michaelcombs
I did not have a sleep 10 in my 'mount_shares_locally' file. I grabbed the file again and everything is working. Thanks.
-Michael
Re: Mount Shares Locally mount.cifs Error 111
Posted: Sat Mar 26, 2011 4:43 pm
by gastone
I had mounted my shares locally just fine on Amahi5
Now on Amahi6 when i try to edit the mount_shares_locally file in the etc/init.d/ folder it says I don't have permission to do that and it won't let me save...
Any ideas???
Re: Mount Shares Locally mount.cifs Error 111
Posted: Sat Mar 26, 2011 7:04 pm
by gboudreau
You need to be root to edit that file.