LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 05: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, 08: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-19-2004, 11:38 PM   #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, 12: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, 03: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, 07: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, 04:00 PM   #8
demerson3
Member
 
Registered: Sep 2004
Location: Seattle area
Distribution: debian stable
Posts: 51

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, 07:56 PM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
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, 10: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



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 01:59 PM
cdrom and floppy drive auto mount problem shams Fedora 1 02-27-2005 07:43 AM
How to mount in Run level 3 InEeDhElPlInUx Linux - Newbie 3 10-09-2003 10:59 PM
auto mount cdrom demmylls Linux - General 1 10-04-2003 09:25 AM
auto mount/ run hpglow Linux - Newbie 2 07-24-2003 04:01 PM

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

All times are GMT -5. The time now is 02:24 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
Open Source Consulting | Domain Registration