You are not logged in.

#1 2012-06-18 11:12:47

mgmartins
Member
From: Spain
Registered: 2009-06-18
Posts: 26

Can't mount cifs unit after update to kernel 3.4.2.2

Hi,

After upgrade to kernel 3.4.2.2 I can't mount some cifs units. I get this error in dmesg:


[  548.993302] CIFS VFS: Connecting to DFS root not implemented yet
[  548.993417] CIFS VFS: cifs_mount failed w/return code = -22


Spanish Arch Linux user since 2009

Offline

#2 2012-06-18 20:26:16

scubanator87
Member
Registered: 2008-08-11
Posts: 26

Re: Can't mount cifs unit after update to kernel 3.4.2.2

I am having a similar issue but only with cifs units in fstab. When I mount manualy from the command line it works fine.

Offline

#3 2012-06-19 06:04:06

stredini
Member
Registered: 2012-06-19
Posts: 4

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Hi, I'm having the same problem. I've tried editing fstab and also mount it manually via command line, nothing works. Please help..

Offline

#4 2012-06-19 11:05:40

mgmartins
Member
From: Spain
Registered: 2009-06-18
Posts: 26

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Me too. I can't mount it manually.

My fstab:

//wtcdpto/cuentas /mnt/wtcdpto cifs credentials=/etc/red,rw,soft,uid=1000,gid=100,noserverino,_netdev 0 0

Manually I use:

mount -t cifs //wtcdpto/cuentas /mnt/wtcdpto -o username=<myusername>

They don't work.


Spanish Arch Linux user since 2009

Offline

#5 2012-06-19 15:46:52

scubanator87
Member
Registered: 2008-08-11
Posts: 26

Re: Can't mount cifs unit after update to kernel 3.4.2.2

fstab example:

//williamsburg.FQDN/SHARENAME /home/USER/SOMEFOLDER cifs users,noauto,noatime,credentials=/home/USER/.creds 0 0

Manual example:

sudo mount -t cifs //williamsburg.FQDN/SHARE /home/USER/FOLDER -o credentials=/home/USER/.creds

.creds example:

username=USERNAME
password=SOME PASSWORD
domain=DOMAIN

Hope that helps

Last edited by scubanator87 (2012-06-19 15:49:44)

Offline

#6 2012-06-19 21:24:20

stredini
Member
Registered: 2012-06-19
Posts: 4

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Thanks, but still the same error. That is how I have it defined in fstab and how I used to mount it manually before, but after upgrade it is not working anymore... I know it can be mounted via sshfs [user@]host:[dir] /mount/point, but then you have to type in the passphrase each time you want to mount the volume or use passwordless ssh login. I do not like this for security reasons. Somebody any other idea please?

Last edited by stredini (2012-06-19 22:09:40)

Offline

#7 2012-06-21 05:45:18

madcow578
Member
Registered: 2012-06-21
Posts: 2
Website

Re: Can't mount cifs unit after update to kernel 3.4.2.2

I have same problem. It is only affecting DFS root mounts.
I found a patch for opensuse which seems to work. Maybe it is helpfull.

http://bugzillafiles.novell.org/attachm … ?id=494166

I did not tried it for myself.

Last edited by madcow578 (2012-06-21 05:50:14)

Offline

#8 2012-06-22 08:15:48

mgmartins
Member
From: Spain
Registered: 2009-06-18
Posts: 26

Re: Can't mount cifs unit after update to kernel 3.4.2.2

How to apply this patch?

If I try:

patch -p1</tmp/cambios.patch

I get an "File to patch: " message. I ran it from /usr/src/linux-3.4.3-1-ARCH

There is  no files called cifs_dfs_ref.c or connect.c in /usr/src/linux-3.4.3-1-ARCH/fs/cifs (there is only a file called Kconfig).

If I do a

make menuconfig

in /usr/src/linux-3.4.3-1-ARCH, path File systems -> Network File Systems ->CIFS support section, I find that "DFS feature support" is checked, so it should work. But NOT. It doesn't work :'(

Last edited by mgmartins (2012-06-22 08:23:06)


Spanish Arch Linux user since 2009

Offline

#9 2012-06-22 20:49:07

snovik
Member
Registered: 2012-05-06
Posts: 140

Re: Can't mount cifs unit after update to kernel 3.4.2.2

In my case when I use numeric ip address I always receive the "-22" error. However once I tried with symbolic address it worked like a charm. Shocking but true. In both cases - manual mount

Offline

#10 2012-06-23 07:22:54

kimera
Member
From: Venice, Italy
Registered: 2008-04-06
Posts: 9

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Here it works removing "noatime".
Don't ask me why, I've found it here: https://bbs.archlinux.org/viewtopic.php?id=143387

Offline

#11 2012-06-24 19:47:19

alphazo
Member
Registered: 2009-10-20
Posts: 163

Re: Can't mount cifs unit after update to kernel 3.4.2.2

I only mount my samba share via command line like

sudo mount.cifs //server/THESHARE /mnt/babylon-photos -o guest,uid=1000,gid=100,rw

Is there a way to force the mount without the "noatime" option?  Does it come from the fact that my local filesystem has noatime enabled?

[MY MISTAKE] It was not working because I have upgraded the kernel without rebooting therefore cifs wouldn't work even from command line. Rebooted and command line mount worked fine.

Last edited by alphazo (2012-06-24 19:52:37)

Offline

#12 2012-06-25 10:22:41

mgmartins
Member
From: Spain
Registered: 2009-06-18
Posts: 26

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Yes, but I have no "noatime" option include in my fstabs :'(

kimera wrote:

Here it works removing "noatime".
Don't ask me why, I've found it here: https://bbs.archlinux.org/viewtopic.php?id=143387


Spanish Arch Linux user since 2009

Offline

#13 2012-06-25 12:11:58

lambretta
Member
From: Perth, Western Australia
Registered: 2008-11-06
Posts: 20

Re: Can't mount cifs unit after update to kernel 3.4.2.2

mgmartins wrote:

Yes, but I have no "noatime" option include in my fstabs :'(

kimera wrote:

Here it works removing "noatime".
Don't ask me why, I've found it here: https://bbs.archlinux.org/viewtopic.php?id=143387

Problems here as well. My error.log shows....

Jun 25 18:58:02 localhost kernel: [   34.904637] CIFS VFS: Connecting to DFS root not implemented yet
Jun 25 18:58:02 localhost kernel: [   34.914335] CIFS VFS: cifs_mount failed w/return code = -22
Jun 25 19:07:03 localhost kernel: [   32.279555] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3

My fstab entries also do not have noatime.

FYI, my NAS is a dns-323.

Any assistance would be gratefully accepted, in the mean time I'll just mount using sshfs :-(

Last edited by lambretta (2012-06-25 12:30:44)

Offline

#14 2012-07-02 15:44:58

triumphguy
Member
From: Alabama, USA
Registered: 2010-12-26
Posts: 31

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Has anyone file a bug for this issue?

Offline

#15 2012-07-17 12:02:15

forumache
Member
From: Netherlands
Registered: 2011-09-02
Posts: 55

Re: Can't mount cifs unit after update to kernel 3.4.2.2

The fix is included in linux 3.4.5.

It is called "cifs-fix-parsing-of-password-mount-option.patch" and you can see it here, on the 3.4.5 commits.
http://git.kernel.org/?p=linux/kernel/g … 5d#patch46

6 hours ago linux 3.4.5-1 entered Arch testing repository...

Finally wink

Offline

#16 2012-07-18 14:49:49

stredini
Member
Registered: 2012-06-19
Posts: 4

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Yes, finally working for me too after upgrade *yahoo*

Offline

#17 2012-07-24 04:24:52

lambretta
Member
From: Perth, Western Australia
Registered: 2008-11-06
Posts: 20

Re: Can't mount cifs unit after update to kernel 3.4.2.2

Yep - all fixed after the last update (and what an update it was!)

Offline

Board footer

Powered by FluxBB