Friday, June 3, 2011

How to mount and unmount an ISO image under Solaris

Mount an iso image
You can use lofiadm command to mount ISO image under Solaris.
e.g.;

# lofiadm -a /absolute/path/to/isoimage.iso

output:
/dev/lofi/1
Here, /dev/lofi/1 is a device, now you can use the mount command to mount the iso image.

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


Unmount and detach the image

Use umount command to unmount the image

# umount /mnt

Now remove/free block device

# lofiadm -d /dev/lofi/1



No comments:

Post a Comment

There was an error in this gadget