Copy an ISO image(for example "test1.iso) to /tmp/test1.iso or wherever you want. Then create a loopback file device (/dev/lofi/1) with the following command:
# lofiadm -a /tmp/test1.iso /dev/lofi/1
The above command creates a block device version of a file. You can mount this block device 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 /tmp/test1.iso` /mnt
To see files and folders of iso image
# cd /mnt
# ls or #ls -l
Unmount ISO: # umount /mnt
Unmount loop device : # lofiadm -d /dev/lofi/1
Have a Nice Day!
No comments:
Post a Comment