Use lofiadm to mount an ISO in Solaris 10

As a Linux user, I've used

mount -o loop -t iso9660 /path/to/file.iso /mnt/tmp

more times than I can count. Not suprisingly, you can do it in Solaris 10 as well, there's just another step involved:

# lofiadm -a /path/to/file.iso 
/dev/lofi/1
# mount -o ro -F hsfs /dev/lofi/1 /mnt/tmp

The first command, lofiadm, associates the iso file to a block device managed by the kernel LOopback FIle driver. The second command is the same old mount command you're used to, you just point it to the lofi device.

To unmount:

# umount /mnt/tmp
# lofiadm -d /dev/lofi/1
Your rating: None Average: 5 (1 vote)

Comments

One-line version

mount -o ro -F hsfs `lofiadm -a /path/to/file.iso` /mnt/tmp

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <embed> <object> <param> <strike> <caption>
  • Lines and paragraphs break automatically.

More information about formatting options