auto-autofs



NAME

auto-autofs - generates a automounter map after scanning the system.


DESCRIPTION

Auto-autofs is a Perl script, that scans IDE and SCSI bus for block devices via /proc. It detects partitions on harddisks via fdisk. All devices will get a fitting name like cdrom, zip or part. The program generates a configuration file (automounter map) or works as a configuration program for automount (see autofs(5)).

The script creates also a HTML file (index.html) with all devices/entries, so there is an easy access to the devices.

The listed devices can be unmounted with cd /mnt/<key>~umount or ejected with cd /mnt/<key>~eject. Or using the HTML page by clicking the icon.

Support for loopback images like ISO files. Adds all files in special folders with special extensions to the automounter map.

Support for Konqueror dirtree view or as Quick Browser in the KDE panel. It creates KDE links (*.desktop) for all devices and partitions. See the README for details.

Naming Strategy

  1. Get the name by type. (part, cdrom, zip, etc.).

  2. Search for partitions labels. The partition id returned from fdisk is used. (See $conf::label in the auto-autofs.rc manpage and %conf::partition_types in the auto-autofs.rc manpage) Labels only used for harddisks.

  3. Check, if an alias defined. (See $local::name_list in the auto-autofs.rc.local manpage)

  4. If the the name already used, begin numbering. (part1, cdrom2, etc.)


SYNOPSIS

auto-autofs

auto-autofs key[~command]


ARGUMENTS

Auto-autofs takes the following arguments:

no arguments
Generate/print the automounter map (config file for autofs), the HTML file index.html and the KDE dirtree entries.

NOTE: the HTML file and the dirtree entries are only generated/refreshed when no argument is given.

key
Shows only the options for the entry key.

key~command
Execute the command command with the entry key. For a list of commands take a look at %local::commands in /etc/auto-autofs.rc.local.


FILES

auto-autofs
Main Perl file.

auto-autofs.rc
Global options configuration file

auto-autofs.rc.local
Local options configuration file

auto-autofs.rc.path
Location and path of needed tools.

index.html
Generated HTML file with all found devices and the belonging entries.

xeject
Script to umount and/or eject Auto-autofs devices (only for automount v4).

Use: xeject <auto-autofs name>

/etc/fstab
The filesystem table.

genman.sh
This script generates the manual pages und HTML pages from the sources.

genpath.sh
This script generates a perl script (See auto-autofs.rc.path) which contains information about some commands and their locations. And it creates missing device entries. This generated file is needed for auto-autofs.

genkde.sh
This script generates some directories and files needed for KDE support. Take a look at README.

README
Help file with hints for installation and a lot more.

LICENSE
GNU General Public License.

ChangeLog
Changes between different versions.


AUTHOR

Peter Korf, <peter@niendo.de>.


SEE ALSO

README file, automount(8), autofs(5), autofs(8), auto.master(5), mount(8), the auto-autofs.rc manpage, the auto-autofs.rc.local manpage.


HOMEPAGE

http://auto-autofs.sourceforge.net


BUGS

Bug Reporting

If you have the feeling some devices are not detected or there are errors or so. Please set the debug level to 3 (in the auto-autofs.rc.local manpage) and send me the output of auto-autofs.


COPYRIGHT

This program is distributed under the GPL.

 auto-autofs