Solved

How to auto mount cd-rom for samba

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
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…

695 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