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 ...
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 ...
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=<...
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 ...
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/...
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/...
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 ...
Community wiki
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 ...
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....
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 ...
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
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,...
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.
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.
...
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 ...
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
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 ...
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
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 ...
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 ...
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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? ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cifs × 428samba × 109
linux × 89
mount × 88
server-message-block × 77
windows × 49
ubuntu × 45
network-share × 31
active-directory × 28
centos × 25
kerberos × 23
fstab × 22
permissions × 17
nfs × 17
netapp × 16
windows-server-2012-r2 × 15
rsync × 15
debian × 13
windows-server-2008-r2 × 12
network-attached-storage × 11
autofs × 11
windows-server-2008 × 10
centos7 × 10
truenas × 10
file-sharing × 9