mount

AIX – loopmount

Finally on aix 6.1 ibm have introduced mounting of iso directly without raw copy on lv:

Check if necessary loopback device is available

# lsdev -C | grep loop

if nothing returned, run:

# mkdev -c loopback -s node -t loopback
loop0 Available

If the device is not present on system you get this error:

1320-003 loopmount: Specified loopback device is not found in ODM

Now for mount:

# loopmount -i /iso/dvd.iso -l loop0 -o "-V cdrfs -o ro" -m /mnt/dvd

And umount:

# loopumount -l loop0 -m /mnt/dvd

Attention: an image file can be associated with only one loopback device.

VIO – iso virtual DVD

Example of PowerVM virtual dvd setup:

login: padmin
padmin's Password:
1 unsuccessful login attempt since last login.
Last unsuccessful login: Mon Jan 31 18:51:28 CST 2011 on /dev/vty0
Last login: Mon Jan 31 18:28:29 CST 2011 on /dev/vty0

$
$ mkrep -sp rootvg -size 10G
Virtual Media Repository Created
Repository created within "VMLibrary" logical volume
$ mkvopt -name 6_1_6osp.iso -dev cd0 -ro
$
$ mkvdev -vadapter vhost1 -fbo -dev vcd1
vcd0 Available
$ loadopt -vtd vcd0 -disk 6_1_6osp.iso
$ unloadopt -vtd vcd0

AIX – Mounting ISO images

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, then identify the nearest multiple of 128 MB that will provide enough space for the image. For example, the image of CD-ROM is approximately 650/700 MB, so use 768 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 -s n -L /dev/cdlv rootvg 768M hdisk0

If the command fails, increase the volume size by a multiple of 128.

Use the dd 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/iso/cd.iso of=/dev/cdlv

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