LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-27-2013, 04:21 AM   #1
branddonchau
Member
 
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?
Thanks.

Brgds/Brandon Chau
 
Old 03-27-2013, 05:08 AM   #2
DinoFly
Member
 
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, 10:55 AM   #3
vineethsp
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
Quote:
mount -a
command to mount it.......
 
Old 03-28-2013, 01:47 AM   #4
jitendra.sharma
Member
 
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.

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

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


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


All times are GMT -5. The time now is 05:57 AM.

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