14.04 CIFS mounting windows 8 share 'input output' error
46
I just had the same issue with a Windows 8.1 host (Asus TF100TA), when I tried to access a public share from my Ubuntu 14.04.2 LTS host (kernel 3.13.0-53-generic - might be a bit outdated).
Solution for me: Upgrade SMB version from 1.0 (Windows 9x) to 2.0 (Vista).
root@thor:/mnt# mount -t cifs -o guest,vers=2.0 \\192.168.1.115\cam /mnt/network
Possible values for "vers" (from the manpage):
vers= SMB protocol version. Allowed values are:
· 1.0 - The classic CIFS/SMBv1 protocol. **This is the default.** · 2.0 - The SMBv2.002 protocol. This was initially introduced in Windows Vista Service Pack 1, and Windows Server 2008. Note that the initial release version of Windows Vista spoke a slightly different dialect (2.000) that is not supported. · 2.1 - The SMBv2.1 protocol that was introduced in Microsoft Windows 7 and Windows Server 2008R2. · 3.0 - The SMBv3.0 protocol that was introduced in Microsoft Windows 8 and Windows Server 2012.
2.1 did NOT work for me, but 2.0 did. Just test with the different versions.
Related videos on Youtube
Author by
Bruno
Updated on September 18, 2022Comments
-
Bruno over 1 year
I trying to put firstname and lastname in the same line but without success, instead this return firstname, lastname value in list. What I'm doing wrong?
foreach (DataRow dr in dt.Rows) { this.lstBoxRunnerName.Items.AddRange(new object[] { dr["firstName"].ToString() , dr["lastName"].ToString(), }); }
-
itsme86 over 3 years
lstBoxRunnerName.Items.Add($"{dr["firstName"].ToString()} {dr["lastName"].ToString()}");
-
Panagiotis Kanavos over 3 yearsA listbox doesn't have columns. You need a different control, or concatenate the values into a single string.
AddRange
adds multiple individual items, it doesn't create columns -
itsme86 over 3 years@PanagiotisKanavos I think OP meant
DataRow
columns. -
AnGG over 3 yearsI think he that columns mean from DataRow
-
Robert Harvey over 3 yearsWinforms or WPF?
-
Bruno over 3 years@itsme86 Thanks, for the help, it fit in my code perfectly ( > . < )
-
-
Jürgen A. Erhard almost 8 yearsHow is specifying 2.0 a downgrade when the default is 1.0?
-
ArchimedesMP almost 8 yearsOh, @JürgenA.Erhard is right... I simply assumed the client would try the server's version first, when in fact it defaults to 1.0 - as specified in the manpage I posted. Whoops. I believe some Windows version started to default to SMB shares "incompatible with older versions of Windows" (MS wording) -> they default to 2.0 or newer. With the decline of Windows XP and 9x, it seems safe for the client to default to to 2.0 or newer. Anyway, I'll adapt the answer. Thanks for the hint :)