You are not logged in.

#1 2020-04-13 14:56:29

queenmedley
Member
From: Busan / S.Korea Busan
Registered: 2005-06-15
Posts: 68

mount cifs can't mount several folder on same windows server.

windows host name is office1 and 2 folder are shared. (example aaa, bbb)

When mounting  one folder (aaa), there is no error.

$mount -t cifs //office1/aaa /mnt/aaa  -o username.......

But I try bbb folder, it makes error..

$mount -t cifs //office1/bbb /mnt/bbb -o ......

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)

dmesg is

[  136.292122] CIFS: Attempting to mount //office1/bbb
[  136.292156] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[  136.295015] CIFS VFS: cifs_read_super: get root inode failed

I don't understand that error message....
So I have to umount aaa folder and mount bbb folder when I need to mount bbb.

I found that gvfs-smb in pcmanfm can mount 2 folder same time.
but it has problem a write permission of libreoffice, so I prefer mount cifs.

Is it impossible to mount 2 folder sametime with mount cifs command ??

Last edited by queenmedley (2020-04-13 14:57:59)


- Queen Medley

Offline

#2 2020-04-16 16:22:45

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: mount cifs can't mount several folder on same windows server.

Have you tried automounting via fstab or systemd?

The reason I ask is because I can't mount one of my shares (because of permission issues) manually. But works just fine as a systemd mount (and fstab as a fallback).

Offline

#3 2020-04-27 17:19:09

Darkzom
Member
Registered: 2011-03-15
Posts: 28

Re: mount cifs can't mount several folder on same windows server.

Hi!!!

Did you manage to find the solution? I just came back to Arch after a long time and I am struggling with this exact message (google search pointed me here).

Two different mounts from same server (two different hard disks actually, one SSD and the other one regular)

Tried every possible way, fstab, systemd, different options, read through wiki pages, man, everything, it is driving me nuts

[ 1213.709950] CIFS: Attempting to mount //htpc-i7.local/mecanico
[ 1213.709976] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[ 1213.714509] CIFS VFS: cifs_read_super: get root inode failed

If someone would bring light or some directions to fix this I would be really grateful.

Thanks in advance and best regards!

Offline

#4 2020-04-27 17:44:44

Darkzom
Member
Registered: 2011-03-15
Posts: 28

Re: mount cifs can't mount several folder on same windows server.

Found it!!!

I kept googling and it seems a problem that's happening recently:

https://forum.manjaro.org/t/smb-automou … 5-3/107604

just pass as option "vers=2.1" and it just works.

Man I hate this happens so frequently in linux... things that should just work needs to tinker around just too much for the majority of users...

Well, happy fixing!

Regards,

Offline

#5 2020-04-27 17:52:10

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: mount cifs can't mount several folder on same windows server.

Darkzom wrote:

Man I hate this happens so frequently in linux... things that should just work needs to tinker around just too much for the majority of users...

You should worry more about your server using options that are known to be insecure rather than your client being sensible...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB