« HOWTO:Set up NFS sharingHOWTO Sort out kvm »

HOWTO Setup and Configure Autofs

21/07/08

HOWTO Setup and Configure Autofs

CDROMs and DVD With A Twist.

I have two DVD players on one of my machines, not sure why now but it was probably a good idea at the time. I like to access them as 0 or 1 rather than cdrom0 and cdrom1. With a little bit of tweaking it was done like this.


Add a new entry to /etc/auto.master to read the map file, add the line and save the changes.

Example:/etc/auto.master
/mnt       /etc/auto.dvd    --timeout=5

We need to create the map file this will setup the cd directory with autofs and call a second map file with the configuration of the two dvd palyers. /etc/auto.dvd has just the one line as below.

Example:/etc/auto.dvd
cd      -fstype=autofs          file:/etc/auto.dvdsub

Finally to setup the lines that will be used to mount the two dvd players

Example:/etc/auto.dvdsub
0       -fstype=iso9660,ro,sync,nosuid,nodev      :/dev/hda  
1       -fstype=iso9660,ro,sync,nosuid,nodev      :/dev/hdb 

The usual check that the files have the correct permissions already. As we changed /etc/auto.master we need to bounce the autofs daemon.


Pages: 1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
What can birds and aeroplanes both do?
antispam test