Failed to mount windows share invalid argument

Forum rules Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Frederick Turner

Level 1
Level 1
Posts: 37
Joined: Wed Sep 02, 2015 2:57 pm

Failed to mount Windows share: Invalid argument

I have problems to connect to the server ( Windows share ) at my workplace. The IT department have no experience with Linux Mint and therefore cannot help me how to connect from home.

They instructed me that the address is smb://abc.defg.hi/<SHARE>

<SHARE> = Name of the Windows share

They said that I’m then prompted to enter my username, which I would have to do as follows:

DEFG/username

After then entering my password I get the following error message: «Failed to mount Windows share: Invalid argument»

What am I doing wrong? I’m using the Linux Mint 17.2 with Cinnamon. Nemo is the file manager. I accessed the GUI via File >> Connect to Server

Do I have to enter the name of the Windows share right behind the server address as in smb://abc.defg.hi/<SHARE> or should the server address be just smb://abc.defg.hi/ ?

As I don’t get a prompt but have to insert my User Details straight away, do I also have to fill in the Domain name (probably with DEFG)?

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

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

Linux Mint 17.2 64-bit Cinnamon

Cosmo.

Level 24
Level 24
Posts: 22055
Joined: Sat Dec 06, 2014 7:34 am

Re: Failed to mount Windows share: Invalid argument

Post

by Cosmo. » Thu Sep 17, 2015 3:31 pm

Frederick Turner wrote:Do I have to enter the name of the Windows share right behind the server address as in smb://abc.defg.hi/<SHARE> or should the server address be just smb://abc.defg.hi/ ?

That shouldn’t matter in regard of connectivity.

To make it work you might try one of the following:

1. instead of abc.defg.hi enter abc.defg.hi.local

2. instead of abc.defg.hi enter the IP-address

3. Edit /etc/samba/smb.conf, find the line

Code: Select all

name resolve order = lmhosts host wins bcast

and place lmhosts behind bcast

Regarding the username: I don’t think that you have to enter DEFG/username, but only username (but I don’t know anything about your network of course). If DEFG is the domain name, enter it into the respective field.

Hi,
When trying to connect to samba share with nautilus where password is needed, I get

Unhandled error message: Failed to retrieve share list from server: Invalid argument

I just installed my system yesterday, so I didn’t do anything that could mess up with config. I installed samba, smbclient, polkit, gvfs, gvfs-smb. And used default samba config as my config.

Running nautilus from command line didn’t show any errors or warnings.

In journalctl I only see this error:

Kerberos auth with 'adrian@WORKGROUP' (WORKGROUPadrian) to access '(IP)' not possible

I can connect to the share with smbclient using the same name and workgroup without any issue. On ubuntu connecting to samba share with nautilus worked out of the box.

Mounting with cifs also works without any issue, but I don’t want to mount share on startup or mount it everytime from command line

I also tried

client min protocol = CORE
server min protocol = CORE

but it also didn’t work out.

Samba and smbclient version:

Nautilus version:

Anyone could help?

EDIT: connecting to sftp share with nautilus works flawless. I’m getting prompt for password and share mounts without any issue. So it must be something with samba or gvfs-smb

Last edited by Arko (2022-03-28 12:54:27)

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Networking & Wireless
  • [SOLVED] Newly Broken — Ubuntu access to Windows Share folders via Samba

  1. Newly Broken — Ubuntu access to Windows Share folders via Samba

    After many years of accessing my Workstation Windows share folders, it has suddenly broken on my Ubuntu 20.04.4 LTS laptop.
    (I can still successfully access these shares on my other iOS & Windows machines)
    Using Nautilus/File Manager i get error meassages….
    — Directly connecting to a Share Folder….
    ———-«Unable to access location. Failed to mount Windows share: Invalid argument»
    — Directly connecting to that PC (and see ALL shared folders)…
    ———-«Unable to access location. Failed to retrieve share list from server. Connection refused.»
    — Directly connecting to «Windows Network»
    ———-«Unable to access location. Failed to retrieve share list from server. No such file or directory.»

    I assumed it’s due to a recent update of either Ubuntu, Windows, or Samba. But that’s a guess.
    My firewall is inactive, & I have checked my Workgroup name is consistent.

    I have read other discussions on this forum, and attempted repairs about this error with no solution to date…. (hence the new thread :^ )
    This includes……
    — updating Windows & Ubuntu
    — installing old version of Samba
    — Editing smb.conf files to add….
    — Adding «client min/max protocol = SMB1, 2, and 3» in sequential attempts —
    — Editing /etc/hosts file to include Windows server address/name

    Following the failure of all above attempts, I then purged Samba installation & reinstalled the current Samba release…. still broken.

    I hope there’s an easy fix forsomething that’s been trouble-free for so long.
    (I’d like to stick with Samba, rather than NFS, as all sharing software has been set up for this.)
    PS: I am a coding/IT neophyte so please explain any suggestions as if I was your 4 year old child

    thanks, Boo

    Last edited by boohyperad; April 25th, 2022 at 11:35 PM.


  2. Re: Newly Broken — Ubuntu access to Windows Share folders via Samba

    [SOLVED]
    Further scourering of previous threads on this topic found solution for me…
    Thanks to «Morbius1» from thread… https://ubuntuforums.org/showthread.php?t=2435292
    Adding «.local » after my PC host-name in file manager’s location bar fixes issue for me (never had to do this in the past)
    Thanks Mobius1 ;^)

    ———————————————————

    You can get that error message from trying to access from your file manager any server that has disabled smb1. It’s becasue of a bug in a sub-componenet of gvfs.Access it this way in your file managers location bar:
    Code:
    smb://win10-host-name.local/share-name

    You have to specify the windows host name and share name explicitly. You can’t use smb://win10-host-name.local by itself to see the list of shares.

    ———————————————————


Bookmarks

Bookmarks


Posting Permissions

I am trying to mount a password protected samba share.

When I access the share via smb://server/share in nautilus there is no password/user promt, it seems I am logged in as a guest and I can browse folders but I cannot access my files (which are in a subfolder that appears to be empty).

When I use nautilus GUI «connect to Server» prompt, I get back «Please verify your user details» although I am absolutely certain they are correct.

Note that I can access the share and my files without problem via

smbclient -U user //server/share

Also, using a MacOS machine I can also mount the shares without any problems.

So I try to mount the share via the commandline:

sudo mount -t cifs -o user=user //server/share  /mnt/sth

which produces

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

This seems to be a Kernel related bug: https://bugzilla.redhat.com/show_bug.cgi?id=832741.

So my question is: what’s the simplest way to solve this? Did anyone experience something similar? Did a Kernel update solve it (at the redheat forums it seems to work for some but not for others). Am I doing something wrong?

I use linux mint xcfe 13, my Kernel version is 3.4.0.

EDIT: 20/2/2013, I still don’t have a solution for this and appreciate any help.

Доброго дня. Подскажите пожалуйста, что я делаю не так?
Есть виндовая машина 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)

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

j4media

Crewman
Posts: 9
Joined: Fri Jan 25, 2019 8:27 pm

I’m having a problem connecting to one of my network shares via Samba.

When I put in the address smb://my network share location, I can see the sub folders, but when I double click on the folder to open it I get the error «Failed to mount Windows share: Invalid argument».

I am able to access this network share with other PCs in my network so I think there is something I need to configure on my ArcoLinux box.

Can somebody help?

Thanks in advance!

John

User avatar

erikdubois

Captain
Posts: 5360
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Sat Mar 09, 2019 6:24 am

I like you to run this one

/home/$USER/.bin/main/150-install-network-discovery-v4.sh

so we are sure you have the necessary software

then check if /etc/nsswitch.conf has the correct data

Code: Select all

# Name Service Switch configuration file.
# See nsswitch.conf(5) for details.
# we changed nsswitch.conf to have access to nas servers
# This config file comes from the package filesystem
# Added two & otherwise installation script 140 
# from ArcoLinuxD will change it

# This is the original line (minus 2 &)
# hosts: files & mymachines myhostname resolve [!UNAVAIL=return] & dns

# This is our ArcoLinux line
# hosts: files mymachines resolve [!UNAVAIL=return] mdns dns wins myhostname

passwd: files mymachines systemd
group: files mymachines systemd
shadow: files

publickey: files

hosts: files mymachines resolve [!UNAVAIL=return] mdns dns wins myhostname
networks: files

protocols: files
services: files
ethers: files
rpc: files

netgroup: files

Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

j4media

Crewman
Posts: 9
Joined: Fri Jan 25, 2019 8:27 pm

Sat Mar 09, 2019 9:08 pm

I connected to the IP address instead of the network share name and it worked as expected.

Not sure why it wouldn’t let me connect with the network share name, but I’ll troubleshoot further with the suggestion you made above.

Thanks for your help!

rcraw

Crewman
Posts: 5
Joined: Sat Apr 06, 2019 5:45 pm

Mon Apr 08, 2019 2:20 am

I’m having the same problem. This is happening on HP Probook Laptop running ArcolinuxD Xfce. I’m need to connect to my Windows 10 tower. I use thunar smb://Dell-780 in my terminal. I»m getting error window, see below.
I booted Arcolinux usb boot stick, It connect without any issues.

Arco-Linux-2019-04-07-19-12-32

Thanks Robert

User avatar

erikdubois

Captain
Posts: 5360
Joined: Tue Nov 07, 2017 3:45 pm
Location: Belgium
Contact:

Mon Apr 08, 2019 8:02 am

Run the script in your very own folder

/home/erik/.bin/main/150-install-network-discovery-v4.sh

Learn, have fun and enjoy.
But first use the power of the Arch Wiki
use the tutorials on https://www.youtube.com/erikdubois
then use the power of google
then use the power of our moderators.

rcraw

Crewman
Posts: 5
Joined: Sat Apr 06, 2019 5:45 pm

Mon Apr 22, 2019 3:31 am

I just ran the 150-install-network-discovery-v4.sh script. I had already installed the packages this script called for. I ran thunar smb://Dell-234 from my termite terminal and it failed. I tested with a usb live flash drive of Xubuntu 18.04.1 and it worked right out of the box. It runs great on Manjaro Xfce. This is on a fresh install of Arcolinuxb Xfce Minimal 19.03.3 on my HP Probook 6450 laptop with 8 gb ram and SSD drive.

Понравилась статья? Поделить с друзьями:
  • Faceapp для windows скачать бесплатно на русском
  • Faceapp для windows 10 скачать торрент
  • Face time на pc для windows скачать
  • Face it античит для windows 7
  • Face fault in nonpaged area windows 10