Mount error 112 host is down centos 7

I'm trying to mount a USB drive plugged on my Technicolor router. I have the following line in my /etc/fstab: //192.168.1.1/usbdisk /media/public cifs guest,vers=3.0 0 0 After trying resolving the

I’m trying to mount a USB drive plugged on my Technicolor router.

I have the following line in my /etc/fstab:

//192.168.1.1/usbdisk /media/public cifs guest,vers=3.0 0 0

After trying resolving the issue with diffrerent instructions found from the net I have tried specifying different versions, vers=2.0, vers=2.1, but none of these have resolved the issue.

If I test with smbclient, I get the following:

sudo mount.cifs //192.168.1.1/usbdisk /media/public -o username=myuser,vers=2.0
Password for myuser@//192.168.1.1/usbdisk:  *********
mount error(112): Host is down

Same happens with no user specified, and also with various vers= definitions.

I’m running Ubuntu 15.10.
Any ideas?

asked Aug 15, 2017 at 16:55

Ossi Viljakainen's user avatar

2

You can disable the entry in /etc/fstab and issue the following command

mount -t cifs //192.168.1.1/usbdisk /media/public -o guest,vers=3.0

and at the same time play around with different options (behind -o). If you need feedback from you system, you might open a second terminal windows and type journalctl -fb to watch how the kernel reacts on your options given.

I explain all this because your real issue might be different with cifs than it was in my case.

I had the problem that the device offering SMB wants ver=1.0. While Ubuntu 17.04 didn’t have any problems with the version (auto), the 17.10 and its kernel demands to indicate the number, as my Kernel logs shows:

Okt 25 09:06:08 gespc kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB3 (vers=3.0), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 specify vers=1.0 on mount. For somewhat newer servers such as Windows 7 try vers=2.1.

My Good luck!

Olorin's user avatar

Olorin

3,39815 silver badges28 bronze badges

answered Oct 25, 2017 at 7:17

Gerhard Stein's user avatar

3

YES !

Had this problems for months too, solved with adding vers=1.0 in the options:

//xxx.xxx.xxx.xxx/disk /media/foldername cifs rw,credentials=/etc/samba/credentials,uid=1000,gid=1000,file_mode=0660,dir_mode=0770,iocharset=utf8,vers=1.0 0 0

Thanks Gerhard!

GR

answered Apr 12, 2018 at 2:02

mchrgr2000's user avatar

mchrgr2000mchrgr2000

811 silver badge3 bronze badges

1

Содержание

  1. CentOS
  2. [Solved] Can no longer mount cifs — mount error(112)
  3. [Solved] Can no longer mount cifs — mount error(112)
  4. Re: Can no longer mount cifs — mount error(112)
  5. Re: Can no longer mount cifs — mount error(112)
  6. Re: Can no longer mount cifs — mount error(112)
  7. mount.cifs: mount error(112): Host is down
  8. 4 Answers 4
  9. Related
  10. Hot Network Questions
  11. Subscribe to RSS
  12. Как в Linux монтировать шару CIFS
  13. Подготовка
  14. Установка пакетов
  15. Сетевые порты
  16. Синтаксис
  17. Ручное монтирование
  18. Автоматическое монтирование CIFS через fstab
  19. Примеры использования опций
  20. Версии SMB
  21. Монтирование от гостевой учетной записи
  22. Права на примонтированные каталоги
  23. Mount CIFS Host is down
  24. 15 Answers 15

CentOS

The Community ENTerprise Operating System

[Solved] Can no longer mount cifs — mount error(112)

[Solved] Can no longer mount cifs — mount error(112)

Post by kbrown » 2014/07/07 15:55:44

I am running CentOS 6.4 (Final). Up until July 4, 2014 I have successfully been mounting Windows Shares from a Windows Server 2012 R2 Standard with the following command:

mount -t cifs //Server-IP-Address/Share-Name -o username=name, password=password /winmount/Share-Name

On the evening of July 3, 2014 I did a number of Microsoft Windows updates on the Windows Server. After these Windows updates the mount command no longer works and I get this error:

mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The host (the Windows Server at the specified Server-IP-Address) in NOT down, it is UP. All the Windows 7 and Macintosh OSX clients CAN access the very same Share-Name without any problems, as has always been the case.

It appears that these Microsoft Windows Updates have altered something very critical that now prevents mounting the Windows Shares from mounting.

This is all internal to our network and there are no firewalls running on or between the CentOS and Windows boxes.

Any pointers, tips, or tricks to help me troubleshoot this would be most helpful.

Re: Can no longer mount cifs — mount error(112)

Post by drk » 2014/07/08 02:27:52

Re: Can no longer mount cifs — mount error(112)

Post by Whoever » 2014/07/08 04:54:32

kbrown wrote: Hello experts,

I am running CentOS 6.4 (Final). Up until July 4, 2014 I have successfully been mounting Windows Shares from a Windows Server 2012 R2 Standard with the following command:

mount -t cifs //Server-IP-Address/Share-Name -o username=name, password=password /winmount/Share-Name

On the evening of July 3, 2014 I did a number of Microsoft Windows updates on the Windows Server. After these Windows updates the mount command no longer works and I get this error:

mount error(112): Host is down

Are you sure that the Windows Server has the same IP address as before?

Re: Can no longer mount cifs — mount error(112)

Post by kbrown » 2014/07/08 15:24:03

Thank you «drk» and Whoever»,

Recall that the problem occurred immediately AFTER the Windows Updates I did on the evening of July 3. Prior to that the last Windows Update was on February 28.

Let me assure you that NOTHING has changed on the CentOS side — a cron job issues the mount command (repeated manually by me as needed) and so the IP address of the Windows Server has not changed and is correct — nor on our network for that matter. Typos do happen, but not in this case.

It is a bit heavy handed (IMHO) to consider upgrading the entire CentOS to 6.5 (or something higher) on this production machine. I would rather find the actual cause/solution than pin my hopes on thinking that a full OS upgrade might possibly solve the problem when in fact it might not and could introduce other unexpected changes, not to mention the time involved.

Let me mention that we have a Xerox WorkCentre 7435 that also uses SMB to save incoming faxes and scans to Windows Shares on the same Windows Server 2012 R2 Standard. Immediately after the said Windows Updates this system too is unable to speak to the Windows Shares and can no longer save faxes or scans.

I believe this has something to do with MS changing some aspect of SMB protocols. Searching MS site is like looking for a needle in a haystack, but I just stumbled upon MS KB2896636 http://support.microsoft.com/kb/2896636 which is titled «You cannot use certain third-party devices to send a document to a shared folder in Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2» and under Symptoms says:

Consider the following scenario:

— You connect a third-party device, such as a multifunction printer, to a computer that is running Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2.
— The third-party device is configured to use a deprecated dialect of the Server Message Block version 1 (SMBv1) protocol to transfer files.
— You create a shared folder on the computer. The device has read and write access to the shared folder.
— You try to send a document to the shared folder by using the device.

In this scenario, you cannot send the document to the shared folder. Therefore, no file is created in the shared folder. says

I think the problem I am experiencing has to do with versions/changes to how Microsoft implements SMB.

Источник

mount.cifs: mount error(112): Host is down

I am trying to mount a windows samba share on CentOS and RHEL 6 machines, but gives following error.

]# mount.cifs //example.com/Linux_Support /mnt -o credentials=/root/cifsauth,noserverino,vers=3.0

mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Messages logs has this error:

CIFS VFS: cifs_mount failed w/return code = -112

The same above command works in rhel7 and centos7. Any clue on how to make this work?

4 Answers 4

I found this link here which says SMB 2 and 3 is not supported for rhel and Centos 6. It can only mount SMB1. From Centos and rhel 7 this is supported.

I solved this problem by forcing version 1 of the smb protocol.
In my fstab this is done like this:

By default, the system certainly use SMB2 or 3, and it doesn’t work with my box. In fact it depends on your NAS. You have to give the good version depending on the SMB server.

First check the accessibility of your windows host in generally under centos6. If that is given then proceed.

At them moment, I dont have a test-setup to reproduce.I can only imagine. So maybe the default firewall-settings on your centos6 differs from the centos7 default firewall-settings. Did you try to mount with firewall switched off on your centos host? And what about SELinux? Maybe it has it fingers in it too.

My issue has been resolved by adding the ip address and hostname of windows server in /etc/hosts file in linux. then creating user in windows server with password. shared the folder with created user. created the file in /.smbcredentials adding following 2 lines

try to ping the windows machine with hostname it should ping. otherwise change windows firewall settings. now finally add the entry in fstab as below.

save the file and exit now run mount -av command you should get mounted successfully.

Hot Network Questions

To subscribe to this RSS feed, copy and paste this URL into your RSS reader.

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.1.14.43159

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

Как в Linux монтировать шару CIFS

Что такое Linux и CIFS простыми словами.

Работа с общими папками Windows происходит с использованием протокола CIFS (SMB). Все примеры в данном руководстве выполняются на Linux Ubuntu и CentOS.

Подготовка

Установка пакетов

Для монтирования общей папки необходимо установить набор утилит для работы с CIFS.

yum install cifs-utils

apt-get install cifs-utils

Сетевые порты

Если мы будем монтировать сетевую папку, сервер которой находится за брандмауэром, необходимо открыть следующие порты:

Синтаксис

* вместо mount.cifs можно написать mount -t cifs.

mount.cifs //192.168.1.1/public /mnt

* простой пример монтирования папки public на сервере 192.168.1.1 в локальный каталог /mnt.

Ручное монтирование

Теперь монтирование можно выполнить следующей командой:

mount.cifs //192.168.1.10/share /mnt -o user=dmosk

* в данном примере будет примонтирован каталог share на сервере 192.168.1.10 в локальную папку /mnt под учетной записью dmosk.

То же самое, с использованием домена:

mount.cifs //192.168.1.10/share /mnt -o user=dmosk,domain=dmosk.local

Автоматическое монтирование CIFS через fstab

Для начала создаем файл, в котором будем хранить данные авторизации при подключении к общей папке:

И добавляем в него данные следующего вида:

username=dmosk
password=dPassw0rd
domain=dmosk.local

* в этом примере создана пара логин/пароль — dmosk/dPassw0rd; domain указывать не обязательно, если аутентификация выполняется без него.

Теперь открываем конфигурационный файл fstab:

и добавляем в него следующее:

//192.168.1.10/share /mnt cifs user,rw,credentials=/root/.smbclient 0 0

* в данном примере выполняется монтирование общей папки share на сервере с IP-адресом 192.168.1.10 в каталог /mnt. Параметры для подключения — user: позволяет выполнить монтирование любому пользователю, rw: с правом на чтение и запись, credentials: файл, который мы создали на предыдущем шаге.

Чтобы проверить правильность настроек, вводим следующую команду:

Примеры использования опций

Версии SMB

Если на стороне Windows используется старая или слишком новая версия протокола SMB, при попытке монтирования мы можем получить ошибку mount error(112): Host is down. Чтобы это исправить, указываем версию:

mount.cifs //192.168.1.10/share /mnt/ -o vers=1.0

* монтирование по протоколу SMB1.0

Монтирование от гостевой учетной записи

Если сервер принимает запросы без логина и пароля, то клиент подключается, как гость:

mount.cifs //192.168.1.10/share /mnt -o guest

//192.168.1.10/share /mnt cifs guest 0 0

Права на примонтированные каталоги

При монтировании папки мы можем указать определенные права:

mount.cifs //192.168.1.10/share /mnt -o file_mode=0777,dir_mode=0777

Для указания владельца, который будет назначен для примонтированного каталога, используем:

mount.cifs //192.168.1.10/share /mnt -o uid=33,gid=33

* чтобы посмотреть идентификаторы пользователя, вводим id -u и id -g .

Источник

Mount CIFS Host is down

I have an issue with a mount point that was previously configured. It shows the folder, but the mount is missing and holds «?» values for size, permissions, etc.

So I tried to remount using cifs and the same command from before:

But I get the error:

If I ping the domain or IP I get a proper resolution and I also connected using smbclient without issue

I looked around, but cant find a solid answer. Any thoughts?

15 Answers 15

This could also be because of a protocol mismatch. In 2017 Microsoft patched Windows Servers and advised to disable the SMB1 protocol.

From now on, mount.cifs might have problems with the protocol negotiation.

The error displayed is «Host is down.», but when you do debug with:

you will get the error:

To overcome this use mount or smbclient with a protocol specified.

for smbclient: add -m SMB2 (or SMB3 for the newer version of the protocol)

or for mount: add vers=2.0 (or vers=3.0 if you want to use version 3 of the protocol)

,iocharset=utf8,sec=ntlm,vers=1.0 0 0

On archlinux after a recent package update, I had to add vers=1.0 to my mount options. I’m connecting to an old centos 5 box and up until yesterday I could connect without explicitly stating a version number.

CIFS in linux kernel 4.13 now defaults to SMB 3.0 and in kernel 4.14 it tries 2.1 and higher. See this change log.

USB-stick at Fritz NAS showed «Host Down» for Ubuntu 17.10:

Defining the version ( vers=1.0 ) worked — here’s the full string:

Similar problem after upgrade to ubuntu 17.10, with an old Buffalo Diskstation. Solved by adding in /etc/fstab the «vers=1.0» option:

//myWDhostname/partage /media/Partage cifs guest,vers=1.0 0 0

Sorry if this is a late response (I realise it’s an old thread), however I have just discovered there is another possible reason why mount.cifs would say the host is down.

I have an antivirus with a firewall and even though I set it explicitly to allow «windows file and print sharing» — a predefined rule, it was still blocking connections. I had that proven by disabling the firewall temporarily. Hope this helps someone, host is down might not mean it’s not responding to pings, but could mean it’s not responding to authentication attempts.

I received the same error without further ado from a new Samba client, when trying to mount a CIFS SMB network share:

Eventually, it turned out I had previously restricted SMB server access to only a limited number of IP addresses by configuring /etc/samba/smb.conf :

Adding the fixed IP address of the new SMB client solved the issue in this specific case.

Of course, there is a myriad of other reasons why one may receive above-mentioned error.

Same trouble connecting to Synology DiskStation (DSM 4.3).

Using vers=1.0 in the mount options works fine.

Additionally I had to use the option «noperm» because all files wrongly showed as not readable and writable by the owner.

The SMB1 version of the protocol has been deprecated, however this is the default version used in older versions of mount.cifs , e.g. I have this problem with version 6.2.

You can check with: sudo mount.cifs —version

If you try to connect to an SMB3 server using SMB1 protocol, you get the Host is down error.

The workaround, as described by many other answers here, is to specify a different version of the protocol. The following command works for me: sudo mount -t cifs //server.name.or.ip/shares/Public /target/directory -o username=someuser,domain=somedomain,vers=3.0

However, if the server that you are connecting to uses DFS, then you will get the following error instead: mount error(38): Function not implemented . This is because DFS support on SMB3 was only added to the kernel in version 4.11.

You can check your kernel version with uname -a . In my case, it was 3.10 on CentOS7. I followed these instructions to upgrade and now it works.

Источник

I have an issue with a mount point that was previously configured. It shows the folder, but the mount is missing and holds «?» values for size, permissions, etc.

So I tried to remount using cifs and the same command from before:

mount -t cifs //nas.domain.local/share /mnt/archive

But I get the error:

Host is down.

If I ping the domain or IP I get a proper resolution and I also connected using smbclient without issue

 ping nas.domain.local
 ping ip
 smbclient //nas.domain.local/share

I looked around, but cant find a solid answer. Any thoughts?

asked Aug 3, 2012 at 17:13

Kevin's user avatar

KevinKevin

1,4032 gold badges11 silver badges9 bronze badges

6

This could also be because of a protocol mismatch.
In 2017 Microsoft patched Windows Servers and advised to disable the SMB1 protocol.

From now on, mount.cifs might have problems with the protocol negotiation.

The error displayed is «Host is down.», but when you do debug with:

smbclient -L <server_ip> -U <username> -d 256

you will get the error:

protocol negotiation failed: NT_STATUS_CONNECTION_RESET

To overcome this use mount or smbclient with a protocol specified.

for smbclient: add -m SMB2 (or SMB3 for the newer version of the protocol)

smbclient -L <server_ip> -U <username> -m SMB2

or for mount: add vers=2.0 (or vers=3.0 if you want to use version 3 of the protocol)

mount -t cifs //<server_ip>/<share> /mnt/<mountpoint> -o vers=2.0

Ankur Gupta's user avatar

answered Apr 5, 2017 at 8:30

Marcin P's user avatar

Marcin PMarcin P

1,6581 gold badge7 silver badges5 bronze badges

10

On archlinux after a recent package update, I had to add vers=1.0 to my mount options. I’m connecting to an old centos 5 box and up until yesterday I could connect without explicitly stating a version number.

CIFS in linux kernel 4.13 now defaults to SMB 3.0 and in kernel 4.14 it tries 2.1 and higher. See this change log.

J Smith's user avatar

J Smith

4333 silver badges10 bronze badges

answered Oct 6, 2017 at 7:51

Sjoerd Timmer's user avatar

5

USB-stick at Fritz NAS showed «Host Down» for Ubuntu 17.10:

Defining the version (vers=1.0) worked — here’s the full string:

sudo mount -t cifs -o vers=1.0,_netdev,username=<user>,password=<pwd>,uid=1000,gid=1000  //192.168.178.1/fritz.nas <local mountpoint>

Mike Fiedler's user avatar

Mike Fiedler

2,1521 gold badge17 silver badges33 bronze badges

answered Dec 22, 2017 at 10:16

user449376's user avatar

user449376user449376

2412 silver badges2 bronze badges

1

Similar problem after upgrade to ubuntu 17.10, with an old Buffalo Diskstation. Solved by adding in /etc/fstab the «vers=1.0» option:

//myWDhostname/partage /media/Partage cifs guest,vers=1.0 0 0

answered Mar 4, 2018 at 14:12

Patrice's user avatar

PatricePatrice

711 silver badge2 bronze badges

2

Sorry if this is a late response (I realise it’s an old thread), however I have just discovered there is another possible reason why mount.cifs would say the host is down.

I have an antivirus with a firewall and even though I set it explicitly to allow «windows file and print sharing» — a predefined rule, it was still blocking connections. I had that proven by disabling the firewall temporarily.
Hope this helps someone, host is down might not mean it’s not responding to pings, but could mean it’s not responding to authentication attempts.

answered Nov 28, 2013 at 22:48

lolinux's user avatar

lolinuxlolinux

611 silver badge3 bronze badges

2

I received the same error without further ado from a new Samba client, when trying to mount a CIFS SMB network share:

mount error(112): Host is down

Eventually, it turned out I had previously restricted SMB server access to only a limited number of IP addresses by configuring /etc/samba/smb.conf:

# Allow these IP Addresses to connect: 
hosts allow = 127.0.0.1 127.0.1.13 127.0.1.63

# Anything else not allowed is, by default, rejected
hosts deny = ALL

Adding the fixed IP address of the new SMB client solved the issue in this specific case.

Of course, there is a myriad of other reasons why one may receive above-mentioned error.

answered Apr 23, 2015 at 21:47

Serge Stroobandt's user avatar

Same trouble connecting to Synology DiskStation (DSM 4.3).

Using vers=1.0 in the mount options works fine.

Additionally I had to use the option «noperm» because all files wrongly showed as not readable and writable by the owner.

answered Dec 5, 2017 at 10:58

Bernhard's user avatar

The SMB1 version of the protocol has been deprecated, however this is the default version used in older versions of mount.cifs, e.g. I have this problem with version 6.2.

You can check with:

sudo mount.cifs --version

If you try to connect to an SMB3 server using SMB1 protocol, you get the Host is down error.

The workaround, as described by many other answers here, is to specify a different version of the protocol. The following command works for me:

sudo mount -t cifs //server.name.or.ip/shares/Public /target/directory -o username=someuser,domain=somedomain,vers=3.0

However, if the server that you are connecting to uses DFS, then you will get the following error instead: mount error(38): Function not implemented. This is because DFS support on SMB3 was only added to the kernel in version 4.11.

You can check your kernel version with uname -a. In my case, it was 3.10 on CentOS7. I followed these instructions to upgrade and now it works.

answered Sep 4, 2018 at 8:43

Dr John A Stevenson's user avatar

Same trouble with Fritzbox 7490: mount error(112): Host is down

I didn’t used -o vers=XX.
As fast as a shark i am, i first tried -o vers=2.0 and failed.

As soon as i used the option -o vers=1.0, everything works fine !

This works for me..

 sudo mount -t cifs -o rw,username=myname_on_the_box,password=mypasswd_on_the_box,vers=1.0 //192.168.1.1/Fritz-nas /media/something/something    

My env:
Client: Ubuntu 17.10 Linux 4.13.0-17-generic #20-Ubuntu SMP x86_64 GNU/Linux

Server: Fritzbox 7490 firmware 6.83.

answered Nov 30, 2017 at 11:53

d.dieckert's user avatar

1

If you’re having this problem with a Synology NAS, then check that the vers= option specified to mount and the min/max SMB versions on the NAS are compatible.

Specifically, I’m using vers=2.0, but my Synology Diskstation was triggering the Host is down error. I found a page, Windows 10 access to NAS share. SMB 1.0 and 3.0, on the Synology website that explained how to set the Diskstation to allow SMB v2.0 or newer…

On Synology NAS

  • Go to Control Panel—>File Services
  • On the SMB/AFP/NFS tab, select Advanced Settings
  • Change Maximum SMB protocol to SMB3
  • Change Minumum SMB protocol to SMB2 (the page says to use SMB2 with large MTU, but that didn’t work for me)

answered Jun 23, 2019 at 16:44

Roger Lipscombe's user avatar

Roger LipscombeRoger Lipscombe

2,0776 gold badges24 silver badges37 bronze badges

I typically use this type of command to mount a cifs/smb share.

mount -t cifs -o rw,netbiosname=nasserver1,credentials=/etc/user_credentials.txt //192.168.1.11/someshare /mnt

the credentials file looks like so:

username=mydomainuser1
password=somepass

This can also be adapted to an automount setup so the mounting/unmounting can be handled by the system automatically via autofs.

answered Nov 4, 2012 at 7:23

slm's user avatar

slmslm

7,49516 gold badges54 silver badges74 bronze badges

In our case I checked the users login name (of user2) in the AD. There I noticed that the name was starting with an upper case letter and changed it to lower case as it is written in the mount script. Even if we did not touch neither user2 nor the mount script before, suddenly the mount command was successful.

mount --verbose -t cifs //pc/share /my-share -no user=user1,password=pw1 -o uid=user2,gid=group1,dir_mode=0775,file_mode=0664

answered Jun 29, 2017 at 11:28

Ludwig's user avatar

LudwigLudwig

4014 silver badges10 bronze badges

For me, the mounted cifs share was on a Windows server whose IP address had changed recently, so I could ping the server and resolve its new address, but the mount had not updated itself. By running a lazy unmount and then re-mounting my issue was solved:

umount -l /mnt/share
mount -a

answered Nov 28, 2017 at 16:06

Jon.Mozley's user avatar

Jon.MozleyJon.Mozley

1631 silver badge7 bronze badges

I also just ran into the problem mentioned after an upgrad to Xubuntu 17.10. I use a Synology DiskStation.
What I saw there: In the DiskStation, you can choose which protocols to support. By adding he relevant protocols (up to SBM3) in the advanced options for file services in control panel, you can also solve the problem.

answered Feb 4, 2018 at 3:09

Matthias Mielke's user avatar

kbrown

Posts: 7
Joined: 2014/07/07 15:25:02

[Solved] Can no longer mount cifs — mount error(112)

[solution in here — viewtopic.php?f=16&t=46961&start=10#p200085 ]

Hello experts,

I am running CentOS 6.4 (Final). Up until July 4, 2014 I have successfully been mounting Windows Shares from a Windows Server 2012 R2 Standard with the following command:

mount -t cifs //Server-IP-Address/Share-Name -o username=name, password=password /winmount/Share-Name

On the evening of July 3, 2014 I did a number of Microsoft Windows updates on the Windows Server. After these Windows updates the mount command no longer works and I get this error:

mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The host (the Windows Server at the specified Server-IP-Address) in NOT down, it is UP. All the Windows 7 and Macintosh OSX clients CAN access the very same Share-Name without any problems, as has always been the case.

It appears that these Microsoft Windows Updates have altered something very critical that now prevents mounting the Windows Shares from mounting.

This is all internal to our network and there are no firewalls running on or between the CentOS and Windows boxes.

Any pointers, tips, or tricks to help me troubleshoot this would be most helpful.

Last edited by kbrown on 2014/07/09 14:56:38, edited 2 times in total.


drk

Posts: 405
Joined: 2014/01/30 20:38:28

Re: Can no longer mount cifs — mount error(112)

Post

by drk » 2014/07/08 02:27:52

I am running CentOS 6.4 (Final).
<snip>
Any pointers, tips, or tricks to help me troubleshoot this would be most helpful.

Start by updating to 6.5 and see if that helps.


Whoever

Posts: 1307
Joined: 2013/09/06 03:12:10

Re: Can no longer mount cifs — mount error(112)

Post

by Whoever » 2014/07/08 04:54:32

kbrown wrote:Hello experts,

I am running CentOS 6.4 (Final). Up until July 4, 2014 I have successfully been mounting Windows Shares from a Windows Server 2012 R2 Standard with the following command:

mount -t cifs //Server-IP-Address/Share-Name -o username=name, password=password /winmount/Share-Name

On the evening of July 3, 2014 I did a number of Microsoft Windows updates on the Windows Server. After these Windows updates the mount command no longer works and I get this error:

mount error(112): Host is down

Are you sure that the Windows Server has the same IP address as before?


kbrown

Posts: 7
Joined: 2014/07/07 15:25:02

Re: Can no longer mount cifs — mount error(112)

Post

by kbrown » 2014/07/08 15:24:03

Thank you «drk» and Whoever»,

Recall that the problem occurred immediately AFTER the Windows Updates I did on the evening of July 3. Prior to that the last Windows Update was on February 28.

Let me assure you that NOTHING has changed on the CentOS side — a cron job issues the mount command (repeated manually by me as needed) and so the IP address of the Windows Server has not changed and is correct — nor on our network for that matter. Typos do happen, but not in this case.

It is a bit heavy handed (IMHO) to consider upgrading the entire CentOS to 6.5 (or something higher) on this production machine. I would rather find the actual cause/solution than pin my hopes on thinking that a full OS upgrade might possibly solve the problem when in fact it might not and could introduce other unexpected changes, not to mention the time involved.

Let me mention that we have a Xerox WorkCentre 7435 that also uses SMB to save incoming faxes and scans to Windows Shares on the same Windows Server 2012 R2 Standard. Immediately after the said Windows Updates this system too is unable to speak to the Windows Shares and can no longer save faxes or scans.

I believe this has something to do with MS changing some aspect of SMB protocols. Searching MS site is like looking for a needle in a haystack, but I just stumbled upon MS KB2896636 http://support.microsoft.com/kb/2896636 which is titled «You cannot use certain third-party devices to send a document to a shared folder in Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2» and under Symptoms says:

Consider the following scenario:

— You connect a third-party device, such as a multifunction printer, to a computer that is running Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2.
— The third-party device is configured to use a deprecated dialect of the Server Message Block version 1 (SMBv1) protocol to transfer files.
— You create a shared folder on the computer. The device has read and write access to the shared folder.
— You try to send a document to the shared folder by using the device.

In this scenario, you cannot send the document to the shared folder. Therefore, no file is created in the shared folder. says

I think the problem I am experiencing has to do with versions/changes to how Microsoft implements SMB.

Still looking for pointers/tips/tricks.

All help is welcome.


drk

Posts: 405
Joined: 2014/01/30 20:38:28

Re: Can no longer mount cifs — mount error(112)

Post

by drk » 2014/07/08 15:42:04

It is a bit heavy handed (IMHO) to consider upgrading the entire CentOS to 6.5 (or something higher) on this production machine. I would rather find the actual cause/solution than pin my hopes on thinking that a full OS upgrade might possibly solve the problem when in fact it might not and could introduce other unexpected changes, not to mention the time involved.

So you would rather rock an old version with known exploits and bug fixes? :lol:

*edit: I think you may have also just had some people here tune out as most would rather keep their systems up-to-date and only trouble shoot the current release. Updating 6.4->6.5 isn’t too bad but going 6.4->7.0 would be more difficult.


kbrown

Posts: 7
Joined: 2014/07/07 15:25:02

Re: Can no longer mount cifs — mount error(112)

Post

by kbrown » 2014/07/08 16:25:59

drk wrote:
So you would rather rock an old version with known exploits? :lol: Ok.

Certainly I do not want a system with known exploits, which is no laughing matter for us.

But with all due respect, I am looking for a solution to a specific problem in a production environment which, by it’s very nature, precludes a wholesale OS upgrade without spending the necessary time and resources testing how it may effect our critical operations and knowing for certain a) it will solve the problem at hand, and b) will not introduce other problems or expose us other exploits. So at this point I can’t consider doing so. Who know, I may have to. But for the moment I’d like to solve just this discreet problem.

It appears that MS introduced SMB v3.02 at some point (well, MS’s implementation of that). Do you know if there is another way or command line switch to overcome this, short of a full OS upgrade?


kbrown

Posts: 7
Joined: 2014/07/07 15:25:02

Re: Can no longer mount cifs — mount error(112)

Post

by kbrown » 2014/07/08 18:02:32

Well, it appears that another tech did in fact update (as «drk» suggested) to 6.5 (Final) but without letting me know until now.

This did NOT fix the problem.

Hopefully it did not introduce any issues either.

Still looking for solutions… will report back if found.


gerald_clark

Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Can no longer mount cifs — mount error(112)

Post

by gerald_clark » 2014/07/08 18:17:37

You can check /var/log/yum.log to see what and when programs were updated.


kbrown

Posts: 7
Joined: 2014/07/07 15:25:02

Re: Can no longer mount cifs — mount error(112)

Post

by kbrown » 2014/07/08 19:44:52

gerald_clark wrote:You can check /var/log/yum.log to see what and when programs were updated.

Thanks.

However, I don’t think that will assist in the specific task at hand — resolving why the CentOS 6.5 box no longer mount a Windows Share.

All this leans towards Microsoft having done something and CentOS drivers being a wee bit behind.

(That’s not to imply CentOS contributors are slow, but rather when MS fools around with standards they break things where standards are adhered to by everyone else, «if it’s not broke, then break it!» — MS rant over)


User avatar

TrevorH

Site Admin
Posts: 32529
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can no longer mount cifs — mount error(112)

Post

by TrevorH » 2014/07/08 19:59:47

You could look at the Windows Update history and see what fixes were applied around the time it stopped working. Perhaps you can recreate a similar problem on a non-production box and experiment with backing those fixes out one by one until you see which one it was that caused the problem to start. Armed with that more specific information you may be able to find out more from Uncle Google about the causes and maybe even a bypass for the problem at hand.

Failing that, I suggest that you bump up the log level on samba/cifs and attempt to debug why it fails and see if you can gain clues that way.


  • Remove From My Forums
  • Question

  • Hi. I am attempting to use the new Azure Files feature, following the video on the blog from MSDN. When I attempt to mount the share on my CentOS VM, I get the error message:

    mount error(112): Host is down

    How can I troubleshoot this or what is the known issue?

    UPDATE:

    I caught a mention in the Azure release blog that only Ubuntu images are supporting the Azure Files preview at this time.  Is this true?

    • Edited by

      Monday, July 21, 2014 7:55 PM

Answers

  • This happens only when storage ccount is in a different region than the virtual machine. For now, they have to be in the same region.

    • Proposed as answer by
      Jason Tang 501
      Tuesday, September 22, 2015 5:31 PM
    • Marked as answer by
      Michael CurdMicrosoft employee
      Thursday, October 1, 2015 5:51 PM

  • Just incase someone else finds this and has the same issue as me.  You may also get the above error if in your mount command you aren’t specifying vers=2.1 as the documentation suggests:

    sudo mount -t cifs //myaccountname.file.core.windows.net/mysharename ./mymountpoint -o vers=2.1,username=myaccountname,password=StorageAccountKeyEndingIn==

    adding in that vers=2.1 solved it for me.

    • Proposed as answer by
      shan5
      Tuesday, July 12, 2016 10:48 AM
    • Marked as answer by
      SadiqhAhmed-MSFTMicrosoft employee
      Tuesday, July 12, 2016 2:05 PM

  • This happens only when storage ccount is in a different region than the virtual machine. For now, they have to be in the same region.

    Yes, if you tried use CentOS 7.1 within the same region as your file share, then it should work.

    Both latest version of Ubuntu and CentOS 7.1 support SMB 2.1 so they can be used to mount the file share created in Azure File Storage (within same region)

    • Marked as answer by
      Michael CurdMicrosoft employee
      Thursday, October 1, 2015 5:52 PM

Scenario / Questions

I have an issue with a mount point that was previously configured. It shows the folder, but the mount is missing and holds “?” values for size, permissions, etc.

So I tried to remount using cifs and the same command from before:

mount -t cifs //nas.domain.local/share /mnt/archive

But I get the error:

Host is down.

If I ping the domain or IP I get a proper resolution and I also connected using smbclient without issue

 ping nas.domain.local
 ping ip
 smbclient //nas.domain.local/share

I looked around, but cant find a solid answer. Any thoughts?

Find below all possible solutions or suggestions for the above questions..

Suggestion: 1:

This could also be because of a protocol mismatch.
In 2017 Microsoft patched Windows Servers and advised to disable the SMB1 protocol.

From now on, mount.cifs might have problems with the protocol negotiation.

The error displayed is “Host is down.”, but when you do debug with:

smbclient -L <server_ip> -U <username> -d 256

you will get the error:

protocol negotiation failed: NT_STATUS_CONNECTION_RESET

To overcome this use mount or smbclient with a protocol specified.

for smbclient: add -m SMB2 (or SMB3 for the newer version of the protocol)

smbclient -L <server_ip> -U <username> -m SMB2

or for mount: add vers=2.0 (or vers=3.0 if you want to use version 3 of the protocol)

mount -t cifs //<server_ip>/<share> /mnt/<mountpoint> -o vers=2.0
Suggestion: 2:

On archlinux after a recent package update, I had to add vers=1.0 to my mount options. I’m connecting to an old centos 5 box and up until yesterday I could connect without explicitly stating a version number.

CIFS in linux kernel 4.13 now defaults to SMB 3.0 and in kernel 4.14 it tries 2.1 and higher. See this change log.

Suggestion: 3:

USB-stick at Fritz NAS showed “Host Down” for Ubuntu 17.10:

Defining the version (vers=1.0) worked – here’s the full string:

sudo mount -t cifs -o vers=1.0,_netdev,username=<user>,password=<pwd>,uid=1000,gid=1000  //192.168.178.1/fritz.nas <local mountpoint>
Suggestion: 4:

Similar problem after upgrade to ubuntu 17.10, with an old Buffalo Diskstation. Solved by adding in /etc/fstab the “vers=1.0” option:

//myWDhostname/partage /media/Partage cifs guest,vers=1.0 0 0

Suggestion: 5:

Sorry if this is a late response (I realise it’s an old thread), however I have just discovered there is another possible reason why mount.cifs would say the host is down.

I have an antivirus with a firewall and even though I set it explicitly to allow “windows file and print sharing” — a predefined rule, it was still blocking connections. I had that proven by disabling the firewall temporarily.
Hope this helps someone, host is down might not mean it’s not responding to pings, but could mean it’s not responding to authentication attempts.

Suggestion: 6:

I received the same error without further ado from a new Samba client, when trying to mount a CIFS SMB network share:

mount error(112): Host is down

Eventually, it turned out I had previously restricted SMB server access to only a limited number of IP addresses by configuring /etc/samba/smb.conf:

# Allow these IP Addresses to connect: 
hosts allow = 127.0.0.1 127.0.1.13 127.0.1.63

# Anything else not allowed is, by default, rejected
hosts deny = ALL

Adding the fixed IP address of the new SMB client solved the issue in this specific case.

Of course, there is a myriad of other reasons why one may receive above-mentioned error.

Suggestion: 7:

Same trouble connecting to Synology DiskStation (DSM 4.3).

Using vers=1.0 in the mount options works fine.

Additionally I had to use the option “noperm” because all files wrongly showed as not readable and writable by the owner.

Suggestion: 8:

Same trouble with Fritzbox 7490: mount error(112): Host is down

I didn’t used -o vers=XX.
As fast as a shark i am, i first tried -o vers=2.0 and failed.

As soon as i used the option -o vers=1.0, everything works fine !

This works for me..

 sudo mount -t cifs -o rw,username=myname_on_the_box,password=mypasswd_on_the_box,vers=1.0 //192.168.1.1/Fritz-nas /media/something/something    

My env:
Client: Ubuntu 17.10 Linux 4.13.0-17-generic #20-Ubuntu SMP x86_64 GNU/Linux

Server: Fritzbox 7490 firmware 6.83.

Suggestion: 9:

The SMB1 version of the protocol has been deprecated, however this is the default version used in older versions of mount.cifs, e.g. I have this problem with version 6.2.

You can check with:

sudo mount.cifs --version

If you try to connect to an SMB3 server using SMB1 protocol, you get the Host is down error.

The workaround, as described by many other answers here, is to specify a different version of the protocol. The following command works for me:

sudo mount -t cifs //server.name.or.ip/shares/Public /target/directory -o username=someuser,domain=somedomain,vers=3.0

However, if the server that you are connecting to uses DFS, then you will get the following error instead: mount error(38): Function not implemented. This is because DFS support on SMB3 was only added to the kernel in version 4.11.

You can check your kernel version with uname -a. In my case, it was 3.10 on CentOS7. I followed these instructions to upgrade and now it works.

Suggestion: 10:

If you’re having this problem with a Synology NAS, then check that the vers= option specified to mount and the min/max SMB versions on the NAS are compatible.

Specifically, I’m using vers=2.0, but my Synology Diskstation was triggering the Host is down error. I found a page, Windows 10 access to NAS share. SMB 1.0 and 3.0, on the Synology website that explained how to set the Diskstation to allow SMB v2.0 or newer…

On Synology NAS

Suggestion: 11:

I typically use this type of command to mount a cifs/smb share.

mount -t cifs -o rw,netbiosname=nasserver1,credentials=/etc/user_credentials.txt //192.168.1.11/someshare /mnt

the credentials file looks like so:

username=mydomainuser1
password=somepass

This can also be adapted to an automount setup so the mounting/unmounting can be handled by the system automatically via autofs.

Suggestion: 12:

In our case I checked the users login name (of user2) in the AD. There I noticed that the name was starting with an upper case letter and changed it to lower case as it is written in the mount script. Even if we did not touch neither user2 nor the mount script before, suddenly the mount command was successful.

mount --verbose -t cifs //pc/share /my-share -no user=user1,password=pw1 -o uid=user2,gid=group1,dir_mode=0775,file_mode=0664
Suggestion: 13:

For me, the mounted cifs share was on a Windows server whose IP address had changed recently, so I could ping the server and resolve its new address, but the mount had not updated itself. By running a lazy unmount and then re-mounting my issue was solved:

umount -l /mnt/share
mount -a
Suggestion: 14:

I also just ran into the problem mentioned after an upgrad to Xubuntu 17.10. I use a Synology DiskStation.
What I saw there: In the DiskStation, you can choose which protocols to support. By adding he relevant protocols (up to SBM3) in the advanced options for file services in control panel, you can also solve the problem.

Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.

Source: Mount CIFS Host is down

CentOS

The Community ENTerprise Operating System

[Solved] Can no longer mount cifs — mount error(112)

[Solved] Can no longer mount cifs — mount error(112)

Post by kbrown » 2014/07/07 15:55:44

I am running CentOS 6.4 (Final). Up until July 4, 2014 I have successfully been mounting Windows Shares from a Windows Server 2012 R2 Standard with the following command:

mount -t cifs //Server-IP-Address/Share-Name -o username=name, password=password /winmount/Share-Name

On the evening of July 3, 2014 I did a number of Microsoft Windows updates on the Windows Server. After these Windows updates the mount command no longer works and I get this error:

mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The host (the Windows Server at the specified Server-IP-Address) in NOT down, it is UP. All the Windows 7 and Macintosh OSX clients CAN access the very same Share-Name without any problems, as has always been the case.

It appears that these Microsoft Windows Updates have altered something very critical that now prevents mounting the Windows Shares from mounting.

This is all internal to our network and there are no firewalls running on or between the CentOS and Windows boxes.

Any pointers, tips, or tricks to help me troubleshoot this would be most helpful.

Re: Can no longer mount cifs — mount error(112)

Post by drk » 2014/07/08 02:27:52

Re: Can no longer mount cifs — mount error(112)

Post by Whoever » 2014/07/08 04:54:32

kbrown wrote: Hello experts,

I am running CentOS 6.4 (Final). Up until July 4, 2014 I have successfully been mounting Windows Shares from a Windows Server 2012 R2 Standard with the following command:

mount -t cifs //Server-IP-Address/Share-Name -o username=name, password=password /winmount/Share-Name

On the evening of July 3, 2014 I did a number of Microsoft Windows updates on the Windows Server. After these Windows updates the mount command no longer works and I get this error:

mount error(112): Host is down

Are you sure that the Windows Server has the same IP address as before?

Re: Can no longer mount cifs — mount error(112)

Post by kbrown » 2014/07/08 15:24:03

Thank you «drk» and Whoever»,

Recall that the problem occurred immediately AFTER the Windows Updates I did on the evening of July 3. Prior to that the last Windows Update was on February 28.

Let me assure you that NOTHING has changed on the CentOS side — a cron job issues the mount command (repeated manually by me as needed) and so the IP address of the Windows Server has not changed and is correct — nor on our network for that matter. Typos do happen, but not in this case.

It is a bit heavy handed (IMHO) to consider upgrading the entire CentOS to 6.5 (or something higher) on this production machine. I would rather find the actual cause/solution than pin my hopes on thinking that a full OS upgrade might possibly solve the problem when in fact it might not and could introduce other unexpected changes, not to mention the time involved.

Let me mention that we have a Xerox WorkCentre 7435 that also uses SMB to save incoming faxes and scans to Windows Shares on the same Windows Server 2012 R2 Standard. Immediately after the said Windows Updates this system too is unable to speak to the Windows Shares and can no longer save faxes or scans.

I believe this has something to do with MS changing some aspect of SMB protocols. Searching MS site is like looking for a needle in a haystack, but I just stumbled upon MS KB2896636 http://support.microsoft.com/kb/2896636 which is titled «You cannot use certain third-party devices to send a document to a shared folder in Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2» and under Symptoms says:

Consider the following scenario:

— You connect a third-party device, such as a multifunction printer, to a computer that is running Windows RT 8.1, Windows 8.1, or Windows Server 2012 R2.
— The third-party device is configured to use a deprecated dialect of the Server Message Block version 1 (SMBv1) protocol to transfer files.
— You create a shared folder on the computer. The device has read and write access to the shared folder.
— You try to send a document to the shared folder by using the device.

In this scenario, you cannot send the document to the shared folder. Therefore, no file is created in the shared folder. says

I think the problem I am experiencing has to do with versions/changes to how Microsoft implements SMB.

Источник

Как в Linux монтировать шару CIFS

Что такое Linux и CIFS простыми словами.

Работа с общими папками Windows происходит с использованием протокола CIFS (SMB). Все примеры в данном руководстве выполняются на Linux Ubuntu и CentOS.

Подготовка

Установка пакетов

Для монтирования общей папки необходимо установить набор утилит для работы с CIFS.

yum install cifs-utils

apt-get install cifs-utils

Сетевые порты

Если мы будем монтировать сетевую папку, сервер которой находится за брандмауэром, необходимо открыть следующие порты:

Синтаксис

* вместо mount.cifs можно написать mount -t cifs.

mount.cifs //192.168.1.1/public /mnt

* простой пример монтирования папки public на сервере 192.168.1.1 в локальный каталог /mnt.

Ручное монтирование

Теперь монтирование можно выполнить следующей командой:

mount.cifs //192.168.1.10/share /mnt -o user=dmosk

* в данном примере будет примонтирован каталог share на сервере 192.168.1.10 в локальную папку /mnt под учетной записью dmosk.

То же самое, с использованием домена:

mount.cifs //192.168.1.10/share /mnt -o user=dmosk,domain=dmosk.local

Автоматическое монтирование CIFS через fstab

Для начала создаем файл, в котором будем хранить данные авторизации при подключении к общей папке:

И добавляем в него данные следующего вида:

username=dmosk
password=dPassw0rd
domain=dmosk.local

* в этом примере создана пара логин/пароль — dmosk/dPassw0rd; domain указывать не обязательно, если аутентификация выполняется без него.

Теперь открываем конфигурационный файл fstab:

и добавляем в него следующее:

//192.168.1.10/share /mnt cifs user,rw,credentials=/root/.smbclient 0 0

* в данном примере выполняется монтирование общей папки share на сервере с IP-адресом 192.168.1.10 в каталог /mnt. Параметры для подключения — user: позволяет выполнить монтирование любому пользователю, rw: с правом на чтение и запись, credentials: файл, который мы создали на предыдущем шаге.

Чтобы проверить правильность настроек, вводим следующую команду:

Примеры использования опций

Версии SMB

Если на стороне Windows используется старая или слишком новая версия протокола SMB, при попытке монтирования мы можем получить ошибку mount error(112): Host is down. Чтобы это исправить, указываем версию:

mount.cifs //192.168.1.10/share /mnt/ -o vers=1.0

* монтирование по протоколу SMB1.0

Монтирование от гостевой учетной записи

Если сервер принимает запросы без логина и пароля, то клиент подключается, как гость:

mount.cifs //192.168.1.10/share /mnt -o guest

//192.168.1.10/share /mnt cifs guest 0 0

Права на примонтированные каталоги

При монтировании папки мы можем указать определенные права:

mount.cifs //192.168.1.10/share /mnt -o file_mode=0777,dir_mode=0777

Для указания владельца, который будет назначен для примонтированного каталога, используем:

mount.cifs //192.168.1.10/share /mnt -o uid=33,gid=33

* чтобы посмотреть идентификаторы пользователя, вводим id -u и id -g .

Источник

Centos 7 mount error 112 host is down

Question

Hi. I am attempting to use the new Azure Files feature, following the video on the blog from MSDN. When I attempt to mount the share on my CentOS VM, I get the error message:

mount error(112): Host is down

How can I troubleshoot this or what is the known issue?

I caught a mention in the Azure release blog that only Ubuntu images are supporting the Azure Files preview at this time. Is this true?

Answers

  • Proposed as answer by Jason Tang 501 Tuesday, September 22, 2015 5:31 PM
  • Marked as answer by Michael Curd Microsoft employee Thursday, October 1, 2015 5:51 PM

Just incase someone else finds this and has the same issue as me. You may also get the above error if in your mount command you aren’t specifying vers=2.1 as the documentation suggests:

sudo mount -t cifs //myaccountname.file.core.windows.net/mysharename ./mymountpoint -o vers=2.1,username=myaccountname,password=StorageAccountKeyEndingIn==

adding in that vers=2.1 solved it for me.

  • Proposed as answer by shan5 Tuesday, July 12, 2016 10:48 AM
  • Marked as answer by SadiqhAhmed-MSFT Microsoft employee Tuesday, July 12, 2016 2:05 PM

This happens only when storage ccount is in a different region than the virtual machine. For now, they have to be in the same region.

Yes, if you tried use CentOS 7.1 within the same region as your file share, then it should work.

Both latest version of Ubuntu and CentOS 7.1 support SMB 2.1 so they can be used to mount the file share created in Azure File Storage (within same region)

Источник

Centos 7 mount error 112 host is down

Question

Hi. I am attempting to use the new Azure Files feature, following the video on the blog from MSDN. When I attempt to mount the share on my CentOS VM, I get the error message:

mount error(112): Host is down

How can I troubleshoot this or what is the known issue?

I caught a mention in the Azure release blog that only Ubuntu images are supporting the Azure Files preview at this time. Is this true?

Answers

  • Proposed as answer by Jason Tang 501 Tuesday, September 22, 2015 5:31 PM
  • Marked as answer by Michael Curd Microsoft employee Thursday, October 1, 2015 5:51 PM

Just incase someone else finds this and has the same issue as me. You may also get the above error if in your mount command you aren’t specifying vers=2.1 as the documentation suggests:

sudo mount -t cifs //myaccountname.file.core.windows.net/mysharename ./mymountpoint -o vers=2.1,username=myaccountname,password=StorageAccountKeyEndingIn==

adding in that vers=2.1 solved it for me.

  • Proposed as answer by shan5 Tuesday, July 12, 2016 10:48 AM
  • Marked as answer by SadiqhAhmed-MSFT Microsoft employee Tuesday, July 12, 2016 2:05 PM

This happens only when storage ccount is in a different region than the virtual machine. For now, they have to be in the same region.

Yes, if you tried use CentOS 7.1 within the same region as your file share, then it should work.

Both latest version of Ubuntu and CentOS 7.1 support SMB 2.1 so they can be used to mount the file share created in Azure File Storage (within same region)

Источник

Centos 7 mount error 112 host is down

Question

Hi. I am attempting to use the new Azure Files feature, following the video on the blog from MSDN. When I attempt to mount the share on my CentOS VM, I get the error message:

mount error(112): Host is down

How can I troubleshoot this or what is the known issue?

I caught a mention in the Azure release blog that only Ubuntu images are supporting the Azure Files preview at this time. Is this true?

Answers

  • Proposed as answer by Jason Tang 501 Tuesday, September 22, 2015 5:31 PM
  • Marked as answer by Michael Curd Microsoft employee Thursday, October 1, 2015 5:51 PM

Just incase someone else finds this and has the same issue as me. You may also get the above error if in your mount command you aren’t specifying vers=2.1 as the documentation suggests:

sudo mount -t cifs //myaccountname.file.core.windows.net/mysharename ./mymountpoint -o vers=2.1,username=myaccountname,password=StorageAccountKeyEndingIn==

adding in that vers=2.1 solved it for me.

  • Proposed as answer by shan5 Tuesday, July 12, 2016 10:48 AM
  • Marked as answer by SadiqhAhmed-MSFT Microsoft employee Tuesday, July 12, 2016 2:05 PM

This happens only when storage ccount is in a different region than the virtual machine. For now, they have to be in the same region.

Yes, if you tried use CentOS 7.1 within the same region as your file share, then it should work.

Both latest version of Ubuntu and CentOS 7.1 support SMB 2.1 so they can be used to mount the file share created in Azure File Storage (within same region)

Источник

CIFS —

один из спо­со­бов (про­то­кол) пере­да­чи дан­ных по сети с одно­го устрой­ства на дру­гое. Самый рас­про­стра­нен­ный при­мер исполь­зо­ва­ния — сете­вой диск или сете­вая пап­ка для обще­го досту­па. CIFS (Common Internet File System) так­же назы­ва­ют SMB (Server Message Block) — по сути, это одно и тоже.

Вер­сии:

  1. SMB или CIFS
  2. SMB 2.0
  3. SMB 3.0

Для рабо­ты CIFS/SMB необ­хо­дим порт 445 — по нему предо­став­ля­ет­ся уда­лен­ный доступ к сете­вым ресур­сам. А так­же для раз­ре­ше­ния имен NetBios исполь­зу­ют­ся пор­ты 137, 138 ,139 — без них обра­ще­ние к ресур­су воз­мож­но толь­ко по IP-адресу.

В Windows кли­ент и сер­вер встро­е­ны в опе­ра­ци­он­ную систе­му. В Linux про­то­кол может быть реа­ли­зо­ван с помо­щью samba.

Подготовка

Для мон­ти­ро­ва­ния общей пап­ки необ­хо­ди­мо уста­но­вить набор ути­лит для рабо­ты с CIFS.

yum install cifs-utils

Синтаксис

mount.cifs <пап­ка на сер­ве­ре> <во что мон­ти­ру­ем> <-o опции>

* вме­сто mount.cifs мож­но напи­сать mount -t cifs.

При­мер:

mount.cifs //192.168.1.1/public /mnt

* про­стой при­мер мон­ти­ро­ва­ния пап­ки public на сер­ве­ре 192.168.1.1 в локаль­ный ката­лог /mnt.

Ручное монтирование

Теперь мон­ти­ро­ва­ние мож­но выпол­нить сле­ду­ю­щей командой:

mount.cifs //192.168.1.10/share /mnt -o user=andr

* в дан­ном при­ме­ре будет при­мон­ти­ро­ван ката­лог share на сер­ве­ре 192.168.1.10 в локаль­ную пап­ку /mnt под учет­ной запи­сью andr.

То же самое, с исполь­зо­ва­ни­ем домена:

mount.cifs //192.168.1.10/share /mnt -o user=andr,domain=andr.local

Автоматическое монтирование CIFS через fstab

Для нача­ла созда­ем файл, в кото­ром будем хра­нить дан­ные авто­ри­за­ции при под­клю­че­нии к общей папке:

vi /root/.smbclient

И добав­ля­ем в него дан­ные сле­ду­ю­ще­го вида:

username=andr
password=dPassw0rd
domain=andr.local

* в этом при­ме­ре созда­на пара логин/пароль — andr/dPassw0rddomain ука­зы­вать не обя­за­тель­но, если аутен­ти­фи­ка­ция выпол­ня­ет­ся без него.

Теперь откры­ва­ем кон­фи­гу­ра­ци­он­ный файл fstab:

vi /etc/fstab

и добав­ля­ем в него следующее:

//192.168.1.10/share /mnt cifs user,rw,credentials=/root/.smbclient 0 0

* в дан­ном при­ме­ре выпол­ня­ет­ся мон­ти­ро­ва­ние общей пап­ки share на сер­ве­ре с IP-адре­сом 192.168.1.10 в ката­лог /mnt. Пара­мет­ры для под­клю­че­ния — user: поз­во­ля­ет выпол­нить мон­ти­ро­ва­ние любо­му поль­зо­ва­те­лю, rw: с пра­вом на чте­ние и запись, credentials: файл, кото­рый мы созда­ли на преды­ду­щем шаге.

Что­бы про­ве­рить пра­виль­ность настро­ек, вво­дим сле­ду­ю­щую команду:

mount -a

Примеры использования опций

Версии SMB

Если на сто­роне Windows исполь­зу­ет­ся ста­рая или слиш­ком новая вер­сия про­то­ко­ла SMB, при попыт­ке мон­ти­ро­ва­ния мы можем полу­чить ошиб­ку mount error(112): Host is down. Что­бы это испра­вить, ука­зы­ва­ем версию:

mount.cifs //192.168.1.10/share /mnt/ -o vers=1.0

* мон­ти­ро­ва­ние по про­то­ко­лу SMB1.0

Монтирование от гостевой учетной записи

Если сер­вер при­ни­ма­ет запро­сы без логи­на и паро­ля, то кли­ент под­клю­ча­ет­ся, как гость:

mount.cifs //192.168.1.10/share /mnt -o guest

или в fstab:

//192.168.1.10/share    /mnt    cifs    guest    0 0

Права на примонтированные каталоги

При мон­ти­ро­ва­нии пап­ки мы можем ука­зать опре­де­лен­ные права:

mount.cifs //192.168.1.10/share /mnt -o file_mode=0777,dir_mode=0777

I’m trying to mount a USB drive plugged on my Technicolor router.

I have the following line in my /etc/fstab:

//192.168.1.1/usbdisk /media/public cifs guest,vers=3.0 0 0

After trying resolving the issue with diffrerent instructions found from the net I have tried specifying different versions, vers=2.0, vers=2.1, but none of these have resolved the issue.

If I test with smbclient, I get the following:

sudo mount.cifs //192.168.1.1/usbdisk /media/public -o username=myuser,vers=2.0
Password for myuser@//192.168.1.1/usbdisk:  *********
mount error(112): Host is down

Same happens with no user specified, and also with various vers= definitions.

I’m running Ubuntu 15.10.
Any ideas?

asked Aug 15, 2017 at 16:55

Ossi Viljakainen's user avatar

2

You can disable the entry in /etc/fstab and issue the following command

mount -t cifs //192.168.1.1/usbdisk /media/public -o guest,vers=3.0

and at the same time play around with different options (behind -o). If you need feedback from you system, you might open a second terminal windows and type journalctl -fb to watch how the kernel reacts on your options given.

I explain all this because your real issue might be different with cifs than it was in my case.

I had the problem that the device offering SMB wants ver=1.0. While Ubuntu 17.04 didn’t have any problems with the version (auto), the 17.10 and its kernel demands to indicate the number, as my Kernel logs shows:

Okt 25 09:06:08 gespc kernel: No dialect specified on mount. Default has changed to a more secure dialect, SMB3 (vers=3.0), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 specify vers=1.0 on mount. For somewhat newer servers such as Windows 7 try vers=2.1.

My Good luck!

Olorin's user avatar

Olorin

3,39815 silver badges28 bronze badges

answered Oct 25, 2017 at 7:17

Gerhard Stein's user avatar

3

YES !

Had this problems for months too, solved with adding vers=1.0 in the options:

//xxx.xxx.xxx.xxx/disk /media/foldername cifs rw,credentials=/etc/samba/credentials,uid=1000,gid=1000,file_mode=0660,dir_mode=0770,iocharset=utf8,vers=1.0 0 0

Thanks Gerhard!

GR

answered Apr 12, 2018 at 2:02

mchrgr2000's user avatar

mchrgr2000mchrgr2000

811 silver badge3 bronze badges

1

Понравилась статья? Поделить с друзьями:
  • Mount error 111
  • Mount error 110
  • Motorsystem wartung dringend ошибка на volvo
  • Mount error 101 network is unreachable
  • Motorhaube offen на volkswagen ошибка