Unable to mount XP share using fs-cifs from Linux

Posted by MetalSearGolid on Server Fault See other posts from Server Fault or by MetalSearGolid
Published on 2011-07-08T14:08:52Z Indexed on 2012/10/26 23:05 UTC
Read the original article Hit count: 702

Filed under:
|
|
|
|

I have a head unit that runs Linux that is connected to my PC via an Ethernet cable. I have a Windows XP share on this PC that the head unit needs to be able to mount, however, when mounting using the following command, it fails.

Here is the command that fails, along with the verbose output:

# fs-cifs -vvvvvvvvv -l //CUMBRIA-XP:192.168.1.2:/hnet /mnt/net
cifs[2158679-1]: starting...
cifs[2158679-1]: user is to input both name & passwd.
cifs[2158679-1]: server [192.168.1.2]  share [hnet]  prefix [/mnt/net]  user [nu
ll]  passwd [null]
Welcome: 192.168.1.2(:/hnet) -> /mnt/net
Username:headunit
cifs[2158679-1]: user name: headunit length 8

cifs[2158679-1]: new server
Password:

cifs[2158679-1]: establishing connection to (192.168.1.2)CUMBRIA-XP
cifs[2158679-1]: session request: 192.168.1.2:CUMBRIA-XP -> localhost
cifs[2158679-1]: negotiating smb dialect
cifs[2158679-1]: skey(idx=2): 00000000, challenge:(8), 6137bfa2 f2d7803b
cifs[2158679-1]: negotiation: success with dialect=2
cifs[2158679-1]: logging headunit on 192.168.1.2
cifs[2158679-1]: new packet
cifs[2158679-1]: returning: mid 0 status= 0
cifs[2158679-1]: smb_logon successful: dialect 2 enpass 1
cifs[2158679-1]: mounting 192.168.1.2:/hnet
cifs[2158679-1]: returning: mid 1 status= 13
cifs[2158679-1]: smb_mount: Bad file descriptor
cifs[2158679-1]: try upper case share.
cifs[2158679-1]: session request: 192.168.1.2:CUMBRIA-XP -> localhost
cifs[2158679-1]: negotiating smb dialect
cifs[2158679-1]: skey(idx=2): 00000000, challenge:(8), 2d3e910f e3e148c4
cifs[2158679-1]: negotiation: success with dialect=2
cifs[2158679-1]: logging headunit on 192.168.1.2
cifs[2158679-1]: returning: mid 2 status= 0
cifs[2158679-1]: smb_logon successful: dialect 2 enpass 1
cifs[2158679-1]: mounting 192.168.1.2:/HNET
cifs[2158679-1]: returning: mid 3 status= 13
cifs[2158679-1]: smb_mount: Bad file descriptor
cifs[2158679-1]: mount failed.
cifs[2158679-1]: io_mount: smb_connection failed: Bad file descriptor
io_mount: Bad file descriptor
cifs[2158679-1]: user is to input both name & passwd.
fs-cifs: missing arguments, or all mount attempts failed.
run "use fs-cifs" or "fs-cifs -h" for help.

Any ideas? It is worthy to note that /mnt does not exist on the filesystem, but I was told by the company who gave us these units that fs-cifs should automatically create the /mnt/net folders if they don't exist.

© Server Fault or respective owner

Related posts about linux

Related posts about windows-xp