Monday, October 13, 2008

How to mount ISO file in Linux?


# ls -l CD_IMAGE.iso
-rw-r--r-- 1 root root 4030201856 May 27 11:41 CD_IMAGE.iso

# file CD_IMAGE.iso
CD_IMAGE.iso: ISO 9660 CD-ROM filesystem data

# mkdir /tmp/CDROM_IMAGE

# mount -o loop CD_IMAGE.iso /tmp/CDROM_IMAGE

# ls -l /tmp/CDROM_IMAGE
total 7940
drwxrwxr-x 6 519 games 2048 Nov 8 2006 NonRedHat
-rw-rw-r-- 1 519 games 1910 Mar 29 2006 RPM-GPG-KEY
-rw-rw-r-- 1 519 games 1672 Mar 22 2006 RPM-GPG-KEY.DAG
-rw-rw-r-- 1 519 games 1617 Mar 22 2006 RPM-GPG-KEY.Fedora
-rw-rw-r-- 1 519 games 1408 Mar 22 2006 RPM-GPG-KEY.KDE-Redhat
drwxrwxr-x 5 519 games 2048 Oct 23 2006 RedHat
-rw-rw-r-- 1 519 games 284718 Jun 19 2007 ReleaseNotes.html
-r--r--r-- 1 519 games 4337 Aug 2 2007 TRANS.TBL
-rw-rw-r-- 1 519 games 37 Oct 4 2005 autorun.inf
drwxrwxr-x 4 519 games 2048 Jun 20 2007 documentation
-rw-rw-r-- 1 519 games 1861 Jun 20 2007 dvdstart.htm
drwxrwxr-x 2 519 games 2048 Jul 12 2007 isolinux
-rwxrwxr-x 1 519 games 18944 Oct 4 2005 shelexec.exe
drwxrwxr-x 6 519 games 2048 Jun 20 2007 software
#

No comments: