Mounting a CD image on Solaris

If you need to access files on a CD/DVD from a Solaris system that does not have a CD/DVD drive installed, you can do so using the the Loopback File Driver (lofi) on Solaris as follows:

# lofiadm -a /path/to/your/flle.iso

This will create a new device file in /dev/lofi (e.g. /dev/lofi/1) which can then be mounted in the usual fashion:

# mount -F hsfs /dev/lofi/1 /mnt/cdrom

I found this very useful when installing a Solaris JumpStart server on a SunFire T1000 which does not have a CD/DVD drive. I haven’t you looked at doing this at boot time yet but I expect there are many ways that could be done.


Leave a Reply