Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to auto mount cd-rom for samba

Posted on 1998-10-05
3
Medium Priority
?
772 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
[X]
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
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 40 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

636 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