[jcifs] STATUS_BAD_DEVICE_TYPE why?
Michael B Allen
mba2000 at ioplex.com
Thu Jan 5 18:38:26 GMT 2006
On Thu, 05 Jan 2006 18:45:52 +0100
Erdei Bela <ebela at freemail.hu> wrote:
> Hy All!
> I have a question. What can cause this problem? Every time when i try to
> connect to w2k share i got the following error: STATUS_BAD_DEVICE_TYPE.
> What does it mean? How and where can i solve this problem? In linux box
> or on the w2k machine?
> Here is the tethereal dump:
> User: WORKGROUP\administrator; Tree Connect AndX, Path: \\IS~SGA
> 7.585060 192.168.70.12 -> 192.168.70.9 SMB Session Setup AndX
> Response; Tree Connect AndX, Error: STATUS_BAD_DEVICE_TYPE
Could it be that there are Unicode characters in the share name? A tree
connect should still work but note that listing shares with Unicode does
not work. Try setting jcifs.encoding=Cp850. If the server is Samba you
might get a better result. Otherwise you might see what's going on if
you get a packet capture.
More information about the jcifs