CIFS Shares used to work, now won't mount at all

I’ve had my laptop using Manjaro for years. Always done updates whenever they come out. And in the last few months I’ve gone to use some of my CIFS shares and noticed they are not mounting properly.

They are in the /etc/fstab file as follows:

//192.168.x.x/shared   /mnt/shared    cifs guest,credentials=/home/nat/.smbcredentials.nas,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm,sec=ntlmssp 0 0

if I try and mount it with “sudo mount /mnt/shared” it says there is an error message and dmesg says:

[47074.909701] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[47074.909704] CIFS: Attempting to mount //192.168.x.x/shared
[47087.236449] CIFS: enabling forceuid mount option implicitly because uid= option is specified
[47087.236452] CIFS: Attempting to mount //192.168.x.x/shared
[48008.516646] CIFS: Attempting to mount //192.168.x.x/shared
[48008.523929] CIFS: Status code returned 0xc000006d STATUS_LOGON_FAILURE
[48008.523936] CIFS: VFS: \\192.168.x.x Send error in SessSetup = -13
[48008.523939] CIFS: VFS: cifs_mount failed w/return code = -13

If I connect with the command, "smbclient -d3 -U nat //192.168.x.x/shared " It logs in fine, and I can list all the files.
If I connect through the GUI using nautilus or something using “smb://” it works fine too

This doesn’t matter which machine I try connecting to. I’ve tried 3 different IPs for computers, both netbios name and IP

What else am I missing?

You are mounting from fstab - which will make it a hit or miss - depending on the state of your network.

That is possibly why you can mount from command line but not using fstab.

I’m not sure what would cause the network to fail… There’s barely anything running on it and between the switch I am on and the NAS is a 10GB connection

If the network is not available when fstab is parsed - then the share will not be mounted but is likely to cause a system hang for 120s.

Please see the mount unit samples topic in the Tutorials section on how to properly mount a samba share or you can use the utility script using gio.

[root tip] [Utility Script] GIO mount samba share
[root tip] [How To] systemd mount unit samples
[root tip] [How To] Basic Samba Setup and Troubleshooting

1 Like

Seeing as it’s a network share you’re trying to mount and it works if you browse to an smb://* location, try setting up systemd mount unit for SAMBA instead:

1 Like

OK. I never realised that this had all changed so dramatically.

I will have to read up and figure it out tomorrow… it’s a 11pm where I am and brain is a bit dead right now. Thx for your replies

2 Likes