[HanoiLUG] mounting w2k3 share at boot
David Favro
HanoiLUG at meta-dynamic.com
Fri Sep 22 15:53:23 ICT 2006
On 9/22/06, Steve <steve at hivemind.net> wrote:
> On 22/09/06, David Tremblay <david at roy-tremblay.net> wrote:
> > [...] it complain that the line is erroneous
My point made for me once again: erroneous how? There should be a
detailed error message. [not David's fault, mount's fault!].
> This is a shot in the dark. Maybe try changing //192.168.0.1/'LERAP DOCS to
>
> //192.168.0.1/LERAP\ DOCS
I had the same thought, but in a slightly different form: the docs for
fstab are silent regarding spaces in the "device name". It does,
however, indicate that in the mount point the can be escaped with
'\040', so it's a good bet that this will work in the "device" field
as well. Try:
//192.168.0.1/LERAP\040DOCS /home/david/lerapdocs cifs
username=david,password=xxxxxxxx,dmask=777,fmask=777 0 0
If not, try:
"//192.168.0.1/LERAP DOCS" /home/david/lerapdocs cifs
username=david,password=xxxxxxxx,dmask=777,fmask=777 0 0
Still no luck? Go to the source, find out how it handles spaces, and
more importantly, insert proper error-handling code so we aren't
guessing as to what the problem and solution are. This is the perfect
example of how low-quality programming wastes everyone's time. We are
guessing at something which is not a random phenomena: there is no
need to do trial-and-error here.
More information about the HanoiLUG
mailing list