Issue while mounting NFS share using the /net -hosts map via autofs

Solution Verified - Updated -

Issue

  • When attempting to mount NFS shares via the '/net -hosts' map using autofs, the mount operation fails with 'no such file or directory' error.
  • The /net directory does not display available NFS shares.
  • Attempts to access NFS shares under /net/hostname/share result in errors.

    # cd /net/nfs-server/
    -bash: cd: /net/nfs-server/: No such file or directory
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 10

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content