LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Auto mount cdrom when startup (https://www.linuxquestions.org/questions/linux-newbie-8/auto-mount-cdrom-when-startup-4175455751/)

branddonchau 03-27-2013 03:21 AM

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

DinoFly 03-27-2013 04:08 AM

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.

vineethsp 03-27-2013 09:55 AM

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.......

jitendra.sharma 03-28-2013 12:47 AM

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


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