[HanoiLUG] mounting w2k3 share at boot SOLVED

David Tremblay david at roy-tremblay.net
Fri Sep 22 16:15:50 ICT 2006


Ok it works  the exact error message was (sorry french shell) when I 
mount -a

[mntent]: ligne 10 dans /etc/fstab est erroné (which is very "light 
reporting)

I got the same error with

//192.168.0.1/LERAP\ DOCS

"//192.168.0.1/LERAP DOCS"

but did work with

//192.168.0.1/LERAP\040DOCS

Thanks for your help


David Favro wrote:
> 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.
> _______________________________________________
> HanoiLUG mailing list
> HanoiLUG at lists.hanoilug.org
> http://lists.hanoilug.org/mailman/listinfo/hanoilug
> 
> 
> 


More information about the HanoiLUG mailing list