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.
This appears to be failing because
/mnt/net
doesn't exist.If you're unable to create this directory, try creating a directory elsewhere in the filesystem and mounting your share there instead.
If you are using the windows7 PC by default the anonymous samba user is disabled. So to mount the local windows shared folder onto the QNX(any linux based systems) system you need to change the two registry key values from the below path
HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Control->Lsa
Highlight the Lsa. On the right side you can see the following keys
restrictanonymous restrictanonymoussam Change the value of the above keys from 1 to 0
Restart the PC then you execute the command(replace the appropriate values) //fs-cifs -a //MyMachineName:MyMachineName:/ShareName /mnt/net username password
Then you will be able to mount the local windows shared folder onto any linux or unix based systems.
At the very least, I'd suggest creating
/mnt/net
and giving it another shot. Mostmount
-like programs on Linux follow themount
convention of:of which
<mountpoint>
is presumed to already exist.By default Windows XP has an idiotic thing called "Simple File Sharing" turned on. Disable it via the Folder Options/View dialog. It's right down the bottom of the list of options. Once that is disabled you should be able to access the share.