How to mount a ISO image on AIX V5.3
The following instructions were cribbed from the Howto mount an ISO image in AIX UNIX
article. My thanks to Vivek Gite for posting it. Any errors in this article are, of course, not Mr. Gite's responsibility. And Richard Brader published a very similar How to Mount an ISO File in AIX and Linux
article which I tripped across after I publshed this one.
- Create a logical volume which is large enough to hold the ISO image:
where:
o testiso is the name of the logical volume,
o rootvg is the name of the volume group in which the logical volume is to be created, and
o 1 is the size of the logical volume in logical partitions.
Use the command lsvg rootvg
to display (among many other things) the (logical and physical) partition size which will be used in rootvg. See here
for more information about the AIX V5.3 mklv command.
- Define a read-only JFS filesystem on the logical volume:
where:
o testiso is the name of the logical volume created in the first step and
o /testiso is the mount point of the filesystem.
See here
for more information about the AIX V5.3 crfs command.
- Copy the contents of the ISO image to the logical volume:
where:
o testiso is the name of the logical volume created in the first step, prefixed with the character r and
o /tmp/bestprac.tar is the ISO image file to be examined.
It may be necessary to use a block size (bs=1m) of less than a megabyte if the logical partition size is less than a megabyte. See here
for more information about the AIX V5.3 dd command.
- Change the filesystem type to cdrfs:
 | Note
It is possible to mount the filesystem by overriding the filesystem type with mount -v cdrfs /testiso, but other problems occur when the time comes to remove the filesystem:
|
- Mount the filesystem:
The filesystem contains the files which are in the ISO image file /tmp/bestprac.tar:
- When the filesystem is no longer needed, unmount and remove it and then remove the testiso logical volume:
where:
o testiso is the name of the logical volume created in the first step and
o /testiso is the mount point of the filesystem.
Be very careful with rmfs. Like the UNIX rm command, rmfs without the -i flag does not prompt for confirmation. It immediately destroys the specified filesystem!
Notes:
- The rmfs -r flag will cause the mount point directory to be removed only if the directory is empty.
- The rmfs command will remove the underlying logical volume when removing a JFS or JFS2 filesystem
, but will not do so when removing a CDRFS filesystem
.
The contents of this web page solely reflect the personal views of the authors and do not necessarily represent the views, positions, strategies or opinions of IBM or IBM management. Please use the
Add Comment link at the bottom of the page to provide feedback. Note: Until you log in (using the link in the upper right corner of this web page), you will not see the
Add Comment link and you can not add a comment. If you do not already have an IBM ID, use the Register Now link on the sign in page to obtain one. Registration is quick and easy.