Mount error 22 invalid argument cifs

Hello all,

Hello all,

I’ve just tried my first install for 15.0 (clean build) using 64-bit binaries, and have observed a new error with a CIFS Mount being attempted from my /etc/fstab file. Using exactly the same connection string and parameters, I do not see this error with Mint 14.0, either with 32 or 64 bit editions. I have yet to try on 15.0/32-bit but I can if required.

The specific error message I see (when attempting: sudo mount -a) is the following:-

mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

but a broader search aided by Google unearthed the following Bug Report with respect to ubuntu 12.10:-

https://bugs.launchpad.net/ubuntu/+sour … bug/995535

In my specific case the target share is being hosted by an Apple Time Capsule, and CIFS has been the most reliable protocol for connection from my Linux environments. I have had this problem with previous releases of ubuntu, which is one of the reasons for my move to Mint!!! This report

https://bugzilla.redhat.com/show_bug.cgi?id=832741

on the Fedora forums suggests that this might actually be kernel related, which is why I have posted this entry. I wonder if it is possible for the 15.0 kernel to have been released with a different set of parameters that have introduced this problem. I would be grateful for suggestions, and am perfectly willing to experiment with either CIFS or other protocols (that work with a Time Capsule) to achieve a working connection. I am not wedded to use of CIFS… In the hope that it may provide further clarity, this is the fstab connection string that works with 14.0 but not 15.0.

================================================================================================================
//192.168.1.40/Data /media/capsule cifs user={myUserID},password={myPassword},rw,iocharset=utf8,file_mode=0777,dir_mode=0777
================================================================================================================

I will continue to experiment, but would be very grateful for suggestions towards fixes or further diagnosis.

Thanks in advance,

C

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.

Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Доброго дня. Подскажите пожалуйста, что я делаю не так?
Есть виндовая машина 10.20.3.89
Там есть шара OrionBase, доступная всем, даже без пароля.
Пытаюсь смонтировать данную папку.

[root@Srv1CL mnt]# mount -t cifs //10.20.3.89/OrionBase /mnt/win/ -o username=root,password=Integr@tr,vers=1.0
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@Srv1CL mnt]# mount -t cifs //10.20.3.89/OrionBase /mnt/win/ -o username=root,password=Integ@t0r,vers=1.0
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@Srv1CL mnt]# mount -t cifs //10.20.3.89/OrionBase /mnt/win/ -o username=root,password=Integ@t0r,vers=1.0
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@Srv1CL mnt]# mount -t cifs //10.20.3.89/OrionBase /mnt/win/ -o guest
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@Srv1CL mnt]# cd /
[root@Srv1CL /]# mount -t cifs //10.20.3.89/OrionBase /mnt/win/ -o username=root,password=Integ@t0r,vers=1.0
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[root@Srv1CL /]# ping 10.20.3.89
PING 10.20.3.89 (10.20.3.89) 56(84) bytes of data.
64 bytes from 10.20.3.89: icmp_seq=1 ttl=255 time=0.301 ms
64 bytes from 10.20.3.89: icmp_seq=2 ttl=255 time=0.335 ms
64 bytes from 10.20.3.89: icmp_seq=3 ttl=255 time=0.324 ms
64 bytes from 10.20.3.89: icmp_seq=4 ttl=255 time=0.327 ms
^C
--- 10.20.3.89 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.301/0.321/0.335/0.025 ms

Как видите, я и пытался обособить символы в пароле, и обособить все символы, и подключить под гостем.
Так же пытался изменить аргумент vers=1.0

[root@Srv1CL /]# mount -t cifs //10.20.3.89/OrionBase /mnt/win/ -o username=root,password=Integr@tr,vers=3.0
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Мануал читал, но может быть я что то упустил?
Прошу ткнуть пальцем, что я делаю не так?
Заранее, большое спасибо.

BACKGROUND

I’m mounting some windows share directories to my linux box. I’m running Ubuntu 18.04. I have installed cifs-utils and keyutils to perform this task. However, I am running into this mount error (22) issue whenever I try to run the following command…

mount -t cifs -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000 //fs-01/Public /mnt/shares/public

TROUBLESHOOTING

I have verified that my machine can resolve the dns fs-01 which it can. However, I have went ahead and tried to use the ip address as well just to be sure…

mount -t cifs -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000 //1.2.3.4/Public /mnt/shares/public

This still doesn’t work. I have tried to raise the log level of cifs as such…

echo 7 > /proc/fs/cifs/cifsFYI

dmesg will then print the following…

[ 6483.223058] FS-Cache: Loaded
[ 6483.232090] FS-Cache: Netfs 'cifs' registered for caching
[ 6483.233765] Key type cifs.spnego registered
[ 6483.233768] Key type cifs.idmap registered
[ 6483.325252] CIFS: Attempting to mount //fs-01/public

this doesn’t really reveal anything. I have also verified /etc/request-key.conf reflects the following lines and it does…

create cifs.spnego * * /usr/sbin/cifs.upcall -c %k
create dns_resolver * * /usr/sbin/cifs.upcall %k

Some suggestions like this one have suggested installing the following package sudo apt-get install smbfs. However, smbfs is already covered by cifs-utils and so its not needed.

I have also tried several other permutations of the command as such but all of which still reflect the same exact error mount error (22)

sudo mount.cifs //fs-01/public /mnt/shares/public -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000

sudo mount.cifs //fs-01/public /mnt/shares/public -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000,sec=ntlmssp,nounix,vers=3.0

sudo mount -t cifs -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000 //fs-01/Public /mnt/shares/public

sudo mount -t cifs -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000 //1.2.3.4/Public /mnt/shares/public

sudo mount.cifs -o remount,soft,rw,_netdev,credentials=/home/shane/.mycreds,uid=1000,gid=1000 //1.2.3.4/Public /mnt/shares/public

Any ideas?

Понравилась статья? Поделить с друзьями:
  • Mount error 20 not a directory
  • Mount error 16 device or resource busy refer to the mount cifs 8 manual page
  • Mount error 13 permission denied ubuntu
  • Mount error 13 permission denied mount cifs permission denied
  • Mount error 13 permission denied debian