BlankL.S. I have recently revived my FON2202 to be used as a little samba file server next to its hotspot function.
When I share a USB HDD I can see and use the files on it using my Windows
clients. If I do a DIR command (using either CMD.EXE or COMMAND.COM) it does
show me all the files on the share correctly.
However if I use wildcards, for instance doing a DIR *.TXT (and ofcourse there
are a number of .TXT files present) no files are shown and File Not Found is
the error message shown by the DIR command. (.TXT is just an example, any (part
of) the filename, any extension and any combination of the two wildcards * and
? always delivers the samen result: file not found).
Have a look:
Z:\Disc-A1>dir
Volume in drive Z is Media
Volume Serial Number is 00AE-044F
Directory of Z:\Disc-A1
01-01-1601 01:00 <DIR> .
21-04-2009 16:21 <DIR> ..
20-09-2012 23:00 <DIR> Office 2007
24-01-2008 19:21 1.086.613 PowerISO39.exe
14-08-2007 00:45 484 PowerISO39.txt
11-11-2012 20:12 <DIR> Ilse de Lange - Eye Of The Hurricane
29-10-2012 14:31 662.016 Presentatie 15-11-2012.pps
18-11-2012 00:05 <DIR> nhc
01-06-2011 16:38 9.938.313 EZ Gig IV for Windows.exe
04-12-2012 14:30 4.494.456 sp34152.exe
06-01-2013 17:59 4.653.060 fonera.img
6 File(s) 20.834.942 bytes
5 Dir(s) 15.036.416 bytes free
Z:\Disc-A1>
Good, let us now try to only filter out the .exe files:
Z:\Disc-A1>dir *.exe
Volume in drive Z is Media
Volume Serial Number is 00AE-044F
Directory of Z:\Disc-A1
File Not Found
Z:\Disc-A1>
What gives? File Not Found? Are you kidding me?
I have tried an awful lot:
- I have tried a minimal smb.conf
- I have tried different codepages (437, 850, ASCII, UTF8...)
- I have installed an older (2.x) version of Samba on the FON2202
- I have tried it on a share of the root of the FON2202 instead of /tmp/mounts
- I have tried other USB devices
- I have tried almost all relevant smb.conf parameters and combinations of them
- I have tried uppercase, lowercase, all sorts of combinations of wildcards
(*,?)
- I have tried flipper and paco on the FON2202
to no avail; always File Not Found whenever I use wildcards from a command
prompt on a samba share using DIR, COPY, DEL or any other command that accepts
wildcards. And I desperately need wildcards in my batch files...
Windows itself works fine; any dialog box that allows filtering using wildcards
works fine (for instance notepad.exe when opening a file allows to specify
wildcards in its file open dialogue box). So it must be some combination
between the command interpreter under Windows (as I said; both COMMAND.COM as
well as CMD.EXE show this odd behaviour), Windows XP SP3, CIFS and the
Samba/OpenWRT config on the FON2202 that is causing this.
I have two other small Linux boxes here running Samba (2.x and 3.x) and on
these machines it all works as expected... i.e. it can't be my Windows clients.
It must have something to do with Samba or OpenWRT on the FON2202.
I am about to scrap my ideas of using the FON2202 all together, but hope
someone has a clue as to what is happening here.
I am totally flabbergasted by this and haven't seen this in my long career with
Windows, Samba and Linux...
A search on google delivered a small amount of posts of people on all sorts of
other platforms having the same problem with samba/windows but alas no
solutions are to be found anywhere...
For instance; it is even reported on MacOS connecting to a samba share (raising
the suspicion it has nothing to do with the client but must be some problem on
samba servers):
https://discussions.apple.com/thread/4523589?start=0&tstart=0
and here someone using OpenWRT exactly and clearly describing my problem:
https://forum.openwrt.org/viewtopic.php?id=27389
To summarize: all is well using the share using the command prompt or batch
programs but filtering out files in any command using wildcards results in File
Not Found although the files do exist.
Any clues?
Regards,
Ernst
<<Blank Bkgrd.gif>>
_______________________________________________ Development mailing list [email protected] http://fonosfera.org/mailman/listinfo/development
