Not sure on "auto-mount" which would mean you want to mount it at boot time. I would have to check on that one, because you are dealing with fstab.
As far as mounting the image file itself you can do this.
mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom
where cd_image is your cd image file like mycd.iso
and /cdrom is the directory you want to mount these files in.
You can get this an other fantastic information from
If you want automounting you first need to install the 'autofs' rpm . That includes a sysv init script for the automount daemon that by default will automatically run at levels 3,4,5 . To activate it manually after install without changing runlevel / rebooting you can do as root :
# /etc/rc.d/init.d/autofs start
The main config file is /etc/auto.misc and that shows some examples of filesystems you might want to automount. The default is set up for a 'vanilla' mount of /dev/cdrom .
The way it works is you make reference to the device or mount point (under /misc) and the automounter transparently mounts the filesystem for you. For example, if you placed a CD in the drive and did :
$ ls /misc/cdrom
you should get a listing (i.e. you don't need to manually issue the 'mount' command)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.