Automonteur basé sur devd(8) pour FreeBSD
Go to file
Slawomir Wojciech Wojtczak (vermaden) 13504fcc86 removed a lot of unneeded code, polish, new features 2012-02-20 20:11:45 +01:00
README removed a lot of unneeded code, polish, new features 2012-02-20 20:11:45 +01:00
automount.conf removed a lot of unneeded code, polish, new features 2012-02-20 20:11:45 +01:00
automount.sh removed a lot of unneeded code, polish, new features 2012-02-20 20:11:45 +01:00
automount_devd.conf commit - Mon Feb 20 12:36:03 CET 2012 2012-02-20 12:36:03 +01:00
automount_devd_DEBUG.conf commit - Mon Feb 20 12:36:03 CET 2012 2012-02-20 12:36:03 +01:00

README

AUTOMOUNT is a devd(8) based flexible yet very simple automounter for FreeBSD.

Currently it supports these file systems:
 -- NTFS requires sysutils/fusefs-ntfs for R/W
 -- FAT/FAT32
 -- exFAT requires sysutils/fusefs-exfat
 -- EXT2
 -- EXT3
 -- EXT4 requires sysutils/fusefs-ext4fuse
 -- UFS

It keeps state of the mounted devices at /var/run/automount.state and logs
all activities to /var/log/automount.log file.

The place for the script is at /usr/local/sbin/automount.sh executable.

The only additional configuration it requires is to add these lines as
/usr/local/etc/devd/automount_devd.conf file, which would allow it to work.

Remember to restart /etc/rc.d/devd daemon after adding
/usr/local/etc/devd/automount_devd.conf file.

INSTALL:

# cp automount.sh        /usr/local/sbin/automount.sh
# cp automount.conf      /usr/local/etc/automount.conf
# cp automount_devd.conf /usr/local/etc/devd/automount_devd.conf
# /etc/rc.d/devd restart

Now plugin Your USB thumb drive ;)

Have Fun ;)
vermaden

----------

Latest changes ...

I removed the state_lock and stat_unlock mechanisms as they appeared to be not
needed, I have shufled with 3 drives all the time and the 'integrity' has not
been lost, at it was a lot faster, because the lock always had to wait for the
'slowest' drive (in term of initializing the device, like USB hard drive).

I simplified the 'attach' section a lot, now each filesystem contains only
check/fsck (if possible), mount and log info.

I also simplified and improved the 'detach' section a little.

I added an option to automatically launch the set-up in config file manager.

These are options that I currently successfully use for NAUTILUS file manager,
You need to set-up all three of them to make it work.

| POPUP=YES
| FM="nautilus --browser --no-desktop"
| USER=vermaden

My whole config looks like that now:

| USERUMOUNT=YES
| POPUP=YES
| FM="nautilus --browser --no-desktop"
| USER=vermaden
| ENCODING=pl_PL.ISO8859-2
| CODEPAGE=cp852

All latest updates are available at GITHUB repository:
https://github.com/vermaden/automount

Regards,
vermaden