LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting inserted CD to one folder every time (https://www.linuxquestions.org/questions/linux-general-1/mounting-inserted-cd-to-one-folder-every-time-921352/)

rng 12-31-2011 06:24 AM

Mounting inserted CD to one folder every time
 
I run a windows program thru wine which reads the inserted cd. The problem is that the cd is mounted on a folder created with the name as the label of the cd. But wine needs CD to mounted to only a specific folder every time. How can I manage to have every inserted CD to be mounted to /cdrom folder only? Can I put some line in /etc/fstab? I am using ubuntu linux.

tshikose 12-31-2011 09:12 AM

Then, autofs should be what you need.
I do think (from memory) that it already as the cdrom mounted automatically at /misc/cdrom !
Check /etc/auto.master and /etc/auto.misc, and of course related man pages.

rng 12-31-2011 10:00 AM

There are folders /cdrom and /media/cdrom0, but CDs are being mounted (automatically) at /media/cd-label in ubuntu.


All times are GMT -5. The time now is 10:50 AM.