autofs problem

Michael_E_Brown at Dell.com Michael_E_Brown at Dell.com
Fri Feb 16 14:04:34 CST 2007


Look at the autofs manpage and search for executable map.

Basically, your executable map can look something like:

#!/bin/sh
echo "server:/path"


--
Michael


-----Original Message-----
From: Sturgis, Grant [mailto:Grant.Sturgis at arraybiopharma.com]
Sent: Fri 2/16/2007 1:56 PM
To: Brown, Michael E
Cc: linux-poweredge-Lists
Subject: Re: autofs problem
 


Michael_E_Brown at Dell.com wrote:
> Not sure if this would help, but you may try using an executable map.
> You can write a quick script that just returns your example path to see
> if that helps.

Can you elaborate?  I don't understand.

> 
> Also, can you manually mount the directory from the command line? I find
> it helpful to make sure you can do that before you try with automount.

Yes, the `mount` command works fine with double quotes.

> --
> Michael
> 
>  > -----Original Message-----
>  > From: linux-poweredge-bounces at dell.com
>  > [mailto:linux-poweredge-bounces at dell.com] On Behalf Of Sturgis, Grant
>  > Sent: Friday, February 16, 2007 12:11 PM
>  > To: linux-poweredge-Lists
>  > Subject: autofs problem
>  >
>  > Greetings List,
>  >
>  > Not PE specific, but a silly problem I can't seem to get through.
>  >
>  > My NFS share path has spaces in it and I need to setup an
>  > autofs client to mount it.  The typical mount tricks (double
>  > quotes or \ the spaces) don't seem to work.
>  >
>  > I have tried:
>  >
>  > "server:/path/path with spaces/directory"
>  >
>  > and the system complains that:
>  >
>  > mount(nfs): host "server: lookup failure (the server name
>  > does resolve..)
>  >
>  >
>  > I have tried:
>  >
>  > server:/path/path\ with\ spaces/directory
>  >
>  > and the system complains that:
>  >
>  > mount: server:/path/path failed
>  > (stops the path name at the first space)
>  >
>  >
>  > I have tried:
>  >
>  > server:/path/path\040with\040spaces/directory"
>  >
>  > and the system complains that:
>  >
>  > "mount:  server:/path/path040with040spaces/directory" failed.."
>  >
>  >
>  > Any suggestions?
>  >
>  > Thanks,
>  >
>  > Grant
>  > ---------------
>  >
>  >
>  >
>  > Pardon this rubbish:
>  >
>  > This electronic message transmission is a PRIVATE
>  > communication which contains information which may be
>  > confidential or privileged. The information is intended to be
>  > for the use of the individual or entity named above. If you
>  > are not the intended recipient, please be aware that any
>  > disclosure, copying, distribution or use of the contents of
>  > this information is prohibited. Please notify the sender  of
>  > the delivery error by replying to this message, or notify us
>  > by telephone (877-633-2436, ext. 0), and then delete it from
>  > your system.
>  >
>  > _______________________________________________
>  > Linux-PowerEdge mailing list
>  > Linux-PowerEdge at dell.com
>  > http://lists.us.dell.com/mailman/listinfo/linux-poweredge
>  > Please read the FAQ at http://lists.us.dell.com/faq
>  >
> 



More information about the Linux-PowerEdge mailing list