Mount CD or ISO (Solaris-9) How to
Posted 04-28-2011 at 05: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
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
Total Comments 0