LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2012, 09:56 AM   #1
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
[Solved] Windows 7 freeze when copy files to Samba


Hello Folks,

I really need your help. I have the following issue:

I run a samba fileserver on an Ubuntu server for doing backups for about one year. I never ever had a problem. I run many linux and one Windows XP client on it.
A few weeks ago, I upgraded my fathers computer from Windows XP Home 32-Bit to Windows 7 Home Premium 64-Bit and I didn't change anything on the server. Since that, he get's the following problem:

Whenever he tries to copy files from his local harddrive to the samba network share, his computer freezes completly and needs to get restard (by pressing the reset button). It's not a permission problem, because rightlick->new textfile works on the network drive without any problems. Of course, also the user loggin works (network storage gets connected).

Here's the /var/log/syslog from the server:
Code:
[2012/04/21 14:34:11,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.
[2012/04/21 14:49:08,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.
[2012/04/21 15:04:18,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.
[2012/04/21 15:19:17,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.

And here's the part of the sambalog:
Code:
[2012/04/21 14:34:11,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.
[2012/04/21 14:49:08,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.
[2012/04/21 15:04:18,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.
[2012/04/21 15:19:17,  0] nmbd/nmbd_browsesync.c:350(find_domain_master_name_query_fail)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name WORKGROUP<1b> for the workgroup WORKGROUP.
  Unable to sync browse lists in this workgroup.

And here's my /etc/samba/smb.conf:
Code:
[global]
workgroup = WORKGROUP
wins support = yes
os level = 33
local master = yes
;wins server = w.x.y.z
unix password sync = yes
passwd program = /usr/bin/passwd %u

[backup]
path = /media/backup
writeable = yes
browseable = yes
valid users = tectu,stefan
force directory mode = 660
force create mode = 660

Do you have any guesses where the problem can be? Do you need any additional informations?

Thank you in advance.


~ Tectu

Last edited by Tectu; 04-29-2012 at 08:22 AM.
 
Old 04-22-2012, 06:19 AM   #2
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
P.S.: It's samba 3.4.7 which I run on an Ubuntu 10.04 LTS Server.
 
Old 04-22-2012, 07:15 AM   #3
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi Tectu, Welcome to LQ. Have you seen this?

http://wiki.samba.org/index.php/Wind...istry_settings

Have you tested writing to the server without the firewall on? Does this occur when using the IP as well?

Good luck. ;-)
 
Old 04-22-2012, 03:42 PM   #4
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello Peacedog,

Thank you for the welcomming.

I may try that registry stuff in a few days.
Here's just one more strange thing: I run a Windows 7 Ultimate N 64-bit on my machine too, and it works without any problems out of the box!
Is that helpful?
It's making it just more strange, isn't it?



Greetings

~ Tectu
 
Old 04-22-2012, 08:36 PM   #5
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I don't find that strange at all. It's likely some option disabled or crippled in the Home Premium version that isn't so in the Ultimate version. That is typical business for Microsoft to promote sales of the more expensive versions which typically have more options.

Good luck. ;-)
 
Old 04-23-2012, 11:13 AM   #6
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello Peacedog,

It's me again. I took a look to the registry on my dad's computer with regedit.
I am not a windows guru, so I want to ask first:

The samba registry patch file says:
Code:
   [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanManWorkstation\Parameters]
   "DNSNameResolutionRequired"=dword:00000000
   "DomainCompatibilityMode"=dword:00000001
In the given path, none of the two parameters exist. Am I supposed to create them myself?


Greetings

~ Tectu
 
Old 04-23-2012, 08:52 PM   #7
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Yes, the easiest way in my opinion is to download the registry file from the page here.

https://bugzilla.samba.org/attachmen...88&action=view

Once you have it downloaded you should be able to right click on it and "merge" it to the registry. This may or may not correct your problem, but it's a minor change that can easily be reversed if it doesn't help.

Good luck. ;-)
 
Old 04-24-2012, 02:06 PM   #8
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Okay, Here's the thing:

I did upgrade my ubuntu 10.04 / samba 3.4.7 to ubuntu 12.04 / samba 3.5
That didn't work. So I did the registry patch and there! After a restard I could copy a whole folder to the samba share!

Sadly, a few hours later, the same problem as described in the first post occoured again.

Do you have any other idea, Peacedog?


~ Tectu

Last edited by Tectu; 04-24-2012 at 02:40 PM.
 
Old 04-24-2012, 08:27 PM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
If the registry patch worked and corrected your issue then it should continue working. Have there been any other updates or changes on the Linux side? How about the Windows side? Firewall enabled, anything different than when it worked? Any VPN's or any change to the network at all? Assuming there have been no other changes, have you tired a reboot of the Windows box?

Good luck. ;-)
 
Old 04-25-2012, 08:50 AM   #10
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello Peacedog,

Well, within the same time, I got a new router. But I didn't made any special things beside ssh forwarding in the old one, so all I did is the ssh forwarding in the new one. No other option were changed.

I also didn't change anything between the time when it worked and when it didn't work again. All I did was:

1. make registry patch
2. reboot
3. successfully file copy
4. reboot
5. nothing worked again.

I'll check the windows firewall today, but I didn't do any special settings.
 
Old 04-25-2012, 09:14 PM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I would check the registry to be sure the keys set by the patch are still there and still the same. Have you tried mapping the drive by IP instead of NetBios name and tried copying?

Good luck. ;-)
 
Old 04-29-2012, 08:22 AM   #12
Tectu
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hello Peacedog,

I checked the firewall stuff etc. and also I checked that the registry settings still were the same.
I did check every singel thing I could think of, but it didn't work at all.

Then, I decided to reinstall the whole Windows 7 HomePremium 64-Bit operation system and there - whitout any changes in the registry or any other windows option, it worked without any problem.

I guess the problem was some virus or something similar.


Thank you very much for your help, Peacedog!!



~ Tectu
 
Old 04-29-2012, 08:14 PM   #13
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You're welcome, glad you got it sorted.

Good luck. ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to restrict virus effected files of windows to copy in samba sharing centos123 Linux - Server 1 07-28-2011 03:42 PM
copy files form windows app to samba share procfs General 1 07-19-2006 06:13 AM
Copy files from Windows to Samba bkesting Linux - Software 2 11-23-2004 11:24 PM
Copy Files Between Drives Causes Kernel Panic/Freeze of the System php Slackware 7 08-14-2003 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration