0

auto.master:

/scratch auto.scratch --timeout 60

auto.scratch:

  • -fstype=nfs my.server.org:/scratch

The above configuration mounts by sub directory only e.g. /scratch/dir1 , /scratch/dir2, etc. How do I mount without the sub directory i.e. /scratch to /scratch? In other words, how do I mount a root path to another root path using autofs?

1
  • 1
    Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Apr 24 at 18:19

1 Answer 1

1

After scouring auto.master manual, I realized that we need to use absolute path for this. Here is the answer configuration:

auto.master:

/- auto.scratch --timeout 60

auto.scratch:

/scratch -fstype=nfs my.server.org:/scratch

The above will mount /scratch to /scratch. Pay particular attention to the use of /- and absolute path in auto.scratch.

(This answer was also an inspiration)

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.