Mounting ISO images on AIX

shilei1發表於2012-02-20
Mounting ISO images on AIX
There is a known problem with mounting ISO images on the AIX platform. To workaround the problem, complete the following instructions:
Obtain the size of the image. 
For example:
# ls -al
total 731594
drwxr-xr-x   2 root     system          512 Aug 18 11:33 .
drwxr-xr-x   6 root     system          512 Aug 18 11:32 ..
-rw-r--r--   1 root     system    374575104 Apr 29 02:59 
                                            fim_console_rios_aix_5.iso
Identify the nearest multiple of 128 MB that will provide enough space for the image. In the above example, the image is approximately 374 MB, so use 384 MB as an image size. 
Make a logical volume of this size. Ensure that there is enough space on the physical volume. For example, hdisk0.
# mklv -y cdlv -t jfs2 -s n -L /dev/cdlv rootvg 384M hdisk0 (可以用smit mklv來建立)
If the command fails, increase the volume size by a multiple of 128.
Use thedd command to create a pseudo-device. Ensure that the partition has enough space for the pseudo-device. In the following example command, the pseudo-device is /dev/cdlv. 
# dd if=/opt/software/iso/fim_console_rios_aix_5.iso f=/dev/cdlv bs=10m
Note that this command may take a long time and will create two dd processes.
Mount the device like a CD-ROM in AIX. Ensure that the mount point exists. 
# mount -v cdrfs -o ro /dev/cdlv /mnt/iso
Change directory into /mnt/iso.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-716817/,如需轉載,請註明出處,否則將追究法律責任。

相關文章