[TriLUG] Re: autofs directory within a directory
Lance A. Brown
lance at bearcircle.net
Tue Sep 12 12:17:07 EDT 2006
Tanner Lovelace wrote:
> On 9/12/06, Matt Bidwell <bidwell at dead-city.org> wrote:
>> I've got what should be a very simple problem that I'm just not able to
>> fix. I'm using autofs to mount a folder to the root file directory.
>> Instead what I'm getting is that folder inside of the same folder on
>> the root directory. So instead of having /<folder1>/content I
>> get /<folder1>/<folder1>/content. The /<folder1> is a regular
>> directory, meaning I did a mkdir which it is to my understanding is the
>> proper way.
>> Pertinent file info below, sanitized for your pleasure.
>> /<folder1> /etc/auto.<folder1> --timeout=600 -g
>> <folder1> <host>.local:/export2/<folder1>
> I think you have a small misunderstanding of how autofs
> works. The behavior you are seeing is expected. The
> directory in auto.master lists the directory under which to
> mount all the mount points for that particular auto.[whatever]
> file. Then within auto.<folder1> you list the mount points,
> one to a line, and they then get mounted under the directory
> specified in auto.master.
If you really want the directory to be in root use a symlink in / to
point to where autofs is actually mounting it.
Celebrate The Circle http://www.celebratethecircle.org/
Carolina Spirit Quest http://www.carolinaspiritquest.org/
My LiveJournal http://www.livejournal.com/users/labrown/
GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
More information about the TriLUG