Thursday, December 2, 2010

How To Read ISO File in Linux

1. Login with root user ID
2. Create a directory to serve as mount point. You may also skip the directory creation by using default directory that created during Linux installation (e.g. /media/cdrom or /mnt/cdrom in some Red Hat Linux editions).
3. Suppose you want to mount /ISO/rhel4-cd1.iso image file to /media/cdrom directory mount point, execute this mount command

mount -o loop -t iso9660 /ISO/rhel4-cd1.iso /media/cdrom


4. Now, you can read / access the CD image file that is mounted to /media/cdrom directory, as if you’re accessing the physical CD-ROM loaded into hardware drive.

5. To un-mount the loaded CD image file, simply execute
umount /media/cdrom
or eject /media/cdrom command will do.