Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007

    Can't Auto Mount Samba via name only IP

    Hi All,

    I have a system that I want to auto mount a samba from another one. The issue is that they are both laptops so doing it by name is much much better than by ip. Unfortunately when I try to mount by name with this in my samba:

    //joel-studio1737/music/ /media/networked cifs username=someone,password=yeahright 0 0

    it fails saying it can't find the location but if I mount it like this:

    // /media/networked cifs username=againsomeone,password=maybemaybenot 0 0

    it works fine. The ip obviously is going to change depending on what network the two systems are on. Any ideas??
    Bodhi 1.3 & Bodhi 1.4 using E17
    Dell Studio 17, Intel Graphics card, 4 gigs of RAM, E17

    "The beauty in life can only be found by moving past the materialism which defines human nature and into the higher realm of thought and knowledge"

  2. #2
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    the hills
    In the smb.conf file there is a line starting with

    name resolve order =

    make sure that the first entry is bcast

    It will use broadcast to do name resolution before
    attempting dns or other methods. Probably your only
    hope with laptops and IP addresses that change a lot.

Posting Permissions

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