Rate this page del.icio.us  Digg slashdot StumbleUpon

Tips from an RHCE: Quick and dirty automounts

by The editorial team

Contributed by Joshua Hoffman

1. Enable the /net map in /etc/auto.master.

2. Create a new directory to hold your network mounts:

    mkdir /network

3. Create links for the mounts you want:

    cd /network
    ln -s /net/server1/var/ftp/pub/Server Server

4. Now you can just use the links:

    cd /network/Server

5. Best of all, this always works:

    ls /network

6. This trick even works for NIS user homedirs:

    cd /home
    ln -s /net/server1/home/guests guests 

Red Hat’s acclaimed training programs offer a lifetime of experience in a week’s worth of class instruction. And a good portion of the credit for that success goes to the Red Hat Certified Instructors that make a Red Hat training course something special. They have the best tips, and the trickiest tricks. So we thought we’d ask ‘em to share. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.

3 responses to “Tips from an RHCE: Quick and dirty automounts”

  1. vijayan says:

    fine

  2. gmm20 says:

    you can use use –ghost switch in auto.master
    instead of manually-created symlinks.

    /net /etc/auto.net –ghost –timeout=60
    /smb /etc/auto.smb –ghost –timeout=60

  3. Arun says:

    this is also nice

Leave a reply