51
votes
mount -t cifs: "Operation not supported", but can connect via smbclient
At work I encountered a similar problem. moun -t cifs just stopped working. Following mounting a CIFS/SMB resource and looking at the output of demsg, I found that adding the option vers=1.0 did the ...
38
votes
Mounting cifs: "Operation not supported"
To fill out the answers from @Ken and @Paul: The SMB version needs to be specified when higher than v1:
mount -t cifs \
-o username=USERNAME,vers=3.0 \
//server/share \
/mnt/point
The Linux cifs ...
14
votes
Symlink support with Windows/CIFS server, and linux client
If you are only going to use the symbolic links from your Linux context, the mfsymlinks option to mount.cifs may be what you need:
mfsymlinks
Enable support for Minshall+French symlinks(see
...
13
votes
Accepted
Very slow CIFS/SMB performace
I was just puzzling over a similar sounding CIFS performance problem. Transfers to and from a Windows client and our Samba server had good speed, but downloads from the server to two Ubuntu machines (...
12
votes
mount error : cifs filesystem not supported by the system
I had a similar problem, the module location was changed because of rolling release arch distribution, so path was different. Reboot
9
votes
Mounting Windows shares from /etc/fstab fails, but mount -a works once the system is up
You need to add _netdev to your mount options in /etc/fstab.
//10.10.10.2/DRIVED /home/use0/DriveD cifs credentials=/etc/smbcredentials,iocharset=utf8,fsc,uid=use0,gid=use0,file_mode=0644,...
8
votes
Accepted
dirty_ratio per device
dirty_ratio per device
Q: Are there any ways to "whitelist" the fast devices to have more write cache? Or to have the slow devices (or remote "devices" like //cifs/paths) use less write cache?
There ...
8
votes
Accepted
system-config-samba crash with could not open configuration file `/etc/libuser.conf'
Suffice to create that file:
sudo touch /etc/libuser.conf
And re-run the samba configurator.
8
votes
Accepted
Fstab not automatically mounting SMB storage?
I had to enable the service that automounts network drives as @Ignacio Vazquez-Abrams said. The details are here.
sudo systemctl enable systemd-networkd-wait-online
8
votes
Hard links on CIFS network mount (ext4) silently falls back to copy operation
Solved: at some point the mount lost the serverino Samba mount option. I was never explicitly supplying that option, but it was being set by default (confirmed by checking the /proc/mounts options of ...
7
votes
CIFS VFS: cifs_mount failed w/return code = -95
I get into the same problem.
For me work adding the option vers=2.0
7
votes
Accepted
mount error(115): Operation now in progress
The issue ended up being that the route to the NAS was missing. Once the route was added, I was able to mount the drive with ease.
route add-net x.x.x.x netmask x.x.x.x gw x.x.x.x
Hopefully this ...
7
votes
Accepted
Automatically fetch uid and gid in a command
You can use the id command:
$ id
uid=1000(muru) gid=1000(muru) groups=1000(muru),4(adm),24(cdrom),27(sudo)...
Just the UID:
$ id -u
1000
Just the GID:
$ id -g
1000
So, using command substitution:
$...
6
votes
Permission denied on files in a directory on a CIFS-mounted Windows share in Linux
Further digging revealed a noperm parameter that can be used on the mount command:
sudo mount.cifs //HPSERVER/linux-bup/ /home/maxg/bmsOnSrvr --v -o user=linux,pass=****,noperm
result now:
# [2018-...
6
votes
Accepted
Mouting a remote drive with cifs
UPDATE (see the discussion on the comments):
You are typing \\ instead of //. For linux you must use // even if the network file system is running inside Windows.
The old post:
You are writing ...
6
votes
Accepted
How does mount know that it's a cifs mount without -t?
Does mount assume cifs once it sees the double slashes(//) or is there some other method?
Yes, that's exactly how (lib)mount does it -- if source is not a block device it assumes it is a network ...
5
votes
Mount cifs Network Drive: write permissions and chown
One way to solve this (if you can accept the security risks) is to use CIFS's noperm option to allow all users to read and write to the CIFS mount.
I haven't tested this command, but I believe this ...
5
votes
Setting SMB 2.0 as default for mount operations
Unfortunately the kernel's cifs filesystem module does not read /etc/samba/smb.conf at all. The CIFS client module that allows mounting of Windows fileshares is completely separate from Samba.
The ...
5
votes
Windows CIFS mount error "Function not implemented" or error -11 or -5
I got the Function not implemented error when connecting to a server using SMB3.11 with DFS from CentOS7. Check your kernel version (uname -a). DFS support was added to the kernel in version 4.11. ...
5
votes
Accepted
File system compatibility with CIFS
vfat is a very limited filesystem, it's completely unsuitable to any networked use and any multiuser environment (it's the ancient MS-DOS filesystem). In short, don't use VFAT for anything but USB ...
5
votes
Accepted
linux - smb/cifs Stale cp: cannot open 'file.JPG' for reading: Stale file handle
From the question we see that it can be mounted successfully and the access to files with smbclient is ok.
I suggested to add noserverino to mount options.
noserverino handles cases where the server ...
5
votes
modprobe: FATAL: Module cifs not found in directory /lib/modules/4.4.0-19041-Microsoft
There are two variants of the Windows Subsystem for Linux: WSL1 and WSL2. You haven't stated which one you're using, so I'll explain the situation for both.
WSL1 emulates Linux system calls and ...
5
votes
CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
In my case, installing cifs-utils package fixed the problem.
5
votes
Why can I browse this Windows share using smbclient, but cannot mount it with mount.cifs?
You're connecting to a domain‑based DFS namespace:
\\ad.company.com\Shared\Sites\BLAH
smbclient follows DFS referrals in user space, so it happily walks from the DFS root (\\ad.company.com\Shared) to ...
4
votes
Systemd automount vs autofs
The main difference for me is that autofs, with the right auto scripts, will dynamically list the available shares. So you don't need to pre-define and hard-code which machines/shares should be made ...
4
votes
CIFS VFS: cifs_mount failed w/return code = -95
Maybe your client uses the old SMB1 protocol as default and the newer server only permits from SMB2 and on wards.
I had the same error message on my Ubuntu 20.04 TLS (Client) after I updated my Ubuntu ...
4
votes
Accepted
How to enable unix file permissions on samba share with smb 2.0+
Samba does not yet support UNIX extensions for SMB v2.0+. It is being worked on. [lists.samba.org, 10/2017]
They say that when UNIX extensions will be finalized, the Samba implementation is ”not ...
4
votes
Allow regular user to use mount without SUDO or FSTAB
sudo is not only used for elevating a user to full root access.
Edit the /etc/sudoers file to allow your uses to use mount and umount. Use the sudo visudo to ensure the file permissions are kept the ...
4
votes
Accepted
Is there a way for bypassing the usage of prefix 'sudo'
Your mount command is missing the noperm option. What this does is tell the client to check the username/group against the synthetic ownerships, which in your case are root and root. By specifying ...
4
votes
Accepted
Can't mount multiple shares from a Windows 10 machine on Linux
I do not have a solution unfortunately, but I do have a workaround that might suit your purposes:
This only seems to happen with SMB versions 3.0 and greater, so if you use vers=2.1 instead of vers=3....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cifs × 420mount × 158
samba × 120
linux × 73
smb × 57
permissions × 47
fstab × 43
ubuntu × 33
debian × 29
windows × 29
centos × 22
rhel × 17
automounting × 17
nas × 16
networking × 14
nfs × 14
shared-folders × 14
filesystems × 13
autofs × 12
systemd × 9
raspberry-pi × 9
raspbian × 9
arch-linux × 8
kerberos × 8
symlink × 7