Hot answers tagged

157 votes

Mount CIFS Host is down

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 ...
Marcin P's user avatar
  • 1,678
50 votes

Mount CIFS Host is down

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 ...
Sjoerd Timmer's user avatar
24 votes

Mount CIFS Host is down

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=<...
user449376's user avatar
19 votes
Accepted

How do I find out what version of SMB is in use by each attached client to a Windows Server 2016?

I did find a way to do this. Hopefully this helps someone else looking for the same information. On the server, open a powershell then enter this command: Get-SmbSession | Select-Object -Property ...
J Smith's user avatar
  • 433
13 votes
Accepted

Unable to mount cifs share in fstab with spaces in share name

Replacing the spaces with \040 is actually the right way to do it. The reason why it’s not working for you is probably because there are (forgotten?) quotes after /Restricted: //servername.org.au/...
aaronk6's user avatar
  • 416
10 votes
Accepted

how can I mount a windows share with rw access?

You can set the local UID using mount options, example below. You can find out your UID by running the id -u command. sudo mount -t cifs -o username=maazza,domain=MYDOMAIN,uid=1000 //192.168.123.2/...
Craig Watson's user avatar
  • 9,575
10 votes
Accepted

Samba (CIFS) mount error(9): Bad file descriptor

Edit: someone from the community has noticed that official update fixing the problem has been released; this link provides a solution: Microsoft released the Update KB4487345 to fix the issue: This ...
9 votes

TCP/IP ports necessary for CIFS/SMB operation

This configuration worked for me: 137/UDP, 138/UDP, 139/TCP and 445/TCP. Source and additional information at: http://www.icir.org/gregor/tools/ms-smb-protocols.html. So these are the iptables rules ...
Juan's user avatar
  • 99
9 votes
Accepted

Difference between durable file handles, resilient file handles and persistent file handles

Durable handles are part of SMB 2.0 Resilient handles are part of SMB 2.1 Persistent handles are part of SMB 2.2 which is now called SMB3 My main references for the following are: https://wiki.samba....
Ward - Trying Codidact's user avatar
9 votes
Accepted

Cache of share in windows server

You're probably missing the fact that Offline Files must be enabled on the client side in order for files and programs accessed from the Share to be cached offline. Additionally, only files and ...
joeqwerty's user avatar
  • 110k
7 votes

Mount CIFS Host is down

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
Patrice's user avatar
  • 71
7 votes

How to create CIFS docker volume with username, password, uid, and gid

A little bit late ... But here is the solution: docker volume create \ --driver local \ --opt type=cifs \ --opt device=//server.domain/path/to/share \ --opt o=addr=server.domain,...
dmaj's user avatar
  • 71
7 votes
Accepted

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

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.
Arun Krishnan's user avatar
7 votes
Accepted

Cloud Storage Provider with file handles

Will File Share in Azure (SMB3 under the hood) work? https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction Azure File Sync will help with the local “cache” on premises. ...
BaronSamedi1958's user avatar
7 votes

No write permission on mounted CIFS drive

CIFS share will be mounted as root using your command, so normal user not able write anything there. You need to specify the user and group ID for whom you want to assign read/write permission. You ...
Vaibhav Panmand's user avatar
6 votes

Linux: CIFS/Samba mount hangs for several minutes

I too encounter this every few months. sudo umount -l is my workaround. https://stackoverflow.com/a/96288/2097284
Camille Goudeseune's user avatar
6 votes

How to map Windows ACL to Linux ones on a CIFS share?

How to set up a CIFS Multiuser Mount CIFS is a session-based protocol. This means that the session runs with the privileges of the user who logged on for the CIFS session. Therefore, the normal way ...
ManuelAtWork's user avatar
6 votes

mount windows share read only

For anyone searching, this issue is due to not having cifs-utils. Install using: sudo apt install cifs-utils
Sam Woodcock's user avatar
5 votes
Accepted

CIFS/SAMBA Mount still attempts before network is ready even with _netdev

Assuming you have an up-to-date version of osmc running, use the following options instead: x-systemd.automount,noauto This results in a systemd automount unit being created. See systemd.automount ...
M. Glatki's user avatar
  • 1,974
5 votes

Samba/CIFS Ubuntu 14.04 mount error(112)

There are at least three different versions of SMB around. The problem is, when you are just mounting SMB with no further option on the Linux kernel and SMBv1 is disabled on the server, then the ...
Marc Stürmer's user avatar
5 votes

CIFS VFS: BAD_NETWORK_NAME on Linux

I had the same problem. This post mentions that you need to indicate the name of the share and not the exact path: sudo mount.cifs -o credentials=/home/pierrejean/.smbcredentials_207 //192.168.1.207/...
PJ127's user avatar
  • 151
4 votes

Mount CIFS Host is down

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 ...
Bernhard's user avatar
4 votes

cifs Required Key Not Available

I think I found the answer to your problem, see my own question here: Powerbroker Open : Cannot automount CIFS share, where is the kerberos ticket? CentOS 7 uses systemd and the PBIS service is ...
trapperjohn's user avatar
4 votes

Difference between durable file handles, resilient file handles and persistent file handles

More about persistent handles...Persistent handles are available across several servers of the same cluster. When one server goes down for any reason, the client machine can semi-transparently ...
Mark Rabinovich's user avatar
4 votes
Accepted

Symlinks not preserved by rsync when copying to cifs share

I had tried "unix extensions = yes" but it didn't work - but it was just the nas overwriting the settings when restarted. So, adding that option to the receiving server, restarting samba there and ...
Fabio's user avatar
  • 229
4 votes
Accepted

Windows tries to access the IPC$ share before the provided one

So my question is how can I prevent Windows to do this useless request...? Or at least how can I force Windows to access the real share after..? The answer is that you can't! Sorry to say, but this is ...
bao7uo's user avatar
  • 1,704
4 votes

Debugging slow ls on cifs mount strace makes it fast

Turned out to be an alias for ls /home/someuser/.bashrc: alias ls='ls --color=auto' the --color=auto option is causing ls to return colors in my terminal but not in strace. In order to support the ...
olle's user avatar
  • 151
4 votes
Accepted

apache2 sends corrupt responses when using a cifs-share

I am having the same issue, it seams this issue is recent, possibly related to kernel version in 20.04? I do see the issue with plain text files as well. Were you able to find a solution / workaround? ...
nosage's user avatar
  • 66
3 votes

Mount CIFS Host is down

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 ...
Dr John A Stevenson's user avatar
3 votes

Permanently mount network share without the need for log on? (Windows)

I found a solution to permanently mount a drive. However the drive is not mounted on every session. I did this on Windows Server 2019. Let's say we want to mount a directory called target_dir ...
vdsbenoit's user avatar
  • 131

Only top scored, non community-wiki answers of a minimum length are eligible