Friday, July 25, 2008

How to mount ISO file in Solaris?

If I have a CD/DVD image as ISO file extension, then here is the process to mount that ISO image in Solaris:



# pwd
/opt/SOLARIS_1106_IMAGE

# ls -la
total 7862084
drwxr-xr-x 2 root root 512 Jul 23 17:55 .
drwxr-xr-x 10 root sys 512 Jul 23 17:31 ..
-rw-r--r-- 1 root root 4023408640 Jul 23 16:25 SOL10_SPARC_1106.iso

# lofiadm -a /opt/SOLARIS_1106_IMAGE/SOL10_SPARC_1106.iso /dev/lofi/1

# mkdir /SOL_1106_DVD

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

# ls -l /SOL_1106_DVD
total 915
-r--r--r-- 1 root root 6043 Nov 3 2006 Copyright
-rwxr-xr-x 1 root root 257 Nov 14 2006 installer
-r--r--r-- 1 root root 459760 Nov 3 2006 JDS-THIRDPARTYLICENSEREADME
drwxr-xr-x 9 root root 2048 Nov 14 2006 Solaris_10
#

No comments: