Wednesday, July 09, 2008

Mount an ISO image on a Solaris/AIX filesystem


lofiadm -a /export/temp/software.iso /dev/lofi/1

The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command:

mount -F hsfs -o ro /dev/lofi/1 /mnt

These commands can be combined into a single command:

mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt

Unmount and close loopback filesystem
umount /mnt
lofiadm -d /dev/lofi/1

AIX 5.3

mklv -y cdlv -s n -L /dev/cdlv vg00 $(du -m 10gR2.iso|awk '{print
int($1+128)"M"}') hdisk2 ## 128M pp say
dd if=10gR2.iso of=/dev/cdlv # took hours
mount -v cdrfs -o ro /dev/cdlv /mnt/iso

No comments: