mounting xp share with cifs

Hi all,

I am having trouble mounting an XP share point from a QNX 6.3.2 machine.

I am following the document here:

qnx.com/developers/docs/6.3. … -cifs.html

I have ran the fs-cifs daemon and am running the command:

mount -v -t cifs -o guest,none XP-PC:/rsync-share /fs/xpmach

(XP-PC is on my /etc/hosts file and rsync-share is the share name)

I get the following error from mount with or without the /fs/xpmach folder existing (if that makes sense).

# mount -v -t cifs -o guest,none XP-PC:/rsync-share /fs/xpmach Parsed: mount from [XP-PC:/rsync-share] mount on [/fs/xpmach] type [cifs] mount: Can't mount /fs/xpmach (type cifs) mount: Possible reason: Bad file descriptor

Anyone any ideas ?

Thanks in advance,

David

If memory serves me right mount doesn’t work with fs-cifs. You need to create the mount point when starting fs-cifs.

Ok,

Got further:

# fs-cifs -vvvvv XP-PC:/rsynch-share /fs/xpmach guest none
cifs[1725661341-1]: starting...
cifs[1725661341-1]: name & passwd are in command line.
cifs[1725661341-1]: server [XP-PC]  share [rsynch-share]  prefix [/fs/xpmach]  user [guest]  passwd [hidden]
cifs[1725661341-1]: mount: XP-PC:/rsynch-share -> /fs/xpmach  by guest [0]
cifs[1725661341-1]: new server
cifs[1725661341-1]: establishing connection to (XP-PC)XP-PC
cifs[1725661341-1]: session request: XP-PC:XP-PC -> DIM06
cifs[1725661341-1]: negotiating smb dialect
cifs[1725661341-1]: skey(idx=2): 20501f1e, challenge:(0), 574f524b 47524f55
cifs[1725661341-1]: negotiation: success with dialect=2
cifs[1725661341-1]: logging guest on XP-PC
cifs[1725661341-1]: new packet
cifs[1725661341-1]: returning: mid 0 status= 0
cifs[1725661341-1]: logged in as guest

cifs[1725661341-1]: smb_logon successful: dialect 2 enpass 1
cifs[1725661341-1]: mounting XP-PC:/rsynch-share
cifs[1725661341-1]: returning: mid 1 status= 4390913
cifs[1725661341-1]: smb_mount: No such process
cifs[1725661341-1]: try upper case share.
cifs[1725661341-1]: session request: XP-PC:XP-PC -> DIM06
cifs[1725661341-1]: negotiating smb dialect
cifs[1725661341-1]: skey(idx=2): 3b501f1e, challenge:(0), 574f524b 47524f55
cifs[1725661341-1]: negotiation: success with dialect=2
cifs[1725661341-1]: logging guest on XP-PC
cifs[1725661341-1]: returning: mid 2 status= 0
cifs[1725661341-1]: logged in as guest

cifs[1725661341-1]: smb_logon successful: dialect 2 enpass 1
cifs[1725661341-1]: mounting XP-PC:/RSYNCH-SHARE
cifs[1725661341-1]: returning: mid 3 status= 4390913
cifs[1725661341-1]: smb_mount: No such process
cifs[1725661341-1]: mount failed.
cifs[1725661341-1]: io_mount: smb_connection failed: No such process
io_mount: No such process
cifs[1725661341-1]: name & passwd are in command line.
fs-cifs: missing arguments, or all mount attempts failed.
run "use fs-cifs" or "fs-cifs -h" for help.
#

Seems like smb_mount is missing from my system anyone know where I can get it from?

Strangely enough there is another post on this forum with a similar problem but I don’t understand the solution:

openqnx.com/PNphpBB2-viewtopic-t4682-.html

Where do I find “System Administration-> System → Shared Folders” on xp.

DavidK2,

I assume the person meant the Settings → Control Panel → Folder Options and then under the View Tab you enable ‘simple file sharing’ (bottom option).

This is when you want to simply share a folder/drive without using workgroups etc.

I don’t think this is your issue though since that person was getting a slightly different error with regards to permissions.

Tim

Well I compiled the fs-cifs source in debug mode and cannot figure it out (the source was terrible, no comments, wierd variables names … etc). All I could see was that it was losing the pointer for the mount point at some point during execution. I also compiled samba 3.4.5 to see if there where some tools / utilities that would help me. I seen the smb_mount and mount.cifs mount helpers but unfortunately they built the functionality into the linux kernel so no luck there either.

Currently I’m lost, anyone any other ideas?

Thanks again.

David

Oh just noticed you are using 6.3.2 , that version is bad for me 6.4.1 solved lots of problem.

i also notice this thing :slight_smile: