Unable to mount a CIFS drive

The forum for our foreign guests... Please post in English
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Unable to mount a CIFS drive

Beitrag von mike557 »

I have just installed a NAS drive and want to access it from the dbox2.

Currently I have a linux server and have mounted its folders without any problem onto the dbox.

The NAS is viewable in windows explorer just by entering \\192.168.1.205 and I can see the shared folders. Also the NAS appears and is accessible in windows network neighborhood. However I am completely stuck trying to mount it on the dbox2.

I get no errors when mounting from the menus, however choosing the unmount options shows that the drive is not mounted.

Can anyone supply a shell prompt command that I can use to mount for testing as mount -t cifs does not work?

If not possible to mount from the shell, are there any debug functions that can be enabled so that I can 'see' what is going wrong.

I have found out some more info by using "echo 1 >/proc/fs/cifs/cifsFYI" and then "cat /proc/kmsg". It looks like some security failure as comparing a working mount to the failed mount I get :-
<7> connect.c: Good RFC 1002 session rsp
<7> connect.c: Peek length rcvd: 0x24 beginning 0x56)
<7> connect.c: Mid 0x2d matched - waking up
<7> connect.c: Security Mode: 0x3 Capabilities: 0x80e3f9 Time Zone: 65476
and the failed drive is
<7> connect.c: Good RFC 1002 session rsp
<7> connect.c: Peek length rcvd: 0x24 beginning 0x49)
<7> connect.c: Mid 0x2c matched - waking up
<7> connect.c: No session or bad tcon

Anyone got any pointers as to who I can contact to report the problem or what I could do?
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

Ok - I know it is bad practice to add to your own thread however I am still stuck with this problem :cry:
Could someone just answer some basic questions please.
Is it possible to mount a cifs drive from a neutrino shell prompt, and if so could you give an example (-t option does not work).
If not possible how can I diagnose this problem further ?
Thanks for your time and any input you can give.
Mike
PT-1
Moderator english
Beiträge: 2458
Registriert: Donnerstag 20. Dezember 2001, 00:00

Beitrag von PT-1 »

1. Setup the network settings for your network.
2. Under the network settings, select mount network volume.
3. select one of the mounts from the list to edit. Click OK
Use the following settings.


type CIFS

Server IP ip address of your pc
directory/share the share name you specified (tvrecord)
local/dir /mnt (subdir if you want)
mount on startup yes
mount options rw,soft,udp
mount options nolock,rsize=8192,wsize=8192
username new user name created on pc
password new user password
MAC Adress leave it alone
mount now OK button
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

Hi PT-1

Thanks for the pointers however I dont have a problem mounting a linux cifs share, it is just this particular NAS share.
The linux share works fine from my dbox2's however this NAS device is attached to my router and I can view it and access it using network neighborhood in windows 98, but unable to mount in on dbox2.
I get no errors displayed while mounting on the dbox2 but running mount or viewing /mnt/nas I can see that nothing has been mounted.
petgun
Tuxboxer
Tuxboxer
Beiträge: 5001
Registriert: Montag 11. November 2002, 15:26

Beitrag von petgun »

mike557 hat geschrieben:..this particular NAS share..
what kind of NAS-Device do you use?
What you describe is a known Problem and it imo depends to the SMB/CIFS/Samba Version on that NAS-Device...maybe you can fix it, if you edit the samba.cfg on your device.
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

Thanks petgun it is good to know that this could be a known problem.
The NAS is actually a usb2 hdd attached to my Netgear WGT634U router/switch.

When mounting I get the following if using cat kmsg
<7> connect.c: CIFS VFS: in cifs_mount as Xid: 31427 with uid: 0
<7> connect.c: Entering cifs_mount. Xid: 31427 with: username=1,password=1,unc=//192.168.2.254/share/partition1,soft,udp,nolock,rsize=8192,wsize=8192
<4>CIFS: Unknown mount option udp
<4>CIFS: Unknown mount option nolock
<7> connect.c: Username: 1
<7> connect.c: UNC: \\192.168.2.254\share/partition1 ip: 192.168.2.254\share/partition1
<7> connect.c: Socket created
<7> transport.c: Sending smb of length 68
<7> connect.c: Existing smb sess not found
<7> transport.c: For smb_command 114
<7> transport.c: Sending smb of length 47
<7> connect.c: Demultiplex PID: 336
<7> connect.c: Peek length rcvd: 0x4 beginning 0x82000004)
<7> connect.c: Good RFC 1002 session rsp
<7> connect.c: Peek length rcvd: 0x24 beginning 0x49)
<7> connect.c: Mid 0x3c3f matched - waking up
<7> connect.c: No session or bad tcon
<7> connect.c: CIFS VFS: leaving cifs_mount (xid = 31427) rc = -5
<3> CIFS VFS: cifs_mount failed w/return code = -5
<7> connect.c: Wait for exit from demultiplex thread
At the moment, I cant work out how to find out which version of Samba the NAS is using - I know it is Samba but dont remember how to find this info !!!
I dont have access to a shell prompt on the router so it really is difficult diagnosing the problem.

I guess this is some password/security issue.


----------------------
update

I was wrong, -t is available to the mount command.
I can enter
mount -t cifs //192.168.2.3/vdr-root /mnt/nas -o username=1,password=1,unc=//192.168.2.3/vdr-root,dom=home,soft,rsize=8192,wsize=8192
This is the samba linux server and this will mount.

However using
mount -t cifs //192.168.2.254/share /mnt/nas -o username=1,password=1,unc=//192.168.2.254/share,dom=home,soft,rsize=8192,wsize=8192
mount: Mounting //192.168.2.254/share on /mnt/nas failed: Invalid argument
The mount of the NAS fails :(
Anyone know why I am getting Invalid argument or how to debug further?
petgun
Tuxboxer
Tuxboxer
Beiträge: 5001
Registriert: Montag 11. November 2002, 15:26

Beitrag von petgun »

mike557 hat geschrieben:The NAS is actually a usb2 hdd attached to my Netgear WGT634U router/switch..
..what do you think about a NFS-Server for the Netgear? It's _impossible_ to stream >6,5 Mbit/sec with CIFS from the DBox..should be > 8 Mbit/sec with NFS.
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

petgun hat geschrieben: ..what do you think about a NFS-Server for the Netgear? It's _impossible_ to stream >6,5 Mbit/sec with CIFS from the DBox..should be > 8 Mbit/sec with NFS.
The most important thing is being able to access the NAS from the dbox. As I do not have root access to the netgear, then getting NFS sorted out I think would be a big problem.
I was unaware of the speed advantage of nfs over cifs so will certainly make that a long term objective.
petgun
Tuxboxer
Tuxboxer
Beiträge: 5001
Registriert: Montag 11. November 2002, 15:26

Beitrag von petgun »

mike557 hat geschrieben:As I do not have root access to the netgear, then getting NFS sorted out I think would be a big problem..
http://sarwiki.informatik.hu-berlin.de/ ... ar_wgt634u
http://openwrt.org/
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

Thanks for the pointers petgun, I now have root access to the netgear, but feel very uncertain about playing too much with it.

The netgear is running smbd Version 1.9.16 (which seems rather old).

I suppose I am still back to my original question which is how do I mount this NAS drive on the dbox2.

I can 'see' and access the NAS via windows networking but the dbox2 does not give any error messages during the mount (via the menus).
I can mount the NAS on my SuSe linux server using
mount -t smbfs -o username=1,password=1 //192.168.2.254/share /mnt/nas
but I am having trouble with mount.cifs on linux server.
digi_casi

Beitrag von digi_casi »

for smbfs you need special support on the dbox: smbmount etc...
and cifs on the dbox is most probably not compatible with your nas (at least that's my experience with allnet 6200, couldn't mount with cifs either).
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

thanks digi_casi
You are unfortunately confirming my thoughts :(
From what I understand samba supports cifs - so does anyone know how to configure samba to provide cifs rather than smbfs?
I appreciate that this discussion is not directly dbox2 related but again any pointers would be appreciated.
I do now have root access to the netgear so I can re-configure hopefully smb.conf etc.
Calder
Beiträge: 1
Registriert: Sonntag 16. Oktober 2005, 20:24

Beitrag von Calder »

Hi.
I was wondering if you ever sorted this problem out... I have the same router, but unable to mount it!
Anybody got NAS working, regardless of model?
mike557
Neugieriger
Neugieriger
Beiträge: 11
Registriert: Donnerstag 17. März 2005, 15:17

Beitrag von mike557 »

Afraid I did not manage to fix the problem and still looking for suggestions :(