Home > Solaris Admin > Mount iso image on Solaris

Mount iso image on Solaris

1. Create a loopback device file with lofiadm

# lofiadm -a /export/home/oracle/sol-10-u9-ga-sparc-dvd.iso
/dev/lofi/1 <– this loopback device will be created

2. Mount the loopback device to /mnt

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

3. Check the files

# cd /mnt

# ls -al
total 55
dr-xr-xr-x   2 root     sys         4096 Aug 12  2010 .
drwxr-xr-x  28 root     root         512 Dec  1 18:54 ..
-r–r–r–   1 root     root          68 Mar  2  2010 .cdtoc
drwxr-xr-x   5 root     root        2048 Aug 12  2010 .install
lrwxrwxrwx   1 root     root          33 Aug 12  2010 .install_config -> ./Solaris_10/Misc/.install_config
-r–r–r–   1 root     root         439 Mar  2  2010 .slicemapfile
-r–r–r–   1 root     root          21 Apr  9  2010 .volume.inf
-r–r–r–   1 root     root          28 Aug 12  2010 .volume.inf.1
-r–r–r–   1 root     root          28 Aug 12  2010 .volume.inf.2
-r–r–r–   1 root     root          23 Aug 12  2010 .volume.inf.3
-r–r–r–   1 root     root          23 Aug 12  2010 .volume.inf.4
-r–r–r–   1 root     root          23 Aug 12  2010 .volume.inf.5
-r–r–r–   1 root     root        7625 May 27  2010 Copyright
-r–r–r–   1 root     root        1797 Jul 22  2010 GPL_LGPL_Source_Offer.txt
drwxr-xr-x   7 root     root        2048 Aug 12  2010 Solaris_10
drwxr-xr-x   2 root     root        2048 Aug 12  2010 boot
-rwxr-xr-x   1 root     root         257 Aug 12  2010 installer
drwxr-xr-x   5 root     root        2048 Aug 12  2010 platform

Advertisements
Categories: Solaris Admin
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: