20070222 Thursday February 22, 2007

Solaris 10 : Mounting an ISO Image over the wire

Today, I was presented with the problem of mounting an ISO image to a system which I didn't have physical access. My first thought was to download the ISO image to my Mac and then burn a DVD from that image. I would then need to get into the car and drive to the office, hope I still have lab access, and then load that DVD into the drive. Given that I'm home today, I thought I'd let my fingers do the walking..

# lofiadm -a /path/to/iso/image/dvd.iso
/dev/lofi/1
# mkdir /export/isomnt
# mount -o ro -F hsfs -o ro /dev/lofi/1 /export/isomnt
# cd /export/isomnt

Keep in mind that this will work if you are using Solaris and the CD/DVD that you are mounting is a hsfs filesystem.

Technorati Tags:

( Feb 22 2007, 10:21:28 PM PST ) Permalink del.icio.us technorati digg Comments [3]
Comments:

With a nero .nrg image sometimes you need to first use dd: (if lofiadm complaints your iso file size is not a multiple of 512): dd if=oracle2.nrg of=oracle2.iso obs=512 conv=sync lofiadm -a /export/home/id069899/oracle2.iso mount -F hsfs -o ro /dev/lofi/3 /tmp/cdrom/oraHP2 vi /etc/dfs/dfstab: share -F nfs -o ro -d "oraHP2" /tmp/cdrom/oraHP2 shareall To avoid NFS stale on hpux,seems you need to specify NFS vers. 2: mount -o vers=2 -r ossportal3:/tmp/cdrom/oraHP2 /tmp/cdrom/oraHP2

Posted by Alain HONOREZ on February 23, 2007 at 12:46 AM PST #

This is exactly what I have done on a couple of times before. man lofiadm clearly explains with examples. man is our friend :)

Posted by Sivakanth Mundru on February 23, 2007 at 01:06 PM PST #

Nice work, Jonathan.

This reminded me of a script from a while ago, so I posted it to my blog.

Enjoy!

Posted by Dale Sears on February 25, 2007 at 02:18 PM PST #

Post a Comment:

Comments are closed for this entry.