Hot answers tagged

38 votes

16.04 CIFS "Host is down" but they are not

After many tests adding vers=1.0 in the mount line seems to fix the problem. The mount works now on Ubuntu 17.10 like it did for years on older Ubuntu releases.
29 votes

How to map a network drive?

open a Nautilus window click Go in the menu, or alternatively press Ctrl+L enter smb://remote_host/share_name Go to Bookmarks and click add
  • 391
26 votes
Accepted

Unable to mount cifs with iocharset=utf8

Probably, your Kernel doesn't contain the nls_utf8.ko module. If it's your case, you will see similar entries in your dmesg output: [ 612.598233] CIFS VFS: CIFS mount error: iocharset utf8 not ...
22 votes

x-systemd.automount & CIFS shares in fstab

systemd was introduced in ubuntu 15.04. After adding x-systemd.automount to an fstab line, you need to run: sudo systemctl daemon-reload and then one, or both, of the following: sudo systemctl ...
22 votes
Accepted

Specify SMB 3.0 in /etc/fstab

I had the same problem which was also due to an upgrade to one of my institute’s servers. I managed to mount the share by adding the vers=3.0 option to fstab without the -o argument. sudo mount -t ...
22 votes

CIFS mount in FSTAB does not work after update

I actually do not know why, but after update the sec=ntlm option for cifs in fstab does not work anymore and forced me to use the option vers=1.0. After removing sec=ntlm it works again. I think the ...
21 votes

cifs, smb - Can't mount (permission denied) or navigate shared folder

I'm pretty sure I ran into this exact same problem today on Ubuntu 16.10 I tried all the suggestions in this thread several times, I could mount the exact same share using Windows Server 2016 and I ...
19 votes
Accepted

Mount Windows share as guest from command line

You need to add the version to the options depending on the cifs version you use. So that would be for v1.0: sudo mount -t cifs -o rw,guest,vers=1.0 //192.168.1.1/Fab-EXT4 /media/MichelNAS/ There is ...
  • 289k
18 votes
Accepted

mount.cifs fails with mount error(2): No such file or directory

This is just a guess because I don't remember what the default settings were on Samba 3.6 but I think CIFS is trying to mount with an smb dialect that that version of samba didn't have yet. Add the ...
  • 6,811
17 votes
Accepted

16.04 CIFS "Host is down" but they are not

I'm facing the same problem. It seems it has something to do with newest Kernel versions and samba. I've managed to solve this by adding vers=2.0 at mount commands (or a the end of each fstab line)
15 votes

How do I mount a CIFS share?

It's as map7 said, but if you don't want to use root permissions every time you change a file on the drive, then you'll have to mount to a user folder, and make sure the gid and uid are set to your ...
15 votes

Mounting cifs drive gives: mount error(22): Invalid argument

Another possible cause is the presence of sec=ntlm in /etc/fstab and it's incompatibility with newer SMB protocols like SMB3. While not the OP's case, this can also cause mount error(22): Invalid ...
  • 2,697
13 votes
Accepted

Remount CIFS on network reconnect

Your script seems like a viable option to me. I've seen far more convoluted workarounds to issues in Linux. Another alternative is a systemd automount which fulfills the or at least mounting ...
  • 6,811
12 votes

cifs, smb - Can't mount (permission denied) or navigate shared folder

I think you have the wrong security type for the server , error 13 means the server isn't letting you in. You will need to select the right security mode in your mount command add a sec option via -o ...
  • 5,152
12 votes

cifs mounting all files as root owner

mount -t cifs "//myipaddress/myshare" /home/myuser/mymount/ -o username=myusername,password=mypassword,uid=myusername,gid=users
  • 9,955
12 votes

Mounting Windows Share using SMB 2.1 or greater

If I use ver, it realy types "Invalid argument" but man mount.cifs says that the option name is "vers", not "ver". vers= SMB protocol version. Allowed values are: · 1.0 - The ...
  • 129
12 votes

CIFS mount in FSTAB does not work after update

I just had the same issue with this line in fstab and after upgrading Ubuntu //10.0.0.10/D$ /mnt/toruk/d cifs credentials=/etc/winpassword.txt,iocharset=utf8,sec=ntlm,ro 0 0 Which got me the same ...
  • 221
12 votes
Accepted

how to setup ubuntu that fstab runs after network is connected?

You can declare this filesystems as a network device by adding _netdev to the options sections of your fstab line like so: //192.168.5.167/H /mnt/ssd cifs credentials=/root/.smbreds,_netdev,noauto,x-...
  • 20.1k
11 votes
Accepted

mount share cifs folder without sudo

To be able to mount that folder as a normal user, include the mount options for the cifs folder in the configuration file /etc/fstab, and add the options noauto,user, similar to: //nas-server/...
  • 78k
10 votes

Mounting cifs drive gives: mount error(22): Invalid argument

I had the same issue on Arch Linux, with this message in log: kernel: CIFS VFS: cifs_mount failed w/return code = -22 For me the solution was to specify older version of cifs (by default it was 3.0):...
10 votes

Unable to mount cifs with iocharset=utf8

When dmesg complains like this: CIFS VFS: CIFS mount error: iocharset utf8 not found Let me slightly update the information for Ubuntu 16.04 When the package below is not installed only NLS for ...
  • 141
10 votes

Cannot mount remote drive. I get the error: mount.cifs: bad UNC (/servername//data.xxx.xxx.ac.uk/)

UNC syntax is //server/share, not /server//share/. Note double slash before the server name, one slash between the server name and the share name.
  • 9,927
10 votes

How do I use a credential file for CIFS in /etc/fstab?

My working credentials file is located in my ~ folder and looks like this username=[username] password=[password] Its permissions are -rw------- and it is owned by my user. The corresponding fstab ...
9 votes

cifs, smb - Can't mount (permission denied) or navigate shared folder

Try to add the "-v" option to get verbose output: sudo mount -v -t cifs //fileshare1/docs1/user/My\ Documents/shared/Francesco/ /home/frank/mnt_folder -o \ username=my_user,password=my_pass,...
9 votes

cifs mount fails with "mount error(112): Host is down"

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 (...
9 votes

Ubuntu 17.10 issue with mount cifs

I had the same problem after upgrading to Ubuntu 17.10. Suddenly, my CIFS shares would no longer mount. Adding vers=1.0 to the mount options fixed it for me. Admittedly, this is a bit of a bodge, but ...
9 votes
Accepted

CIFS mounts and Kerberos - permissions on access or best practice

Use automount + multiuser option of mount.cifs You can achieve this using automount and the multiuser option for mount.cifs. Install the required packages: sudo apt install autofs keyutils cifs-...
9 votes
Accepted

Why is mount.cifs not working in fstab any more after upgrading from 16.04 to 18.04?

What worked for me was adding vers=1.0 to the options in fstab in combination with changing the option for password from passwd to password: //192.168.111.112/RAID /home/moi/share/OMV cifs vers=1.0,...
  • 1,859
8 votes

Mounted cifs share but no write permissions

In my case solution was to add noperm option on the fstab entry
8 votes

Mount SMB share with gvfs from command line

At least with Ubuntu 18.04, the following works: $ gio mount smb://<server>/<share> Password required for share <share> on <server> User [<user>]: Domain [<workgroup&...

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