auto-autofs - generates a automounter map after scanning the system.
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.
Get the name by type. (part, cdrom, zip, etc.).
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.
Check, if an alias defined.
(See $local::name_list in the auto-autofs.rc.local manpage)
If the the name already used, begin numbering. (part1, cdrom2, etc.)
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.
Shows only the options for the entry key.
Execute the command command with the entry key.
For a list of commands take a look at %local::commands
Main Perl file.
Global options configuration file
Local options configuration file
Location and path of needed tools.
Generated HTML file with all found devices and the belonging entries.
Script to umount and/or eject Auto-autofs devices
(only for automount v4).
xeject <auto-autofs name>
The filesystem table.
This script generates the manual pages und HTML pages from
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.
This script generates some directories and files
needed for KDE support.
Take a look at README.
Help file with hints for installation and a lot more.
GNU General Public License.
Changes between different versions.
Peter Korf, <firstname.lastname@example.org>.
README file, automount(8), autofs(5),
autofs(8), auto.master(5), mount(8),
the auto-autofs.rc manpage, the auto-autofs.rc.local manpage.
Autofs has a timeout before it tries to retry a failed
access to the directories/mountpoints.
So, for instance you have to wait between ejecting the cdrom twice.
Umount/Eject via Browser results in an error (File not Found).
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
This program is distributed under the GPL.