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.
Notes:
*) 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/
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/
Thanks
loopmount is now available starting with AIX 6.1
http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.cmds/doc/aixcmds3/loopmount.htm