I have autofs enabled and I use it to automount cd/dvd drive and nfs share
- Install autofs package
- cp /usr/doc/autofs-x.x.x/samples/auto.master /etc
for cdrom, I edited /etc/auto.master as follow :
Code:
# ...
# ...
/cdrom /etc/auto.cdrom
then I created /etc/auto.cdrom file with the content (my cdrom is /dev/hdd) :
Code:
cdrom -fstype=iso9660,ro :/dev/hdd
I issued these commands :
Code:
chmod +x /etc/rc.d/rc.autofs
/etc/rc.d/rc.autofs start
Now to automount the cdrom :
To umount it :