Home>

I tried to mount various servers by connecting to an internal network on an Ubuntu machine, but it didn't work.

#
sudo mount -t cifs -o username = XXXX, password = XXXXXXXX // SERVER/mnt/mount
#This is not good
sudo mount -t cifs -o uid = XXXX, gid = XXXX, username = XXXX, password = XXXXXXXX // SERVER/mnt/mount
#This is not good
sudo mount -t cifs -o username = XXXX, domain = XXXXXX, password = XXXXXXXX // SERVER/mnt/mount
#Error message (both are the same)
mount error (2): No such file or directory
Refer to the mount.cifs (8) manual page (e.g.man mount.cifs)

The Ubuntu version is 18.04.3 LTS.
Previously, Ubuntu (Ver14) on VirtulBOX was able to mount with the above command (first), but it appears when the directory is not found as above.

However, if you connect to the server on the GUI, you can access the above.
It does not seem that the address or authentication information is wrong.

Please tell me.

  • Answer # 1

    I just worked on mounting Windows 2008, 2016 with Centos7 at work a while ago, but I can't write it specifically because I don't remember it ... I think the options have changed depending on whether it is a group or Windows Update.

    You may want to try different mount options here.

    ◆ Change how to specify username, domain and password

    username = USERNAME, password = PASSWORD, domain = DOMAIN

    username = DOMAIN/USERNAME, password = PASSWORD

    username = DOMAIN/USERNAME% PASSWORD

    ◆ Change the protocol version

    vers = 1.0

    vers = 2.0

    vers = 3.0

    ◆ Change security mode

    sec = none

    sec = krb5

    sec = krb5i

    sec = ntlm

    sec = ntlmi

    sec = ntlmv2

    sec = ntlmv2i

    sec = ntlmssp

    sec = ntlmsspi

    After waiting for restart with Windows Update, it may not be possible to connect, so you may want to check the status of Windows Update on the server side.

    I feel like I couldn't connect to a 2016 server that has never been updated to Windows.

  • Answer # 2

      

    /SERVER and // SERRVER/SHARENAME are both being tried.

    In

    , is SHARENAME wrong?

    If smbclinet is installed,

    smbclinet -U username -L // server name


    You can display the share name list. First, check with Linux.