Mount an ISO image on a Solaris filesystem with lofiadm

Home -> UNIX -> Solaris -> System administration

58316 views

From the computer of: Rex (39 recipes)
Created: Nov 05, 2003


3 comments:
View all comments

Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Many software packages can be downloaded in the form of an ISO image. 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

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.




3 Recipe comments: View comments

Mount an ISO image on a Solaris filesystem with lofiadm by Anonymous
mount/umount scripts by Anonymous
Re: Mount an ISO image on a Solaris filesystem with lofiadm by stighenning



Related recipes:

  Boot Solaris from CD-ROM to solve problems
  Solaris: Mount filesystem with UFS logging enabled
  Solaris: Create a mount point
  ZFS: Set or change the mount point of a filesystem
  Solaris: unmounting a filesystem with umount
  creating a solaris 8 flash archive boot disk
  Create a local Solaris flash archive
  ZFS: Create a basic filesystem or pool using zpool
  Mount an NFS share
  Solaris 10: Create multi-terabyte UFS filesystem

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.