Hot answers tagged samba
The problem must be that at boot time your network isn't available yet, and it's the reason why it mounts after boot. You must use another mechanisms to mount the device, like upstart. Example using upstart: # mount CIFS share start on (local-filesystems and net-device-up IFACE!=lo) stop on runlevel [!2345] pre-start script /bin/mount /mnt/mediaDrive ...
Be careful, if you have several network cards, samba may not even try to start (no trace of smbd in sys.log) because it waits for the wrong network interface to be up. check ifconfig to find which interface you want to use. Then check in /etc/samba/smb.conf that samba is using the correct interface Then check in /etc/config/smbd.conf that the correct ...
I had the same issue. Changing the location of wins in nslookup.conf did not work, or possibly only got me part of the way there. Install the package libnss-winbind to be able to find windows computers by hostname. I tested it with and without the package installed, and it is indeed necessary for resolving any windows hostname.
As noted by Braiam, at the time rc.local is run there is no network available for some reason. This was the original reason I moved to the noauto + rc.local approach. So, although I'm not quite sure why, this approach is faulty. In my case, a simple _netdev (instead of noauto) in /etc/fstab did the trick. Note that in my case, I had several dozen bind ...
Only top voted, non community-wiki answers of a minimum length are eligible