Solved

How to auto mount cd-rom for samba

Posted on 1998-10-05
3
731 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now