Computers & Mobiles Technologies

↑ Grab this Headline Animator

Computers & Mobiles Technologies

All about Computers & Mobile Downloads...... Tips & Tricks for Computers and Mobiles Mobile Applications & Games.... Computer Related Softwares & Tips N Tricks and Tweaks for PCs

 
Google

Disclaimer

All information located under current site placed for private purposes and will not be downloaded, viewed or used whatsoever. So current site webmaster or organization hosting this site takes no responsibility for the way you will use information from this site. If you’re member of any anti-piracy or related group or organization you cannot enter this site and view any of site contents. If you enter this site and do not agree with current terms you can not provide any treatment of our hosting ISPs, organization or any persons storing this site information because your actions will be estimated as violation code no. 431.322.12 of the Internet Privacy Act from 1995.

tr>

 Subscribe in a reader

Labels
  • Computer Tips
  • Adsense Tips
  • Mobile Phones
  • Game Reviews & Trailers
  • Online Earnings
  • Blog post Register

    Enter your email address:

    Delivered by FeedBurner

    Computer Tips
  • Windows XP Tip: Turn Off Error Reporting
  • Game Reviews
  • LucasArts and Day 1 Studios Reshape Next-Generation Entertainment With Fracture Futuristic Warfare Is Literally “Groundbreaking”
  • Sponsored Links
    Free Online Earnings
  • Spice up Your Mobile
  • Automount filesystems with flexible AutoFS tool
    Monday, April 23, 2007

    Automount filesystems with flexible AutoFS tool


    I looked at the Amd automounting daemon and how to use it to provide on-demand access to remote NFS shares. Amd is purely a user-space tool, available for Linux and other UNIX operating systems. AutoFS, on the other hand, is partially user-space and partially kernel-space on Linux systems. Unlike Amd, AutoFS comes standard on almost every Linux system.

    If it isn't already on your system, install the AutoFS package. Using apt, urpmi, or yum, all the required dependencies will be installed. Next, edit /etc/autofs/auto.master:

    # mount point     config file             options
    /net              /etc/autofs/autofs.net  --timeout=30 --ghost
    /home             /etc/autofs/autofs.home --timeout=60 --ghost

    This edit defines two master mount points where all automounted directories will live. In this case, both /net and /home are top-level directories that will contain the automounted directories. They are defined by the /etc/autofs/autofs.net and /etc/autofs/autofs.home configuration files, respectively. Finally, the /net tree has an inactivity timeout of 30 seconds, whereas the /home tree has a timeout of 60 seconds. Both create ghost (empty) directories of the mount points listed in the configuration files. This prevents the directories from being removed when they are unmounted.

    Make sure the defined top-level directories exist; you will need to create both the /net and /home directories.

    The /etc/autofs/autofs.net configuration might look like the following:

    # directory    mount options                        device to mount
    remote_nfs   -rsize=8192,wsize=8192,soft,timeo=30,rw  nfs.host:/srv
    remote_smb     -fstype=smbfs,credentials=/etc/smb.auth  ://win.host/Share

    Here, two different types of remote directories are defined. The first is a remote NFS directory, and the second is a remote Samba share. In this case, the first will be mounted as /net/remote_nfs/ and the second as /net/remote_smb/. For the Samba share, credentials are required and are defined in /etc/smb.auth, which would look like:

    username=user
    password=secret

    Make sure this file is mode 0600 and owned by root so the credentials aren't exposed.

    Unlike Amd, AutoFS can also be used to automount local devices. You can use it to automount CD-ROM or floppy devices as well. For instance, to automount a floppy, you would use the following definition:

    floppy      -fstype=auto       :/dev/fd0

    Another difference from Amd is that with AutoFS, the mount program will not show remotely mounted directories. Instead, you will need to peek at /proc/mounts to see what's mounted:

    # cat /proc/mounts | grep autofs

    AutoFS is pretty flexible in that you can use it to automount CD-ROMs, remote NFS and Samba shares, even ISO images. Some distributions include "magic" configuration files that will automount any network mounts available on the network without any preconfiguration. Simply start AutoFS, point to one of these configuration files, and start changing to directories (for example, /net/titan if the remote host's name is titan).

    Delivered each Tuesday, TechRepublic's free Linux NetNote provides tips, articles, and other resources to help you hone your Linux skills.

    Labels:

    posted by Admin @ 8:04 AM  
    0 Comments:
    Post a Comment
    << Home
     
    tr>
    About Me

    Name: Admin
    Home: India
    About Me: I had completed my Graduatation and now in search of Job,
    See my complete profile
    Sponsored Links
    Previous Post
    Archives
    Links
    Powered by

    Free Blogger Templates

    BLOGGER

    Back Link PowerCheap-List.com OS Directory :: Human Edited Web Directory 7CD Directory All Web Links Web Directory Directory
    © 2007 Computers & Mobiles Technologies Template by Isnaini Dot Com