Automounter

Requirements Lets get started...

Package requirements

Recap of the /etc/exports file
  • Any filesystem you wish to automount must be exported by its local server
  • # cat /etc/exports
    /home 192.168.1.0/24(rw)
    /mnt/cdrom 192.168.1.0/24(ro)
    /distro 192.168.1.0/24(ro)

    The Master Map Indirect Map file
    There is an entry for each of these indirect map files in the master map file.
    # cat /etc/auto.home
    pattyo -rw,noquota ponto:/home/pattyo
    joel -rw,noquota ponto:/home/joel
    conner -rw,noquota ponto:/home/conner
    dylan -rw,noquota ponto:/home/dylan

    # cat /etc/auto.prj
    doc       -rw,noquota ponto:/home/oreilly/Linux/Doc
    teaching  -rw,noquota ponto:/home/patty/Teaching/MCC

    Samba Example but not recommeded
    # cat /etc/auto.misc
    oaxaca  -fstype=smbfs,login=pattyo,passwd=xxxxx  ://oaxaca/teaching

    You will need to start the automount process Now, lets try an ls on a automount filesystem
    # ls /prj/doc
    afs
    amd
    automounter
    backups
    bootfloppy
    certification
    chroot
    clock
    debian-inst
    dhcp
    disk-part
    Other files used by the automounter
    /etc/mtab
    Integrating automounter into NIS