Hot answers tagged

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 ...
NWMT's user avatar
  • 631
37 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 ...
matt wilkie's user avatar
27 votes

Make Linux write to network filesystem concurrently with local disk reads

After some more investigation, it looks like this issue is less kernel related and more about how rsync and CIFS interact. As far as I can make out, what is happening is that when rsync closes the ...
Malvineous's user avatar
  • 6,803
19 votes
Accepted

CIFS randomly losing connection to Windows share

I found an interesting related post here cifs mounted folder keeps disconnecting (ubuntu server), talking of a similar problem (same error, Samba shares). The relevant tidbit here, for following the ...
Rui F Ribeiro's user avatar
19 votes
Accepted

Can you add entries to fstab with a GUI in ubuntu?

On Ubuntu you can edit your fstab using the gnome-disk-utility. From the terminal run gnome-disks or type Disks from the dash. Select the disk then the partition, from the Option menu select Edit ...
GAD3R's user avatar
  • 66.3k
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(...
CODE-REaD's user avatar
  • 255
13 votes

mount error : cifs filesystem not supported by the system

CONFIG_CIFS=m means the CIFS functionality is compiled into a kernel module. If the cifs module isn't loaded after a reboot, you can append a line cifs to the file /etc/modules. The file lists ...
Hoov's user avatar
  • 897
11 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
user351921's user avatar
11 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 (...
rrey's user avatar
  • 126
9 votes
Accepted

Ask for password while mounting cifs share

A quick look at the manual page shows: password=arg specifies the CIFS password. If this option is not given then the environment variable PASSWD is used. If the password is not ...
thrig's user avatar
  • 34.9k
9 votes

Why are files in a smbfs mounted share created with executable bit set?

You can find out why this is happening from the following explanation on the Samba web site under the File Permissions and Attributes on MS-DOS and Unix section: https://www.samba.org/samba/docs/...
Stacey Richards's user avatar
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,...
phemmer's user avatar
  • 71.6k
8 votes

Mounting windows share with write permission for both root and user

sudo mount -t cifs //MOC/php /home/gameboy/Pulpit/Windows-Share -o user=wat,username=gameboy,password=fakepassword,dir_mode=0777,file_mode=0777
trzczy's user avatar
  • 640
8 votes

What does browseable in samba configuration mean?

From the man page: browseable This controls whether this share is seen in the list of available shares in a net view and in the browse list. Consider, do you also have "guest ok"? guest ok ...
Centimane's user avatar
  • 4,460
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.
Vlastimil Burián's user avatar
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
Drew's user avatar
  • 415
7 votes

How to prevent writing to CIFS from stalling for minutes on end?

By default cifs mounts use protocol 1.0, which besides obsolete, is largely inefficient and does not recover well from sleep for several reasons. Depending on what is your server technology, you ...
Rui F Ribeiro's user avatar
7 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? ...
sourcejedi's user avatar
  • 49.9k
7 votes
Accepted

htop does not show a process

Go to setup and change your 'Display' options: F2 > Display options Do not hide kernel threads and show custom thread names: [ ] Hide kernel threads [x] Show custom thread names Save: F10
ctx's user avatar
  • 2,487
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
ceinmart's user avatar
  • 501
7 votes
Accepted

Systemd automount vs autofs

I think you've largely answered your own question. Systemd thinks about most things in a "just in time" manager, so adding automount was an obvious extension. The configuration uses a common style, ...
Dan Christian's user avatar
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:...
muru's user avatar
  • 72.3k
6 votes

Mount cifs using a credentials file

I had a similar issue. For me installing cifs-utils fixed the issue.
FPC's user avatar
  • 161
6 votes

How to make a cifs/smb mount ignore umask?

The noperm fstab option allows all users to read and write to the CIFS mount (which is what umask=000 would have done if it was supported by mount.cifs). Example line in /etc/fstab: \\computer\UNC\...
Daniel's user avatar
  • 668
6 votes
Accepted

Using cups to print to windows domain with password in a separate file

If you create the printer, either through the web ui or via lpadmin with a URL with the special characters % encoded like this: lpadmin -p fake -v smb://bob:pass%20word@rice/BLAH -P /tmp/foo.ppd ...
fledermaus's user avatar
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-...
MaxG's user avatar
  • 403
6 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 ...
Joshua Schlichting's user avatar
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 ...
Vojtech Trefny's user avatar
5 votes

How to move files on remote CIFS share into different remote folder using e.g. smbclient

You can use the rename operation on the remote system to move files from current directory to somewhere else. smb: \> md testfolder smb: \> rename test.mp3 testfolder/test.mp3 smb: \> cd ...
Alex Stragies's user avatar
5 votes

Ask for password while mounting cifs share

To force Centos to prompt you for a password install the following packages: samba-client cifs-utils You can install these by running yum install samba-client cifs-utils as root or with sudo.
matt candy's user avatar

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