Announcement

Collapse
No announcement yet.

Connect to Windows 7 SMB share

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Connect to Windows 7 SMB share

    I have a Windows 7 computer that I would like to be able to access files on from my Kubuntu laptop. The windows computer is sharing a folder which other windows computers can access as well as a Mac. When I attempt to connect to the server's share (using dolphin, navigating to smb:/192.168.0.25/share), it prompts for a username and password. When I enter it, the windows goes away, then reappears. It will keep doing this until I give up.

    I have been able to connect by using this command:
    Code:
    sudo mount //192.168.0.25/share /mnt/share -o username=******,password=******
    but it is extremely slow (approximately 140kbps over wireless, when i normally get 2Mbps).

    I have had problems connecting to Windows before with the Mac (having to do with the username I think) but now it works (either Microsoft or Apple must've fixed it). I have removed the Windows 7 computer from any Homegroups and have set it to send NM & LTNM.

    Is this an issue with Samba on Kubuntu or Windows?

    I really want to use Linux instead of Windows on this laptop, but I need to be able to access the server. If I can't get SMB to work, could I use NFS?

    Thanks for your help!

    #2
    Re: Connect to Windows 7 SMB share

    There is some limited NFS support in Win7, but I can't help you with that

    Your problem(s) could have several sources;

    Network connection
    Samba configuration
    CIFS mount problem

    Open a terminal window and type ping and the ip of your windows box. The results should be less than 1 millisecond.

    Re Samba: look in /etc/samba/smb.conf file for the Global Settings section and see if you have

    valid users = %S

    if you do, try comment this line out.


    As far as CIFS goes, there is a bug out there with CIFS causing this problem. It causes CIFS mounts to default to a 4096 packet size.

    Try this (although I haven't tried it):
    Create a file /etc/modprobe.d/cifs.conf with options cifs CIFSMaxBufSize=130048
    in it and a trailing carriage return. Then add mount options rsize=130048,wsize=130048 to your mount command.

    sudo mount //192.168.0.25/share /mnt/share -t cifs -o rsize=130048,wsize=130048,username=******,password =******

    Please Read Me

    Comment

    Working...
    X