Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automounting CD ISO Files?

Status
Not open for further replies.

bomi2

IS-IT--Management
Feb 13, 2002
13
US
Does anyone know how I can have Mandrake8.2 or RH7.2 automount a CD ISO file as a read only files system?
 
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


Hope that helps

Chris
 
Hi,

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)

Hope this helps
 
Thanks. I will try that this weekend.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top