Home > Solaris > How to mount iso image under Solaris

How to mount iso image under Solaris

March 15th, 2009 Leave a comment Go to comments

To mount /root/sparc.iso file under /mnt directory.
issue the following commands.
# lofiadm -a /root/sparc.iso /dev/lofi/1
# mount -F hsfs -o ro /dev/lofi/1 /mnt

to unmount

# umount /mnt
# lofiadm -d /dev/lofi/1

Note: lofi = loopback file driver

 

for example:

opsware[root] mount -F hsfs -o ro `lofiadm -a /var/tmp/RHEL4.7-i386-AS-DVD.iso` /mnt/rh
opsware[root] df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/vx/dsk/bootdg/rootvol
                     4133598 1848846 2243417    46%    /
swap                  524288     248  524040     1%    /tmp
/dev/vx/dsk/bootdg/opt
                     20655025 17924742 2523733    88%    /opt
/dev/vx/dsk/opswdg/media
                     41943040 27294733 13742813    67%    /media
/dev/vx/dsk/opswdg/opscore
                     15728640 3249049 11704155    22%    /opt/opsware
/dev/vx/dsk/opswdg/opslog
                     15728640 2782510 12137082    19%    /var/log/opsware
/dev/vx/dsk/opswdg/opsword
                     110058536 27550513 77378205    27%    /var/opt/opsware
/cust/ogfs/store     4133598 1848878 2243385    46%    /var/opt/opsware/ogfs/mnt/store
/cust/ogfs/audit     4133598 1848894 2243369    46%    /var/opt/opsware/ogfs/mnt/audit
/dev/ogdrv           4000000 2000000 2000000    50%    /var/opt/opsware/ogfs/mnt/ogfs
/dev/lofi/1          2289076 2289076       0   100%    /mnt/rh
opsware[root]

Categories: Solaris Tags: , ,
  1. March 28th, 2009 at 18:39 | #1

    Greetings all members,

    I would just like to say hello and let you know that I’m happy to be a member – been a lurker long enough :)

    Hope to contribute some and gain some knowledge along the way….

  2. March 28th, 2009 at 19:03 | #2

    I am glad to have you here. :)

  1. No trackbacks yet.
*
Please leave these two fields as-is:

Protected by Invisible Defender. Showed 403 to 3,211 bad guys.

Powered by WP Robot

Stop SOPAPowered by Yahoo! Answers