Wednesday, 12 June 2013

Mounting CD and ISO Images in Linux


1.    Mounting ISO image in Linux

ISO stands International Organization for Standardization, which has defined the format of disk images. The file with extension of ISO contains disk image. The images of most of Operating systems come in .iso format which could be downloaded from Internet.

If you have downloaded an ISO image of Linux or another OS, typically you burn it into CD/DVD to view the content of ISO image. Here we have defined the steps to mount the ISO image in Linux system.

          SYNTAX:

          # mount –o loop /path/of/iso_file/mount_point

Example:

Run as root user:

# mkdir /mnt/linux_os

     # mount –o loop /download/rhel5_x86_64.iso /mnt/linux_os

2.    Mount the CD Drive in Linux

Mostly in Linux system CD mounts automatically on /root/Desktop and icon displays on Desktop of Linux machine. Sometime CD is not displayed on system; In that case we have to mount CD manually. Here we define the steps to mount the CD in Linux system.

             SYNTAX:

           # mount –t iso9660 /dev/cdrom /mount_point

            Example:

          Run as root user:

          #mkdir /mnt/linux

          #mount –t iso9660 /dev/cdrom /mnt/linux



No comments:

Post a Comment