Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: No smb connection after upgrade

  1. #1
    Join Date
    Apr 2005
    Location
    Wattle Glen, Australia
    Beans
    14

    No smb connection after upgrade

    Hi,
    I updated from Ubuntu 8.04 to 8.10. Since then I have had problems connecting to my share server.

    I know it is not my mount statement that is the problem. I use the same set up on a couple other machines but they were fresh installs. I also have a couple still running 8.04 until I can solve this problem.

    Once logged into my desktop I can open a terminal and mount the share drive with no problems.

    I don't know why fstab does not mount it on start up. I cannot find any errors in the logs. I think maybe the start up scripts might be faulty. But the rc3.d directory looks the same as the fresh install. And I don't have the skills to compare init.d with the fresh install init.d directory.

    fstab has this entry
    //192.168.1.6/share /media/share cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77,noperm 0 0

    If I open a terminal and write
    sudo mount /media/share
    It mounts ok

    After mounting mtab shows
    //192.168.1.6/share /media/share cifs rw,mand 0 0

    Any ideas?

  2. #2
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No smb connection after upgrade

    try adding

    mount /media/mount

    to /etc/rc.local before exit 0

  3. #3
    Join Date
    Apr 2005
    Location
    Wattle Glen, Australia
    Beans
    14

    Re: No smb connection after upgrade

    Thanks Dmizer, but it still did not mount.
    I am getting a kernel error though

    CIFS VFS: Error connecting to socket. Aborting operation
    CIFS VFS: cifs_mount failed w/return code = -101

    which I was not getting earlier.

  4. #4
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No smb connection after upgrade

    Try using the server's netbios name instead of IP address.

    Edit /etc/nsswitch.conf and find the line that looks something like this:
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    Add "wins" to the line in front of dns (order is important), so the line looks like this:
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4
    Then install winbind:
    Code:
    sudo aptitude install winbind
    Reboot and see if that helps.

  5. #5
    Join Date
    Sep 2006
    Beans
    818

    Re: No smb connection after upgrade

    Quote Originally Posted by dmizer View Post
    Try using the server's netbios name instead of IP address.

    Edit /etc/nsswitch.conf and find the line that looks something like this:
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    Add "wins" to the line in front of dns (order is important), so the line looks like this:
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] wins dns mdns4
    Then install winbind:
    Code:
    sudo aptitude install winbind
    Reboot and see if that helps.


    Hmmm, my 8.04 is working to mount Samba shares, but when I added this it broke. I got the desktop icon when I mounted the share using "Places" menu, but got a "no viewer" error when I tried to see the files.

    Removing Winbind package and deleting the wins entry from nsswitch.conf file restored my Samba ability.

    What I can't figure out is I can only access the share via gnome tools or menus. Other things like Thunderbird attachments or command lines cannot access the share, if its mounted I've no idea where!

    --wally.
    Your commitment to Freedom is measured by your tolerence for others doing things you disapprove.

  6. #6
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No smb connection after upgrade

    Quote Originally Posted by wkulecz View Post
    Hmmm, my 8.04 is working to mount Samba shares, but when I added this it broke. I got the desktop icon when I mounted the share using "Places" menu, but got a "no viewer" error when I tried to see the files.

    Removing Winbind package and deleting the wins entry from nsswitch.conf file restored my Samba ability.

    What I can't figure out is I can only access the share via gnome tools or menus. Other things like Thunderbird attachments or command lines cannot access the share, if its mounted I've no idea where!

    --wally.
    Hi wally.

    Your problem is different than the OP. You can solve your problem by following the directions in the second link in my sig.

  7. #7
    Join Date
    Sep 2006
    Beans
    818

    Re: No smb connection after upgrade

    I'm not willing ot try anything if it breaks the Gnome access! That is 99% of what my wife uses and if its broke, I'm done!

    What I'm warning about, is your modification to nsswitch.conf and installation of winbind package does indeed let things like "ping windowshost" work now, but on my 8.04 system it breaks Gnome file sharing!

    Reversing the mod, cures the issue, no reboot required!

    --wally.
    Your commitment to Freedom is measured by your tolerence for others doing things you disapprove.

  8. #8
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No smb connection after upgrade

    Quote Originally Posted by wkulecz View Post
    Reversing the mod, cures the issue, no reboot required!
    It doesn't cure this issue:
    What I can't figure out is I can only access the share via gnome tools or menus. Other things like Thunderbird attachments or command lines cannot access the share ...
    As I said before, your problem is not the same as the OP.

  9. #9
    Join Date
    Apr 2005
    Location
    Wattle Glen, Australia
    Beans
    14

    Re: No smb connection after upgrade

    Quote Originally Posted by dmizer View Post

    Then install winbind:

    Reboot and see if that helps.
    Hi Dmizer,
    I already had winbind in the system.

    I changed the fstab to
    //darkstar6/share /media/share cifs guest,rw,iocharset=utf8,file_mode=0777,dir_mode=07 77,noperm 0 0

    I changed rc.local to
    mount /media/share

    and it still did not work

    I still got the error
    CIFS VFS: Error connecting to socket. Aborting operation
    CIFS VFS: cifs_mount failed w/return code = -101

    It still works if I open a terminal and
    sudo mount /media/share

    So using the netbios name made no difference.

    It seems like it is trying to mount before the network is up.

    I presume all the networking and mounting starts in /etc/rcS.d
    In /etc/rcS.d it shows

    S35mountall.sh
    S40networking

    The computers with a clean install also show the same. I presume the mounting of network drive waits until the network is up. How does it do that?

  10. #10
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: No smb connection after upgrade

    Edit /etc/network/interfaces and remove all the settings except loopback. When you are done, it should look like this:
    Code:
    auto lo
    iface lo inet loopback
    Reboot and see if your share is mounted then.

    If that doesn't work, all I have left to suggest then is to install network-manager-gnome, remove network-manager, and configure your network via system > administration > network (just as you did in Hardy)

    if you're using wireless, you may be successful with wicd.
    Last edited by dmizer; April 16th, 2009 at 04:45 PM.

Page 1 of 2 12 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
  •