Mounting an ISO image on Solaris


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions Tips and Tutorials Mounting an ISO image on Solaris
# 1  
Old 12-02-2003
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to Create ISO Image of a CD/DVD in Solaris 10?

Hi Solaris 10 Experts, How can I create an ISO Image of a CD/DVD from the cdrom to a temporary directory, and then use that image to burn it on a blank DVD in the cdrom in Solaris 10 1/13 OS environment? Please provide me with an example. With best regards, SS (1 Reply)
Discussion started by: ssabet
1 Replies

2. Red Hat

How to make boot.iso image from rhel6 installation dvd iso ?

Hello Everyone, Can anyone let me know how to make minimal boot.iso from rhl6 installation dvd iso image. I have a dvd image with me but i want to make just a minimal boot media. Somehow it is not shipped with dvd iso. I know we can download boot.iso from redhat site but is there any anyway we... (5 Replies)
Discussion started by: Rohit Bhanot
5 Replies

3. UNIX for Dummies Questions & Answers

How to modify an iso image file

Hi, I'm trying to create a customized debian installer on a USB key. I found a tutorial on how to create the usb key. After the USB key is prepared, all you have to do is to copy the iso file to the stick. So what I need to do now is to be able to modify the content of the iso file before... (7 Replies)
Discussion started by: chebarbudo
7 Replies

4. Solaris

Solaris ISO image

Hi All, Can anyone give me the lnik to download the iso image file Solaris 10 . I need to install it on my local machine . Pls help me out. VINU (5 Replies)
Discussion started by: vinuvinod
5 Replies

5. Solaris

Create an ISO image of whole system

Hi All, Please help me with this. My plan is to create an ISO image of my current solaris 8 OS.Because we use a stripped out version of solaris 8 which is different than the standard one in CD. Will dd command will do ? My idea is to create a VMware image from iso file and play it in... (6 Replies)
Discussion started by: Jartan
6 Replies

6. Ubuntu

Writing ISO image to CD

I want to install Ubuntu 7.10 and I have ISO image ubuntu-7.10-desktop-i386.iso . How can I convert to a bootable CD on linux or on windows. Thanks, J. (5 Replies)
Discussion started by: superuser84
5 Replies

7. Red Hat

mounting ISO in linux

Hi Guys, I'm having a bit of trouble and im not sure what is the deal, I'm trying to mount an ISO on my RHEL box and it is not letting me... mount -o loop -t iso9660 /home/bgalante/rhel-5-server-i386-disc3.iso /mnt mount: Not a directory any idea what i am doing wrong? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

8. AIX

Mounting ISO images in IAX

Hi Guys, How to mount ISO images in AIX environment. I know how to do it in Solaris. Thanks Manu (0 Replies)
Discussion started by: b_manu78
0 Replies

9. UNIX for Advanced & Expert Users

mount iso image

I would like to mount an iso CD image on my Suse linux (SLES 9), the image has been copied to my suse linux machine. am able to mount the iso image manually by mount -oloop /iso/SLES-9-i386-CD1.iso /free but I would like to put the above entry in /etc/fstab so that when the machine is rebooted,... (2 Replies)
Discussion started by: hassan1
2 Replies

10. UNIX for Advanced & Expert Users

Mounting an ISO As a file system in AIX

I want to mount an ISO image as a file system in AIX, have been unable to find a utility to do so after scouring the net. Bryan (1 Reply)
Discussion started by: murdaugh
1 Replies
Login or Register to Ask a Question
GRML2ISO(8)															       GRML2ISO(8)

NAME
grml2iso - create a multiboot grml ISO using grml2usb SYNOPSIS
grml2iso -o <target.iso> <ISO[s]> Important! The grml team does not take responsibility for loss of any data! INTRODUCTION
grml2iso allows you to create a multiboot grml ISO. You can specify two or more grml ISOs and will get one single multiboot ISO as a result. grml2iso requires and uses grml2usb for this task and installs grub2 as bootmanager on the multiboot ISO. OPTIONS
grml2iso supports the environment variables GRML2USB and WRKDIR. GRML2USB specifies the path to the grml2usb script you'd like to use. WRKDIR specifies the work directory for creating the filesystem. The work directory needs at least as much free disk space as the sum of all specified ISOs. -o <target.iso> This option is mandatory and specifies where the resulting multiboot grml ISO should be placed. Note that (to avoid any possible data loss) grml2iso will exit if the specified target.iso exists already. -c <directory> The content of the specified directory will be copied to the resulting multiboot grml ISO. -b <boot params> Use specified default bootoptions as default. -f Force the program to run and overwrite an existing iso image. -r <boot param> Remove specified boot parameter from existing command line. Could be specified multiple times. -p <grml2usb param> Execute grml2usb with the specified parameters. For a list of valid parameters have a look at the grml2usb webpage[1] or the grml2usb manpage -s <URI> Generate a small iso file which downloads the squashfs file from the specified URI. Due to current limitations in busyboxs wget and DNS resolution, an URL can not contain a hostname but an IP only. This is useful if you want to boot systems which support booting iso image from your local system. Besides the iso image this command also copies the squashfs file to the output directory. USAGE EXAMPLES
# grml2iso -o /tmp/grml.iso grml_2009.05.iso grml64_2009.05.iso Create multiboot ISO /tmp/grml.iso with grml_2009.05.iso and grml64_2009.05.iso. # grml2iso -b 'lang=de ssh=passwd' -c /tmp/grml-content -o /srv/grml.iso /srv/grml/grml_2009.10.iso Create a new iso with additional boot parameters and copy the content from /tmp/grml-content to the generated iso image. # grml2iso -r quiet -r vga=791 -o /srv/grml.iso /srv/grml-small_2009.10.iso Create a new iso and remove existing boot parameters quiet and vga=791. # GRML2USB=/srv/git/grml2usb grml2iso -o /srv/grml.iso /srv/grml/grml_2009.05.iso /srv/grml/grml64-medium_2009.05.iso Create multiboot ISO /srv/grml.iso with grml_2009.05.iso and grml64-medium_2009.05.iso using /srv/git/grml2usb as grml2usb script. # WRKDIR=/mnt/test/grml-tmp grml2iso -o /mnt/test/grml.iso grml_2009.05.iso grml64_2009.05.iso Use /mnt/test/grml-tmp as working directory for creating the multiboot ISO /mnt/test/grml.iso with grml_2009.05.iso and grml64_2009.05.iso. # grml2iso -p --skip-addons -o /srv/grml.iso /srv/grml-small_2009.10.iso /srv/grml64-small_2009.10.iso Don't copy the addons from the specified iso images ONLINE RESSOURCES
Check out the grml2usb webpage[1] and the grml2usb git repository[2]. BUGS
Please report feedback, bugreports and wishes to the author. AUTHORS
Michael Prokop <mika@grml.org[3]> and Thorsten Glaser <tg@mirbsd.org[4]> NOTES
1. grml2usb webpage http://grml.org/grml2usb/ 2. grml2usb git repository http://git.grml.org/?p=grml2usb.git 3. mika@grml.org mailto:mika@grml.org 4. tg@mirbsd.org mailto:tg@mirbsd.org 05/28/2012 GRML2ISO(8)