How to mount an ISO image in Solaris

Q. How do I mount ISO FILE, And Read under it?
A. You can Use lofi(7D)/lofiadm the loopback file driver

Mounting an Existing CD-ROM Image Or File image
Use lofiadm to attach a block device to it:

bash> lofiadm -a /path/to/file.iso
/dev/lofi/1

And Then Use the mount command to mount the image:

bash> mount -F hsfs -o ro /dev/lofi/1 /path/output

lofiadm picks the device and prints the device name to the standard output.

bash> lofiadm
Block Device    File
/dev/lofi/1    /path/to/file.iso

Check to ensure that Solaris understands the image:

bash> df -h
Filesystem    size   used  avail capacity  Mounted on
/dev/lofi/1     0K     0K     0K     0%    /path/output

As a final step, unmount and detach the images:

bash> umount /path/output
bash> lofiadm -d /dev/lofi/1
bash> lofiadm
Block Device    File
Printed from: http://sysinfo.bascomp.org/2007/11/howto-mount-an-iso-image-in-solaris/ .
© 2010.

Leave a Reply

  • Search