Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Friday, March 14, 2008

How to mount ISO image file on AIX.

1. Create a new logical volume. Make sure the size of the logical volume is big enough to cover the image. Usually, this is at least 670 MB, the standard size of a CD.
ServerA:/tsmcode/5.3CDs# du -sk *
567496 C892HML.iso
502376 C892IML.iso
ServerA:/tsmcode/5.3CDs# mklv -y isolv rootvg 670M

This creates a logical volume "isolv" with at least 670 MB. The actual physical
partitions used is determined by the AIX OS.

2. Copy the ISO image to the device that contains the logical volume using command "dd".
ServerA:/tsmcode/5.3CDs# dd if=C892HML.iso of=/dev/isolv bs=2048

Note that the "dd" copying is a slow process. It may take about 40 minutes to copy a full CD (670 MB) in some LPAR machine.

3. Mount the logical volume as a CD-ROM file system to read the content.
# mount -v cdrfs -o ro /dev/isolv /mnt
# cd /mnt
# ls

No comments: