[SOLVED] Samba not working after UP4 and LMDE 201204

Post your update and upgrade related errors here
Forum rules
Before you post please read this

[SOLVED] Samba not working after UP4 and LMDE 201204

Postby simonz on Wed Apr 25, 2012 10:55 pm

Recently Samba got broken after Update 4. Here are the symptoms: After rebooting. the Samba shares are invisible to the Windows clients. But then running "sudo /etc/init.d/samba restart" the clients can now access the Samba shares. This behavior started after UP4 a few weeks ago and now continues on with the latest LMDE 201204 edition.

This is a show stopper as I this is a server application which is useless if the the clients cant access the Samba shares after a reboot.

Has anyone seen this behavior or have a fix for it?
Last edited by simonz on Thu Apr 26, 2012 10:43 am, edited 1 time in total.
simonz
Level 1
Level 1
 
Posts: 18
Joined: Fri Feb 06, 2009 5:48 pm

Linux Mint is funded by ads and donations.
 

Re: Samba not working after UP4 and LMDE 201204

Postby altair4 on Thu Apr 26, 2012 6:47 am

This sounds very reminiscent of a problem Ubuntu / Mint had years ago. The problem back then was that the nmbd daemon would start before the network on the server was up and fail. Without nmbd the netbios name of the server was not presented to the LAN.

I offered a workaround for this back then and it might still work:

Create a file:
Code: Select all
gksu gedit /etc/network/if-up.d/samba-restart

With this content:
Code: Select all
#!/bin/sh
/etc/init.d/samba restart

Save the file and make it executable:
Code: Select all
sudo chmod +x /etc/network/if-up.d/samba-restart

Any script placed in if-up.d will run only after the network is up.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6152
Joined: Tue Feb 03, 2009 10:27 am

Re: Samba not working after UP4 and LMDE 201204

Postby simonz on Thu Apr 26, 2012 10:43 am

Altair,

That was precisely the problem. For some reason, the network stack on my computer is slow to come up.

It tried your fix and it worked perfectly.

thanks!
simonz
Level 1
Level 1
 
Posts: 18
Joined: Fri Feb 06, 2009 5:48 pm

Re: [SOLVED] Samba not working after UP4 and LMDE 201204

Postby rmassey on Sat May 19, 2012 2:12 pm

Many thanks, Altair. I've been trying to find a fix for this ever since the upgrade.
rmassey
Level 1
Level 1
 
Posts: 1
Joined: Sat May 19, 2012 2:07 pm


Return to Update/Upgrade Issues

Who is online

Users browsing this forum: No registered users and 5 guests