Announcement

Collapse
No announcement yet.

I can't mount SAMBA network drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] I can't mount SAMBA network drive

    Hi,
    I have a network drive that I can not mount.
    This network unit is a hard drive connected to my router, configured to be shared, which I can access from my smart tv without any problem, through ftp without any problem and through dolphin (smb: //192.168.0.1 ) also without any problem.
    My idea is to mount it as a network unit, so first I want to test through the command line, and once mounted successfully, add it to the fstab so that it mounts every time I start the computer, as a unit.
    I have tried many things, I have been trying different ways for 10 or 15 days, and none of them works for me.
    I do not remember all the commands I've tried, I put the ones I've tried most recently (they're in memory of konsole).

    Code:
    [FONT=monospace]sudo mount -t smb://192.168.0.1/folder1/ /media/hd_externo -o user=admin [/FONT]
    [FONT=monospace]mount: /media/hd_externo: tipo de sistema de ficheros 'smb://192.168.0.1/folder1/' desconocido.[/FONT]

    In that command I put the user admin (is protected by username and password) should ask for the password of the user admin, it does not.
    What it indicates is indicated in Spanish, my language, but what it means or what it says is: type of unknown file system.

    Code:
    [FONT=monospace]sudo mount -t cifs smb://192.168.0.1/folder1/ /media/hd_externo -o user=admin     
    Mounting cifs URL not implemented yet. Attempt to mount smb://192.168.0.1/folder1/ [/FONT]


    Code:
    [FONT=monospace]sudo mount -t cifs //192.168.0.1/folder1/ /media/hd_externo -o user=admin     
    Password for admin@//192.168.0.1/folder1/:  ***********
    mount error(112): Host is down
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    [/FONT][FONT=monospace][/FONT]

    In the latter it says Host is down, it is not true, at that very moment, I access via dolphin and ftp and it is not down.

    I have tried many more, that I can look for them.
    But nothing has given me results, and ideas run out ...

    Thanks in advance!!

    #2
    Your format is wrong in all three examples.

    Start with this:

    smbclient -L 192.168.0.1 -U admin

    This will list the shared folders.

    Then try this to mount, assuming "folder1" is in the list;

    mount -t cifs -o username=admin,password=<your_password>,user //192.168.0.1/folder1 /media/hd_externo


    The fstab entry would look like;

    //192.168.0.1/folder1 /mnt/<somewhere> cifs auto,users,vers=2.0,username=admin,password=<your_ password> 0 0

    If you'd rather not put your password in fstab, you can create a credentials file and use it.
    Last edited by oshunluvr; Mar 07, 2019, 11:52 AM.

    Please Read Me

    Comment


      #3
      Only one doubt before made this steps.
      In the password area, its indicate like this =<your_password>, my doubt, its necesary the password between <>?

      Thanks and regards!

      Comment


        #4
        No, just the password.

        Please Read Me

        Comment


          #5
          Ok thank you!
          In a few minutes I made this steps and post results.
          Again, thanks!

          Comment


            #6
            Sorry for the delay, yesterday, for a problem, I was need out of my house.

            Now I made this steps, and continue with the fail:

            Code:
            smbclient -L 192.168.0.1 -U admin 
            WARNING: The "syslog" option is deprecated 
            Enter WORKGROUP\admin's password:  
            
                 Sharename       Type      Comment 
                 ---------       ----      ------- 
                 dades           Disk       
                 foro            Disk       
                 skytime         Disk       
                 backup_pc       Disk       
                 folder1         Disk       
                 IPC$            IPC       IPC Service (TP-LINK_46A81E) 
                 ADMIN$          IPC       IPC Service (TP-LINK_46A81E) 
            Reconnecting with SMB1 for workgroup listing. 
            
                 Server               Comment 
                 ---------            ------- 
            
                 Workgroup            Master 
                 ---------            -------
            Indicate that, in:
            Enter WORKGROUP\admin's password:
            I type de password of user admin (of my shared unit)

            And then:
            Code:
            sudo mount -t cifs -o username=admin,password=mypass,user //192.168.0.1/folder1 /media/hd_externo
            mount error(112): Host is down
            Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
            Same result...

            Regards.
            Last edited by wonder; Mar 08, 2019, 02:55 AM.

            Comment


              #7
              Sounds like a version mismatch. Try

              sudo mount -t cifs -o username=admin,password=mypass,vers=1.0,user //192.168.0.1/folder1 /media/hd_externo


              or

              sudo mount -t cifs -o username=admin,password=mypass,vers=2.0,user //192.168.0.1/folder1 /media/hd_externo

              Please Read Me

              Comment


                #8
                I assume you're using your actual username and password for the server.

                Please Read Me

                Comment


                  #9
                  Originally posted by oshunluvr View Post
                  I assume you're using your actual username and password for the server.
                  Yes, I using my actual username and password of the server (not of the my computer)

                  Originally posted by oshunluvr View Post
                  Sounds like a version mismatch. Try

                  sudo mount -t cifs -o username=admin,password=mypass,vers=1.0,user //192.168.0.1/folder1 /media/hd_externo

                  or

                  sudo mount -t cifs -o username=admin,password=mypass,vers=2.0,user //192.168.0.1/folder1 /media/hd_externo
                  Hum...
                  This work!!
                  The first line, the line with vers=1.0
                  Work fine!!!

                  But then I want try with vers=2.0
                  I umount, and then, try to mount with the line with vers=2.0
                  I have a initial error.

                  After this, again, I try with first line (vers=1.0) and then, I can't, I have this same error:
                  Code:
                  [FONT=monospace]sudo mount -t cifs -o username=admin,password=mypass,vers=1.0,user //192.168.0.1/folder1 /me
                  dia/hd_externo
                  mount error(13): Permission denied
                  Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)[/FONT]


                  The /media/hd_externo/ have a chmod 777.

                  Now, this its very strange for me...

                  Thanks and regards!

                  Comment


                    #10
                    If your samba server is running version 1, you have to mount using version 1. Version 2 will not work.

                    Odd that it worked the first time and not the second. Permission errors could mean you've got security enabled on the server and you're not mounting with the correct option.

                    Security options;
                    none - attempt to connection as a null user (no name)
                    krb5 - Use Kerberos version 5 authentication
                    krb5i - Use Kerberos authentication and forcibly enable packet signing
                    ntlm - Use NTLM password hashing
                    ntlmi - Use NTLM password hashing and force packet signing
                    ntlmv2 - Use NTLMv2 password hashing
                    ntlmv2i - Use NTLMv2 password hashing and force packet signing
                    ntlmssp - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP message
                    ntlmsspi - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP message, and force packet signing

                    You would have to know which to use and put it in the mount command with sec= like this:

                    sudo mount -t cifs -o username=admin,password=mypass,vers=1.0,sec=krb5,user //192.168.0.1/folder1 /media/hd_externo

                    Please Read Me

                    Comment


                      #11
                      Originally posted by oshunluvr View Post
                      I...
                      You would have to know which to use and put it in the mount command with sec= like this:

                      sudo mount -t cifs -o username=admin,password=mypass,vers=1.0,sec=krb5,user //192.168.0.1/folder1 /media/hd_externo
                      I don't know how identify this, what value I need insert in sec=...

                      I made a test, I deleted the /media/hd_externo
                      I create /media/externo

                      Then, I type:

                      sudo mount -t cifs -o username=admin,password=mypass,vers=1.0,user //192.168.0.1/folder1 /media/externo

                      Work perfect!!!

                      In this last operations, I don't restart computer.

                      In this moment, I don't umount, if you wan I can umount and re mount...

                      Well, I can wait...I made this

                      I umount, and then, I mount again, now, any problem, all fine!!!

                      I think that, when try with vers=2.0 some made some conflict or similar, I don't know...

                      You want we search the cause?

                      Also, now I view work fine with this command, in fstab its like this:

                      //192.168.0.1/folder1 /mnt/media/externo cifs auto,users,vers=1.0,username=admin,password=<your_ password> 0 0 ?

                      In other doubt, fot fstab, I need create first /media/externo or in the system process start create this folder?
                      Question this because, in my fstab I have 2 local hard disks mounted, and I don't remember that I was need first create /media/onefolder and /media/otherfolder for this two mounted hard disks in fstab.

                      Again, thank you very much!

                      Comment


                        #12
                        Great. Glad we got it worked out.

                        Please Read Me

                        Comment


                          #13
                          Originally posted by oshunluvr View Post
                          Great. Glad we got it worked out.
                          Thanks at you for your attention and help!!!

                          You can confirm this steps?:
                          fstab with this line?
                          //192.168.0.1/folder1 /mnt/media/externo cifs auto,users,vers=1.0,username=admin,password=<your_ password> 0 0

                          And its necessary made with: sudo mkdir /media/externo before insert the line in fstab?

                          Again, thank you very much!

                          Comment


                            #14
                            Yes, that all looks good.

                            Please Read Me

                            Comment


                              #15
                              Originally posted by oshunluvr View Post
                              Yes, that all looks good.
                              Again, thanks.

                              Only one doubt more:
                              In your line for add to fstab is like this the desintation mount point:
                              /mnt/media/externo
                              Always I mount my devices in /media/xxx
                              You add before/mnt/

                              Some difference?

                              It's just to learn.

                              Again, thank you very much!

                              Comment

                              Working...
                              X