Results 1 to 10 of 36

Thread: mount error: could not resolve address for Diskstation: Unknown error

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Beans
    22

    Question mount error: could not resolve address for Diskstation: Unknown error

    Hi,

    I try to mount my NAS onto Ubuntu 12.04. This is my situation:
    Code:
    $ smbtree
    WORKGROUP
        \\PX-EH                  PX-EH
            \\PX-EH\lp                 
            \\PX-EH\ADMIN$             IPC Service (PX-EH)
            \\PX-EH\IPC$               IPC Service (PX-EH)
            \\PX-EH\Guest              
            \\PX-EH\disk               LAN disk
        \\DISKSTATION            
            \\DISKSTATION\IPC$               IPC Service ()
            \\DISKSTATION\home               home
            \\DISKSTATION\homes              user home
            \\DISKSTATION\NetBackup          System default shared folder
            \\DISKSTATION\Share              DiskStation 212
    Then I try this
    Code:
    $ sudo smbmount //Diskstation/home samba
    mount error: could not resolve address for Diskstation: Unknown error
    I even tried Diskstation with capitals and with non-capitals, but no success.
    When I do
    Code:
    $ nmblookup -R -U <<IP-address>> diskstation
    querying diskstation on  <<IP-address>>
     <<IP-address>> diskstation<00>
    It seems there are some non-printable odd characters behind 'diskstation'.

    With the PX-EH nas, I have the same problems, so it is not caused by the others side.

    I don't want to type an IP-address. I want to use names, that's what they're for.

    How can I mount my NAS with its name?
    And if I need to add the name to some hosts file, why can I browse the samba drives with Nautilus without such a hosts file?

  2. #2
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: mount error: could not resolve address for Diskstation: Unknown error

    Quote Originally Posted by ffonz View Post
    Hi,

    I try to mount my NAS onto Ubuntu 12.04. ...I try this
    Code:
    $ sudo smbmount //Diskstation/home samba
    mount error: could not resolve address for Diskstation: Unknown error
    Where are you attempting to mount //Diskstation/home to? The location samba seems incorrect.

    Code:
    $ nmblookup -R -U <<IP-address>> diskstation
    querying diskstation on  <<IP-address>>
     <<IP-address>> diskstation<00>
    It seems there are some non-printable odd characters behind 'diskstation'.
    These are part of the NETBIOS protocol. They identify the type of node (i.e server or master browser or client).
    With the PX-EH nas, I have the same problems, so it is not caused by the others side.

    How can I mount my NAS with its name?
    And if I need to add the name to some hosts file, why can I browse the samba drives with Nautilus without such a hosts file?
    I'll bet the mount command is incorrect. Where are you trying to mount //Diskstation/home to? What's the mount point?
    -BAB1

  3. #3
    Join Date
    Jan 2010
    Beans
    22

    Re: mount error: could not resolve address for Diskstation: Unknown error

    Hi bab1,

    'samba' is a directory in /mnt. So I try to be less ambiguous. Here is another attempt:
    Code:
    ~$ sudo smbmount //Diskstation/home /mnt/samba
    mount error: could not resolve address for Diskstation: Unknown error
    ~$ ls -l /mnt
    total 4
    drwxr-xr-x 2 root root 4096 Nov 12  2010 samba
    Does the samba directory have the correct permissions?

  4. #4
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: mount error: could not resolve address for Diskstation: Unknown error

    Quote Originally Posted by ffonz View Post
    Hi bab1,

    'samba' is a directory in /mnt. So I try to be less ambiguous. Here is another attempt:
    Code:
    ~$ sudo smbmount //Diskstation/home /mnt/samba
    mount error: could not resolve address for Diskstation: Unknown error
    ~$ ls -l /mnt
    total 4
    drwxr-xr-x 2 root root 4096 Nov 12  2010 samba
    Does the samba directory have the correct permissions?
    The directory permissions are not a problem for mounting the share. You are having a problem resolving the name. What do you get with this command
    Code:
    smbclient -L diskstation
    The COMPUTER name is case insensitive so caps are not needed at the CLI on Ubuntu.
    -BAB1

  5. #5
    Join Date
    Jan 2010
    Beans
    22

    Re: mount error: could not resolve address for Diskstation: Unknown error

    Hi bab1,

    This is the result:
    Code:
    ~$ smbclient -L diskstation
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.2.8]
    
        Sharename       Type      Comment
        ---------       ----      -------
        Share           Disk      DiskStation 212
        NetBackup       Disk      System default shared folder
        homes           Disk      user home
        home            Disk      home
        IPC$            IPC       IPC Service ()
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.2.8]
    
        Server               Comment
        ---------            -------
        PX-EH                PX-EH
        DISKSTATION          
    
        Workgroup            Master
        ---------            -------
        WORKGROUP            PX-EH

  6. #6
    Join Date
    May 2008
    Location
    SoCal
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: mount error: could not resolve address for Diskstation: Unknown error

    Quote Originally Posted by ffonz View Post
    Hi bab1,

    This is the result:
    Code:
    ~$ smbclient -L diskstation
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.2.8]
    
        Sharename       Type      Comment
        ---------       ----      -------
        Share           Disk      DiskStation 212
        NetBackup       Disk      System default shared folder
        homes           Disk      user home
        home            Disk      home
        IPC$            IPC       IPC Service ()
    Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.2.8]
    
        Server               Comment
        ---------            -------
        PX-EH                PX-EH
        DISKSTATION          
    
        Workgroup            Master
        ---------            -------
        WORKGROUP            PX-EH
    This shows that the name is being resolved correctly. I'll bet you need to use a more current mount command. The command smbmount is part of the deprecated smbfs package. The newer package CIFS-UTIL will work better. The basic command is something like
    Code:
    mount -t cifs //SERVER/share /path/to/mountpoint -o options
    
    or 
    
    mount.cifs //SERVER/share /path/to/mountpoint -o options
    See here and .here for info.
    -BAB1

  7. #7
    Join Date
    Sep 2009
    Beans
    6

    Re: mount error: could not resolve address for Diskstation: Unknown error

    I've lost a lot of time to make ubuntu (kubuntu) cifs working with android's samba file sharing.
    It works great with Krusader, but not with cifs.utils. Forum does help, but not in one place.
    So I've put it all together here. Maybe it will be useful for someone else.

    My errors messages was:
    mount error: could not resolve address for SGN3: Unknown error
    cifs_mount failed w/return code = -5
    cifs_mount failed w/return code = -111
    cifs_mount failed w/return code = -112


    I've fixed it with this changes:

    1. /etc/samba/smb.conf:
    name resolve order = bcast

    2. /etc/nsswitch.conf
    hosts: files wins dns

    3. /etc/fstab
    //SGN3/sdcard /home/sergey/pda cifs username=sergey,uid=sergey,user,sec=ntlmv2 0 0

    And now it works as expected:
    (ku:~)$ mount pda
    Password for sergey@//SGN3/sdcard:
    (ku:~)$ umount pda

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
  •