Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Cannot mount windows share

  1. #1
    Join Date
    Sep 2008
    Location
    upstate NY
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Unhappy Cannot mount windows share

    We have a home network with Mac, Windows, and Ubuntu computers. We also have a "slug" seen by the Windows and Mac computers, but for some reason the Ubuntu computers cannot see it. They could see it a few years ago, but when we updated to 10.10, none of the Ubuntu boxes could see it. When we try to connect using the bookmarks we originally made, for example, we get this error..."Could not open location smb://slug/platypus/ Failure to mount Windows share." Not sure what do about his as I am still quite the neophyte. Would appreciate any help.

  2. #2
    Join Date
    Dec 2009
    Beans
    6,777

    Re: Cannot mount windows share

    This may be the wildest guess I've ever made in a forum.

    First I had to figure out what a "slug" was - somehow a gastropod mollusc that lacks a shell didn't quite seem right.

    Then I went to the source of all knowledge in the universe - Wikipedia - and saw this line:
    Along with most NASs, the device isn't out-of-the-box compatible with Windows Vista, as it runs an older version of Samba that uses an authentication mechanism that is disabled by default in Vista.[17]
    What I would try is this:
    Edit smb.conf on your Ubuntu machine as root:
    Code:
    gksu gedit /etc/samba/smb.conf
    Add these lines to the [global] section of smb.conf:
    Code:
    client lanman auth = Yes 
    lanman auth = Yes
    Save smb.conf, close gedit, and back in the terminal restart samba:
    Code:
    sudo service smbd restart
    Wait a few minutes for the network to settle down a bit and see if it works.

    Give it a shot - what have you got to lose .

  3. #3
    Join Date
    Sep 2008
    Location
    upstate NY
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Cannot mount windows share

    Sorry that I did not explain what a "slug" is -- a network-attached storge device called the Linksys NSLU2.

    Thanks for your help. I did attempt the code, but when I entered the last bit to restart samba, I got an error: "smbd: unrecognized service".

    So this means I am not running Samba at all now? How did this happen? And how do I install Samba?

    -g.

  4. #4
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot mount windows share

    Quote Originally Posted by graceful1 View Post
    Sorry that I did not explain what a "slug" is -- a network-attached storge device called the Linksys NSLU2.

    Thanks for your help. I did attempt the code, but when I entered the last bit to restart samba, I got an error: "smbd: unrecognized service".

    So this means I am not running Samba at all now? How did this happen? And how do I install Samba?

    -g.
    What is the output of:
    Code:
    ps -ef | grep mbd
    -BAB1

  5. #5
    Join Date
    Sep 2008
    Location
    upstate NY
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Cannot mount windows share

    Well, while I was waiting for a reply, I went to synaptic package manager, and I saw that it was in fact installed. I selected a component, however, that wasn't installed, and I think that I reinstalled samba.

    Then I did the restart command got this:

    Code:
    smbd start/running, process 4234
    The output of the code suggested by BAB1 is

    Code:
    root      3999     1  0 00:09 ?        00:00:00 nmbd -D
    root      4234     1  0 00:26 ?        00:00:00 smbd -F
    root      4236  4234  0 00:26 ?        00:00:00 smbd -F
    root      4326  4234  0 00:31 ?        00:00:00 smbd -F
    root      4332  4234  0 00:31 ?        00:00:00 smbd -F
    root      4335  4234  0 00:31 ?        00:00:00 smbd -F
    grace     4405  4386  0 00:38 pts/1    00:00:00 grep mbd
    Okay, so samba is running. But to get back to the original problem, restarting samba has not allowed me to mount the Windows share.

    This is particularly frustrating because this worked five years ago without much trouble, and I cannot understand why after upgrading I cannot see these shares. I still have the bookmarks for them, but they are useless.

    I still am quite inexperienced with this, and I would appreciate any help. There are lots of files on the slug that I need to access.

  6. #6
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot mount windows share

    Quote Originally Posted by graceful1 View Post
    Well, while I was waiting for a reply, I went to synaptic package manager, and I saw that it was in fact installed. I selected a component, however, that wasn't installed, and I think that I reinstalled samba.

    Then I did the restart command got this:

    Code:
    smbd start/running, process 4234
    The output of the code suggested by BAB1 is

    Code:
    root      3999     1  0 00:09 ?        00:00:00 nmbd -D
    root      4234     1  0 00:26 ?        00:00:00 smbd -F
    root      4236  4234  0 00:26 ?        00:00:00 smbd -F
    root      4326  4234  0 00:31 ?        00:00:00 smbd -F
    root      4332  4234  0 00:31 ?        00:00:00 smbd -F
    root      4335  4234  0 00:31 ?        00:00:00 smbd -F
    grace     4405  4386  0 00:38 pts/1    00:00:00 grep mbd
    Okay, so samba is running. But to get back to the original problem, restarting samba has not allowed me to mount the Windows share.

    This is particularly frustrating because this worked five years ago without much trouble, and I cannot understand why after upgrading I cannot see these shares. I still have the bookmarks for them, but they are useless.

    I still am quite inexperienced with this, and I would appreciate any help. There are lots of files on the slug that I need to access.
    Can you ping all the hosts on the LAN that share files?

    Edit: Try these commands:
    Code:
    findsmb
    smbtree
    Last edited by bab1; April 12th, 2011 at 05:51 AM.
    -BAB1

  7. #7
    Join Date
    Sep 2008
    Location
    upstate NY
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Cannot mount windows share

    Quote Originally Posted by bab1 View Post
    Can you ping all the hosts on the LAN that share files?

    Try these commands:
    Code:
    findsmb
    smbtree
    Okay, here is the output:

    Code:
                                    *=DMB
                                    +=LMB
    IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION 
    ---------------------------------------------------------------------
    192.168.1.64    HOPE          +[MOONBASE] [Unix] [Samba 3.5.4]
    192.168.1.77    SLUG          +[	MOONBASE      ]
    Those two hosts are probably the only ones active at this hour. HOPE is my PC running Ubuntu, and SLUG is the network-attached storage device that has the share called platypus (and other shares). Well, actually, my MacBook Pro is also up, CLIO, but I turned off Windows sharing for that one. However, you can see it when you use the pulldown menu Places-->Network.

    And here is the output for smbtree
    Code:
    WORKGROUP
    	\\HOPE           		hope server (Samba, Ubuntu)
    		\\HOPE\mimosa         	Brother MFC-440CN
    		\\HOPE\print$         	Printer Drivers
    		\\HOPE\IPC$           	IPC Service (hope server (Samba, Ubuntu))
    MOONBASE
    	\\SLUG           		
    cli_start_connection: failed to connect to SLUG<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
    I could turn Windows sharing back on for CLIO if necessary.

    Thanks,
    G.

  8. #8
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Cannot mount windows share

    Quote Originally Posted by graceful1 View Post
    Okay, here is the output:

    Code:
                                    *=DMB
                                    +=LMB
    IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION 
    ---------------------------------------------------------------------
    192.168.1.64    HOPE          +[MOONBASE] [Unix] [Samba 3.5.4]
    192.168.1.77    SLUG          +[	MOONBASE      ]
    Those two hosts are probably the only ones active at this hour. HOPE is my PC running Ubuntu, and SLUG is the network-attached storage device that has the share called platypus (and other shares). Well, actually, my MacBook Pro is also up, CLIO, but I turned off Windows sharing for that one. However, you can see it when you use the pulldown menu Places-->Network.

    And here is the output for smbtree
    Code:
    WORKGROUP
    	\\HOPE           		hope server (Samba, Ubuntu)
    		\\HOPE\mimosa         	Brother MFC-440CN
    		\\HOPE\print$         	Printer Drivers
    		\\HOPE\IPC$           	IPC Service (hope server (Samba, Ubuntu))
    MOONBASE
    	\\SLUG           		
    cli_start_connection: failed to connect to SLUG<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
    I could turn Windows sharing back on for CLIO if necessary.

    Thanks,
    G.
    It looks like HOPE has no shares defined and you can't connect to SLUG.

    I would run smbtree in debug mode. Post the output of this:
    Code:
    smbtree -d3
    -BAB1

  9. #9
    Join Date
    Sep 2008
    Location
    upstate NY
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Cannot mount windows share

    The output was huge. Here it is:

    Code:
    grace@hope:~$ smbtree -d3
    lp_load_ex: refreshing parameters
    Initialising global parameters
    rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
    params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
    Processing section "[global]"
    added interface eth0 ip=fe80::21f:1fff:fe14:5b5f%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
    added interface eth0 ip=192.168.1.64 bcast=192.168.1.255 netmask=255.255.255.0
    Enter grace's password: 
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name MOONBASE<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name MOONBASE<0x1d>
    Got a positive name query response from 192.168.1.77 ( 192.168.1.77 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to host=192.168.1.77
    Connecting to 192.168.1.77 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608b8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    SPNEGO login failed: Logon failure
    name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
    Got a positive name query response from 192.168.1.64 ( 192.168.1.64 )
    Got a positive name query response from 192.168.1.77 ( 192.168.1.77 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
    Got a positive name query response from 192.168.1.64 ( 192.168.1.64 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to host=192.168.1.64
    Connecting to 192.168.1.64 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    SPNEGO login failed: Logon failure
    WORKGROUP
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
    Got a positive name query response from 192.168.1.64 ( 192.168.1.64 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to host=192.168.1.64
    Connecting to 192.168.1.64 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    SPNEGO login failed: Logon failure
    	\\HOPE           		hope server (Samba, Ubuntu)
    Connecting to host=HOPE
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name HOPE<0x20>
    resolve_wins: Attempting wins lookup for name HOPE<0x20>
    resolve_wins: WINS server resolution selected and no WINS servers listed.
    resolve_hosts: Attempting host lookup for name HOPE<0x20>
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to 127.0.0.1 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608a8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    SPNEGO login failed: Logon failure
    		\\HOPE\mimosa         	Brother MFC-440CN
    		\\HOPE\print$         	Printer Drivers
    		\\HOPE\IPC$           	IPC Service (hope server (Samba, Ubuntu))
    MOONBASE
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name MOONBASE<0x1d>
    name_resolve_bcast: Attempting broadcast lookup for name MOONBASE<0x1d>
    Got a positive name query response from 192.168.1.77 ( 192.168.1.77 )
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to host=192.168.1.77
    Connecting to 192.168.1.77 at port 445
    Doing spnego session setup (blob length=58)
    got OID=1.3.6.1.4.1.311.2.2.10
    got principal=NONE
    Got challenge flags:
    Got NTLMSSP neg_flags=0x608b8215
    NTLMSSP: Set final flags:
    Got NTLMSSP neg_flags=0x60088215
    NTLMSSP Sign/Seal - Initialising with flags:
    Got NTLMSSP neg_flags=0x60088215
    SPNEGO login failed: Logon failure
    	\\SLUG           		
    Connecting to host=SLUG
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name SLUG<0x20>
    resolve_wins: Attempting wins lookup for name SLUG<0x20>
    resolve_wins: WINS server resolution selected and no WINS servers listed.
    resolve_hosts: Attempting host lookup for name SLUG<0x20>
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to 8.15.7.117 at port 445
    Connecting to 8.15.7.117 at port 139
    Error connecting to 8.15.7.117 (Connection refused)
    Connecting to 63.251.179.13 at port 445
    Connecting to 63.251.179.13 at port 139
    Error connecting to 63.251.179.13 (Connection refused)
    cli_start_connection: failed to connect to SLUG<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED
    	\\CLIO           		Clio
    Connecting to host=CLIO
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    resolve_lmhosts: Attempting lmhosts lookup for name CLIO<0x20>
    resolve_wins: Attempting wins lookup for name CLIO<0x20>
    resolve_wins: WINS server resolution selected and no WINS servers listed.
    resolve_hosts: Attempting host lookup for name CLIO<0x20>
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Permission denied
    Connecting to 8.15.7.117 at port 445
    Connecting to 8.15.7.117 at port 139
    Error connecting to 8.15.7.117 (Connection refused)
    Connecting to 63.251.179.13 at port 445
    Connecting to 63.251.179.13 at port 139
    Error connecting to 63.251.179.13 (Connection refused)
    cli_start_connection: failed to connect to CLIO<20> (0.0.0.0). Error NT_STATUS_CONNECTION_REFUSED

  10. #10
    Join Date
    Sep 2008
    Location
    upstate NY
    Beans
    47
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Cannot mount windows share

    Quote Originally Posted by bab1 View Post
    It looks like HOPE has no shares defined and you can't connect to SLUG.
    As to your first comment, yes, HOPE has no shares defined, but SLUG does... one named "ben" and one named "platypus". There may be another named "admin". My Mac is able to see them.

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •