формат карт автомонтирования (Format of the automounter maps)
Примеры (Examples)
Indirect map:
kernel -ro,soft ftp.kernel.org:/pub/linux
boot -fstype=ext2 :/dev/hda1
windoze -fstype=smbfs ://windoze/c
removable -fstype=ext2 :/dev/hdd
cd -fstype=iso9660,ro :/dev/hdc
floppy -fstype=auto :/dev/fd0
server -rw,hard / -ro myserver.me.org:/ \
/usr myserver.me.org:/usr \
/home myserver.me.org:/home
In the first line we have a NFS remote mount of the kernel
directory on ftp.kernel.org. This is mounted read-only. The
second line mounts an ext2 volume from a local ide drive. The
third makes a share exported from a Windows machine available for
automounting. The rest should be fairly self-explanatory. The
last entry (the last three lines) is an example of a multi-map
(see below).
If you use the automounter for a filesystem without access
permissions (like vfat), users usually can't write on such a
filesystem because it is mounted as user root. You can solve
this problem by passing the option gid=<gid>, e.g. gid=floppy.
The filesystem is then mounted as group floppy instead of root.
Then you can add the users to this group, and they can write to
the filesystem. Here's an example entry for an autofs map:
floppy-vfat -fstype=vfat,sync,gid=floppy,umask=002 :/dev/fd0
Direct map:
/nfs/apps/mozilla bogus:/usr/local/moxill
/nfs/data/budgets tiger:/usr/local/budgets
/tst/sbin bogus:/usr/sbin