The UNIX and Linux Forums  

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.

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 02:30 AM
Create an Ignite image on tape from Online IgniteUX image Andrek UNIX for Advanced & Expert Users 3 02-28-2007 03:14 PM
best way to image solaris/linux drives frankkahle UNIX for Dummies Questions & Answers 3 01-05-2007 08:15 AM
Problem mounting DVD on Solaris 10 (x86) christian_hicks SUN Solaris 3 12-24-2004 01:04 PM
Mounting CD-Rom with Solaris 8 Fwurm UNIX for Dummies Questions & Answers 5 06-08-2001 05:44 PM

 
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2003
kduffin's Avatar
UN1X
 

Join Date: Nov 2003
Location: Virginia
Posts: 441
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 04:00 AM.
Google The UNIX and Linux Forums
Forum Sponsor
 

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0