Skip to contentSkip to conversation

Noob Alert! - automounting /home

DISCUSSION Ian Pilcher 2 participants 2 messages Apr 14, 2006 – Apr 17, 2006 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Apologies in advance for what seems like a stupid question. For my autofs "project", I am trying to automount /home.

My auto.master contains:

/- /etc/auto.direct

And auto.direct contains:

    /home   -fstype=nfs4    192.168.3.1:/

When I start autofs, the following message is logged:

cache_ghost: entry in file:/etc/auto.direct not valid map format,
key /home

This is RHEL 4 update 3, with kernel-2.6.9-34.EL and autofs-4.1.3-169.

What am I doing wrong?

Thanks!

Signature · 3 lines
========================================================================
Ian Pilcher                                        [email protected]
========================================================================
#1 lore raw

==> Regarding [autofs] Noob Alert! - automounting /home; Ian Pilcher <[email protected]> adds:

i.pilcher> Apologies in advance for what seems like a stupid question. For i.pilcher> my autofs "project", I am trying to automount /home.

i.pilcher> My auto.master contains:

i.pilcher> /- /etc/auto.direct

i.pilcher> And auto.direct contains:

i.pilcher> /home -fstype=nfs4 192.168.3.1:/

Direct mounts on top-level directories are not currently supported. You're better off doing something like this:

auto.master:
/home /etc/auto.home

auto.home:
* -fstype=nfs4 192.168.3.1:/&

This is a direct translation of your maps above. I'm not certain that this is really what you want.

-Jeff