Mount Shares Locally mount.cifs Error 111

michaelcombs
Posts: 12
Joined: Sat Jun 26, 2010 1:11 pm

Mount Shares Locally mount.cifs Error 111

Postby michaelcombs » Fri Jan 28, 2011 12:56 am

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.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Mount Shares Locally mount.cifs Error 111

Postby bigfoot65 » Fri Jan 28, 2011 5:42 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

michaelcombs
Posts: 12
Joined: Sat Jun 26, 2010 1:11 pm

Re: Mount Shares Locally mount.cifs Error 111

Postby michaelcombs » Fri Jan 28, 2011 10:47 am

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.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Mount Shares Locally mount.cifs Error 111

Postby gboudreau » Wed Feb 02, 2011 5:16 pm

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.
- Guillaume Boudreau

michaelcombs
Posts: 12
Joined: Sat Jun 26, 2010 1:11 pm

Re: Mount Shares Locally mount.cifs Error 111

Postby michaelcombs » Thu Feb 03, 2011 9:11 pm

I ran the service command as root. Here is my boot log: http://fpaste.org/hxch/

Thanks.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Mount Shares Locally mount.cifs Error 111

Postby gboudreau » Fri Feb 04, 2011 4:57 am

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.
- Guillaume Boudreau

michaelcombs
Posts: 12
Joined: Sat Jun 26, 2010 1:11 pm

Re: Mount Shares Locally mount.cifs Error 111

Postby michaelcombs » Fri Feb 04, 2011 8:32 am

I did not have a sleep 10 in my 'mount_shares_locally' file. I grabbed the file again and everything is working. Thanks.

-Michael

gastone
Posts: 26
Joined: Sun Dec 19, 2010 4:23 pm

Re: Mount Shares Locally mount.cifs Error 111

Postby gastone » Sat Mar 26, 2011 4:43 pm

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???

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Mount Shares Locally mount.cifs Error 111

Postby gboudreau » Sat Mar 26, 2011 7:04 pm

You need to be root to edit that file.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 37 guests