-   Linux - Newbie (
-   -   Auto mount cdrom when startup (

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?

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

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.

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

All times are GMT -5. The time now is 10:21 PM.