Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2013, 03:21 AM   #1
Registered: Mar 2013
Posts: 36

Rep: Reputation: Disabled
Question Auto mount cdrom when startup

Hi all,

May i know what file should i need to modify to set the system mount the cdrom after my F15 restart or start up? Is it possible to modify the /etc/fstab file?
As like as mount the usb device when system start up?

Brgds/Brandon Chau
Old 03-27-2013, 04:08 AM   #2
Registered: Nov 2007
Distribution: Fedora, CentOS,
Posts: 72

Rep: Reputation: Disabled
IMO, this is not a good idea, what if there is no cd?
I think you should use /etc/mtab, but if u want to keep everything tidy and you only want it be mounted during start up (not on init level change) than I recommend using a script that checks if the cd-rom media is available and mount it, than add it under /etc/rc.local file.
Old 03-27-2013, 09:55 AM   #3
LQ Newbie
Registered: Mar 2013
Location: India
Distribution: RedHat Enterprise Linux Server Edition 5.5
Posts: 13

Rep: Reputation: Disabled
You can very well make an entry in your /etc/fstab file and if you haven't inserted any disk i your system it will just give an error as unable to mount. Later when you insert the disk you can give
mount -a
command to mount it.......
Old 03-28-2013, 12:47 AM   #4
Registered: Mar 2013
Location: ahmedabad
Distribution: CentOS, Ubuntu, Debian
Posts: 92
Blog Entries: 1

Rep: Reputation: Disabled
you can use autofs service:-
ex:- RHEL-5

It is usually in /etc/auto.misc. The default RHEL5 auto.misc contains the appropriate entry i.e.

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom

Last edited by jitendra.sharma; 03-28-2013 at 12:50 AM.


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
autofs does not auto-mount cdrom Hammo Linux - General 9 12-28-2012 04:08 AM
Problem in Auto Mount of partition at startup BlueSkull Linux - General 2 11-10-2009 02:37 AM
How to auto mount cdrom in run level 3? Arodef Linux - Hardware 9 03-07-2009 10:34 AM
cdrom and floppy drive auto mount problem shams Fedora 1 02-27-2005 07:43 AM
auto mount cdrom demmylls Linux - General 1 10-04-2003 09:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:59 AM.

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