Howto mount an ISO image in AIX UNIX

by on April 27, 2007 · 5 comments· LAST UPDATED April 27, 2007

in

Q. I know how to mount an ISO image in Sun Solaris UNIX and Linux. I was just wondering if there is a way to mount an ISO image in IBM AIX UNIX.

A. You need to type the following commands:
=> crfs: Adds a file system.

=> dd: A raw copy tool for UNIX

=> chfs: Changes attributes of a file system.

=> mount: Mount a file system

=> rmfs : Remove a file system

First Create a filesystem with crfs command:
#/usr/sbin/crfs -v jfs -g rootvg -a size=800 -m/cd1iso -Ano -pro -tno -a frag=4096 -a nbpi=4096 -a ag=8

This command creates the /cd1iso file system on the rootvg volume group.

Now dd the "iso" image into rlv00
# dd if=image.iso of=/dev/rlv00 bs=10M

Use chfs to change the attributes of a file system:
# chfs -a vfs=cdrom cd1iso
# mount /cd1iso
# cd /cd1iso

When done, remove the filesystem/unmount, enter:
# rmfs /cd1iso

This removes the /cd1iso file system, its entry in the /etc/filesystems (created using chfs command) file, and the underlying logical volume.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 5 comments… read them below or add one }

1 Na December 29, 2007 at 4:21 am

Nice instructions!
The size of the cd1iso file system needs to
be larger than the iso file.
My iso file was 600+ MB.
For even larger ISO files, for example,
DVD images, use larger ag and nbpi.
to remove the logical volume, use:
rmlv lv00

Reply

2 stef November 7, 2008 at 3:46 pm

hello,
the vfs type cdrom does’nt exist under AIX, the type is cdrfs.

Best regards,

Stef

Reply

3 Karthi September 16, 2009 at 6:19 pm

thanks a lot buddy. !!! It really helped me.. I will tell you easy steps for this now..

mklv -y cdlvg -s n -L /dev/cdlvg rootvg 410M hdisk0
dd if=/testjava/new-download/32-bit/cd.cz3q5en.iso of=/dev/cdlvg
mount -v cdrfs -o ro /dev/cdlvg /mnt/iso

Reply

4 Scott W. August 22, 2011 at 9:11 pm

loopmount is now available starting with AIX 6.1

Reply

5 ChethanMJ March 25, 2013 at 3:21 pm

After doing this am trying to execute a file but it says perms denied and I cant change perms as well. Any help is much appreciated.

Thanks

Reply

Leave a Comment

Tagged as:

Previous Faq:

Next Faq: