You need to use the automounter for that.

1) Check if autofs is running by '/etc/rc.d/init.d/autofs status'. If not, start it.

2) Add a line in your /etc/auto.master like so :
/mnt    /etc/auto.mnt   --timeout=60

3) Create a file called /etc/auto.mnt and add a line like so : 
cd              -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

4) Reload the autofs config files with a '/etc/rc.d/init.d/autofs' reload.

5) Put your CD into the drive and change directory to /mnt/cd. Voila !

6) Use 'eject cdrom' to automatically unmount and eject the cd.


Cheers,

Zainul.


On Fri, 21 Mar 2003 19:56:40 +0530
Pradnyesh Sawant <[EMAIL PROTECTED]> wrote:

|i've changed the options in /etc/fstab for cdrom to "auto"mount, but still the 
|cd's are not automounted. ie. whenever i insert a cd into the drive, i  want 
|it to be automounted, but it does not happen. how do i do it?
|the exact entry in /etc/fstab is:
|/dev/cdrom  /mnt/cdrom  iso9660  auto,users,kudzu,ro 0 0
|-- 
|Pradnyesh Sawant(The doubtfire)
|B.E. I.T. (V.E.S.I.T.)
|[EMAIL PROTECTED]  Ph. no.:27703060
|http://www.geocities.com/spradnyesh
|
|
|-- 
|
|
|http://mm.ilug-bom.org.in/mailman/listinfo/linuxers


-- 


-- 


http://mm.ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to