Results 1 to 4 of 4

Thread: Samba never works out of a fresh boot

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Hong Kong
    Beans
    17
    Distro
    Xubuntu 11.04 Natty Narwhal

    Question Samba never works out of a fresh boot

    I am using Xubuntu Oneiric Ocelot 64-bit. I want to use Samba to share some directories to the Windows machines on my LAN.

    For some reason, Samba never works correctly out of a fresh boot. Every time I boot into Xubuntu, the smbd and nmbd services would be started automatically:
    Code:
    joe@SARAH:~$ status smbd
    smbd start/running, process 794
    joe@SARAH:~$ status nmbd
    nmbd start/running, process 1350
    But I would never be able to immediately access the Samba service from the Windows machines on my network, even though the Windows machines can already correctly resolve my Xubuntu machine's netbios name (which I have set in "/etc/samba/smb.conf").

    I would have to manually restart the smbd and nmbd services in order for the Windows machines to be able to use the Xubuntu machine's Samba service.

    Can someone help me fix this annoyance?
    "Engineers are not boring people; we just get excited over boring things."

  2. #2
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Samba never works out of a fresh boot

    It sounds like samba may be starting before the network is fully initialized and thus not working until a restart. There may be some interesting information in /var/log/samba/log.smbd.

    I would suggest trying to delay the startup of smbd by altering the /etc/init/smbd.conf file; specifically the "start on" line. Suggested alternatives to try are:
    Code:
    start on (local-filesystems and net-device-up IFACE!=lo)
    ...to match the contents of /etc/init/nmbd.conf, or:

    Code:
    start on (local-filesystems and net-device-up IFACE=eth0)
    ...replace eth0 with the name of your actual network interface, or even:

    Code:
    start on (local-filesystems and net-device-up IFACE=eth0 and started udev-finish)
    ...so that it waits until udev completes its magic.

  3. #3
    Join Date
    Dec 2012
    Beans
    1

    Re: Samba never works out of a fresh boot

    Just some quick feedback. The first piece of code above worked for me. Joined forum to give feedback - was wondering if these messages are monitored or the feedback should be given somewhere else. Took me a fair bit of time (my first samba install) to work out what was happening and find this post.

    As it seems to be a timing issue here are some details of my system:

    Xubuntu 12.10 server, standard install
    Force GT ssd 60GB SATA III for system disk
    Intel I3 2120T
    Motherboard Intel DH67CF
    8GB RAM
    2 x HDD Raid 1

    Hope this helps.

  4. #4
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Samba never works out of a fresh boot

    Thank you for the confirmation that the config change worked. It will be helpful for others who may be in the same situation.

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
  •