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:

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 22, 2007 at 04:46 PM 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 05:06 AM 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 06:18 AM PST #

Post a Comment:
Comments are closed for this entry.
About

I'll be writing about topics that would interest users and developers of Sun Java Communication Suite.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today