The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers > Answers to Frequently Asked Questions > Tips and Tutorials
.
google unix.com



Tips and Tutorials Helpful articles from our Users.

LinkBacks (?)
LinkBack to this Thread: http://www.unix.com/tips-tutorials/12195-mounting-iso-image-solaris.html
Posted By For Type Date
ChristTrekker's solaris Bookmarks on Delicious This thread Refback 12-22-2008 06:52 PM

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mounting cd in solaris 5.8 scriptingmani SUN Solaris 4 09-25-2007 05:30 AM
Create an Ignite image on tape from Online IgniteUX image Andrek UNIX for Advanced & Expert Users 3 02-28-2007 07:14 PM
best way to image solaris/linux drives frankkahle UNIX for Dummies Questions & Answers 3 01-05-2007 12:15 PM
Problem mounting DVD on Solaris 10 (x86) christian_hicks SUN Solaris 3 12-24-2004 05:04 PM
Mounting CD-Rom with Solaris 8 Fwurm UNIX for Dummies Questions & Answers 5 06-08-2001 08:44 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack (1) Thread Tools Search this Thread Rate Thread Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-02-2003
kduffin's Avatar
kduffin kduffin is offline Forum Advisor  
UN1X
  
 

Join Date: Nov 2003
Location: Maryland
Posts: 449
Mounting an ISO image on Solaris

Many software packages can be downloaded in the form of an ISO image. ISO images can also be created from CD and saved as ISO images:

$ cat /dev/somecd > somename.iso

Rather than burning the image to a CD-ROM to access its contents, it is easy to mount the image directly into the filesystem using the lofiadm and mount commands.

Given an ISO image in /export/temp/software.iso, a loopback file device (/dev/lofi/1) is created with the following command:

# lofiadm -a /export/temp/software.iso /dev/lofi/1

The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command:

# mount -F hsfs -o ro /dev/lofi/1 /mnt

These commands can be combined into a single command:

# mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt

Other ISO images can be mounted by incrementing the lofi device:

# lofiadm -a /export/temp/software2.iso /dev/lofi/2
# lofiadm -a /export/temp/software3.iso /dev/lofi/3
etc.

Last edited by kduffin; 12-02-2003 at 08:00 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 06:27 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0