Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to auto mount cd-rom for samba

Posted on 1998-10-05
3
747 Views
Last Modified: 2012-06-27
I set up samba and I share cd-rom using samba but I have telnet and mount it every time I have to mount it I have redhat 5.1 and there is automount but I don't know how to set it up  so please help me.
0
Comment
Question by:JBURGHARDT
3 Comments
 
LVL 1

Expert Comment

by:pestilence
ID: 1587056
The better use is not to automount anything exept hard disks at boot...
Why that?
because if you accidently insert an audio cd for instance or a "bad" cd (or your CDROM suddenly crash or buirns....), then this will create a Kernel Panic during boot time...this means that propably you will have major problems with your Linux...so better off with automounts for CD's and Floppy's...you don't want your next question to be:
(Edited by Computer101)... i lost my Linux system....
do ya? :)

0
 
LVL 5

Author Comment

by:JBURGHARDT
ID: 1587057
I know how to mount cd-rom on boot, but I need info on automounting cd-rom when user want to use it and autoumount when is not needed. I am using good cd and no audio cd's
0
 
LVL 1

Accepted Solution

by:
ghjm earned 10 total points
ID: 1587058
I have my CD-ROM set up for automount. I use the following two config files:

/etc/auto.master:
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/auto   /etc/auto.auto  --timeout 60

/etc/auto.auto:
cd      -fstype=iso9660,ro      :/dev/cdrom

With these config files and with automount running, I can cd to /auto/cd and see the CD-ROM. Once the CD has been inactive for a couple minutes, it unmounts.

Hope this is what you wanted...
0

Featured Post

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question