Surendra Battu proclaimed:
> Is it possible to have CDROM mounted as soon as it is put in?
If you are looking for an "auto run" feature (some program on your CD runs
automatically as soon as you put it in), I doubt it. But automatic
mounting of your CD *when you access the CDROM drive* (not as soon as you
put in the CD) is possible.
Here is what you need:
0. Enable autofs support in your kernel. If you have autofs support
enabled in the kernel you should see the following line when you do a 'cat
/proc/filesystems'
nodev autofs
1. Install the autofs user-space software.
2. Edit /etc/auto.master and add a line like so:
/mnt/autofs /etc/auto.misc
3. Edit /etc/auto.misc and add a line like so:
cd -fstype=iso9660,ro :/dev/hdc
(replacing /dev/hdc with whatever that is appropriate).
4. Restart autofs by running '/etc/init.d/autofs restart' (Debian) or
'/etc/rc.d/init.d/autofs restart' (RH and other deviants ;-)
5. Put a data CD into the drive.
6. cd /mnt/autofs/cd and voila!
> Is it possible to unmount the CDROM directly using the eject button ,i.e.,
> no umount and then eject?
No. That is a bad idea.
Thaths
--
Lisa: It's true. I read it at a placemat at a restaurant.
Homer: Really? A restaurant? Well, now I don't know what to think.
Sudhakar C13n http://www.aunet.org/thaths/ Lead Indentured Slave
-----------------------------------------------------------------------
LIH is all for free speech. But it was created for a purpose - to help
people discuss issues about installing and running Linux. If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.