LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > Kashif Aziz Awan
User Name
Password

Notices



Rate this Entry

Mount CD or ISO (Solaris-9) How to

Posted 04-28-2011 at 06:19 AM by kashifazizawan

OS: SunOS
Distribution: Solaris-9
System: X86
Date: January 23, 2011
Author: Kashif Aziz Awan
kashif_khb@yahoo.com

Version: 5.9 Generic

Mount a cd or iso to install software etc
There are two ways to use one of these collections.
1.Download one of the files - say companion-sparc-sol10.iso.bz2 to a directory, for example, /tmp.
2.cd to /tmp and run bunzip2 companion-sparc-sol10.iso.bz2
3.Mount the iso file with commands like (as root)
$lofiadm -a /tmp/companion-sparc-sol10.iso /dev/lofi/1

$mount -F hsfs -o ro /dev/lofi/1 /mnt
or combine both commands:
$mount -F hsfs -o ro `lofiadm -a /export/temp/software.iso` /mnt
4.Now cd to /mnt and you will find the packages, for example, SFWyasr.pkg.bz2. Copy the packages you want to some directory, here just /tmp.
5.In /tmp, run bunzip2 SFWyasr.pkg.bz2.
6.Then run pkgadd -d SFWyasr.pkg and follow the instructions. The files will be installed in /opt/sfw subdirectories.


Check the status
$lofiadmin
Unmount and detach the images
Use umount command to unmount image:

$unmount /mnt
Now remove/free block device:

$lofiadm d /dev.logi/1
For more information read lofiadm and lofi man pages by typing the following command:
man lofiadm
Posted in Uncategorized
Views 1335 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement

Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration