LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-19-2004, 06:52 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
How to auto mount cdrom in run level 3?


I just discovered that you have to manually mount devices when you operate in run level 3 (console mode). How can I have the cdrom automatically mounted when someone inserts a cd? Thanks!
 
Old 08-19-2004, 06:58 PM   #2
buffed317
Member
 
Registered: Jun 2004
Location: New Jersey, USA
Distribution: Slackware 11
Posts: 191

Rep: Reputation: 31
i believe if you change noauto to auto in /etc/fstab that will do it
 
Old 08-19-2004, 09:07 PM   #3
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Original Poster
Rep: Reputation: 17
Thanks. Any downsides to changing it?
 
Old 08-20-2004, 12:38 AM   #4
echojihui
LQ Newbie
 
Registered: Mar 2004
Location: Beijing,CHINA
Distribution: RH 9 & slackware 10
Posts: 13

Rep: Reputation: 0
/etc/fstab

change /etc/fstab
cdrom noauto ...> auto
then reboot
 
Old 08-20-2004, 01:18 AM   #5
joesmack
LQ Newbie
 
Registered: May 2004
Location: Kingston On
Distribution: Debian Unstable
Posts: 7

Rep: Reputation: 0
Not really downsides to it. Just gives all users who have physical access to the computer the ability to use the cdrom. Where Windows lets anybody do anything unless you tell Windows not to, Linux wont let anybody do anything unless you tell linux to. For security reasons.
 
Old 08-20-2004, 04:02 AM   #6
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
Quote:
How can I have the cdrom automatically mounted when someone inserts a cd?
Setting auto in fstab will not make your CDs mounted whenever someone inserts one. It will only mount it when there is a CD inside the drive when the system boots up.

It is possible to have CDs (and also USB storage devices etc.) mounted automatically using kernel 2.6 + udev + hotplug + hal + gnome-volume-manager.

R.
 
Old 08-20-2004, 08:20 PM   #7
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Original Poster
Rep: Reputation: 17
Wow, that's a big downside. Thanks for the info. I'm forced to stick with 2.4 for now so I guess I'll have to do the manual mounting of the cdrom.
 
Old 09-19-2004, 05:00 PM   #8
demerson3
Member
 
Registered: Sep 2004
Location: Los Angeles
Distribution: debian stable
Posts: 43

Rep: Reputation: 15
I've got RedHat 8 running here with kernel 2.4.18-14, and it used to automount cds (in gui mode, RL5) -- until I turned it off.
 
Old 09-19-2004, 08:56 PM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,382

Rep: Reputation: 91
Re: How to auto mount cdrom in run level 3?

Quote:
Originally posted by Arodef
I just discovered that you have to manually mount devices when you operate in run level 3 (console mode). How can I have the cdrom automatically mounted when someone inserts a cd? Thanks!
Add your distro(s) in your profile plz.
 
Old 03-07-2009, 11:34 AM   #10
halldorg
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Arodef View Post
I just discovered that you have to manually mount devices when you operate in run level 3 (console mode). How can I have the cdrom automatically mounted when someone inserts a cd? Thanks!
For CentOS 5.2

edit the /etc/sysconfig/autofs

uncomment the
MASTER_MAP_NAME=auto.master

I also uncommented

BROWSE_MODE="yes"

Then you should get /misc/cd as the cd drive
after service autofs restart
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i fix my linux to make it auto mount for cdrom. when i boot the machine saw a pink1dog Linux - Software 11 04-13-2005 02:59 PM
cdrom and floppy drive auto mount problem shams Fedora 1 02-27-2005 08:43 AM
How to mount in Run level 3 InEeDhElPlInUx Linux - Newbie 3 10-09-2003 11:59 PM
auto mount cdrom demmylls Linux - General 1 10-04-2003 10:25 AM
auto mount/ run hpglow Linux - Newbie 2 07-24-2003 05:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration