Procedure:
I. Mount the iso file to the Mount point
[[Email protected] ~ ] # Mount-o loop/mnt/iso/CentOS5.iso/mnt/cdrom
II. View the Mount status
[[Email protected] ~ ] # Df-h
Filesystem Size Used Avail Use % Mounted on
/Dev/mapper/VolGroup00-LogVol00 19G 3.3G 15G 19%/
/Dev/sda1 99 M 12 M 82 M 13%/boot
Tmpfs 62 M 0 62 M 0%/dev/shm
/Mnt/iso/CentOS5.iso 3.9G 3.9G 0 100%/mnt/cdrom
III. Automatic mounting of iso image files upon startup
In the/etc/fstab table, add the last row and permanently mount the iso file to the system.
[[Email protected] ~ ] # Cat/etc/fstab
/Dev/VolGroup00/LogVol00/ext3 defaults 1 1
LABEL =/boot ext3 defaults 1 2
Tmpfs/dev/shm tmpfs defaults 0 0
Devpts/dev/pts devpts gid = 5, mode = 620 0 0
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
/Dev/VolGroup00/LogVol01 swap defaults 0 0
/Mnt/iso/CentOS5.iso/mnt/cdrom iso9660 loop 0 0
CentOS5.5 mount a local ISO image