[HOWTO] Mount ISO Image File on AIX

The usual mount -o ro,loop image.iso /mnt/iso/, which you’re used to on Linux, can’t be used on AIX. On AIX you dd the ISO file into a raw Logical Volume, then mount the LV as a filesystem. Here are the steps for copying the ISO named image.iso into the folder /mnt/iso/ (a JFS filesystem):

1. Create a filesystem with size slightly bigger than the size of the ISO image. Do NOT mount the filesystem yet. Here I assume we’re dealing with a DVD ISO image ~ 4.7G:

# crfs -v jfs -g rootvg -a size=5000M -m/mnt/iso -Ano -pro -tno
Based on the parameters chosen, the new /mnt/iso JFS file system
is limited to a maximum size of 134217728 (512 byte blocks)

New File System size is 10354688

2. Get the logical volume name associated with the new filesystem:

# lsfs | grep iso
/dev/lv01 -- /mnt/iso jfs 10354688 ro no no

(we see that the logical volume name is lv01)

3. dd the ISO image into rlv01 (raw lv01):

# dd if=/path/to/image.iso of=/dev/rlv01 bs=100M
43+1 records in.
43+1 records out.

(Note the r before lv01! This is important)

4. Mount the file system:

# mount -v cdrfs /mnt/iso

(Note the filesystem type! Unlike the crfs command above, where we used -v jfs, now we use -v cdrfs)

5. Do whatever you do with the files in /mnt/iso.

6. When finished, unmount the filesystem:

# umount /mnt/iso

7. And finally, remove the filesystem:

# rmfs /mnt/iso
rmlv: Logical volume lv01 is removed.

*) The above was tested on AIX 5.3
*) For instructions how to do it on Solaris 10 see here: http://geekdom.wesmo.com/2007/03/29/mounting-an-iso-image-on-solaris/

This entry was posted in console and tagged . Bookmark the permalink.

2 Responses to [HOWTO] Mount ISO Image File on AIX

  1. Babak Karvandi says:

    It worked. I created an ISO file on AIX5.3-01 using following command and was able to successfully mount it by your instruction.

    mkisofs -r -L -v -o target.iso MY_DIRECTORY/


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s