Sys-Admin Information’s

Share Knowledge, Distribute Knowledge, Capture & Modify Knowledge, Create Knowledge

Archive for the ‘Tips & Tricks’ Category

Set hostname without reboot

without comments

bash> uname -a
SunOS Trojan 5.9 Generic_118558-33 sun4u sparc SUNW,Netra-T12

replace old “hostname” with new “hostname” in file /etc/hosts, /etc/nodename, /etc/hostname.”ethernet_port_name”, /etc/net/ticlts/hosts, /etc/net/ticotsord/hosts, /etc/net/ticots/hosts

bash> vi /etc/hosts
bash> vi /etc/nodename
bash> vi /etc/hostname.bge0
bash> vi /etc/net/ticlts/hosts
bash> vi /etc/net/ticotsord/hosts
bash> vi /etc/net/ticots/hosts

and then execute command :

hostname "new hostname"
bash> hostname worm
bash> . /.profile

Written by Gun nee

April 28th, 2008 at 2:00 pm

Posted in Solaris, Tips & Tricks

How to mount an ISO image in Solaris

without comments

Q. How do I mount ISO FILE, And Read under it?
A. You can Use lofi(7D)/lofiadm the loopback file driver

Mounting an Existing CD-ROM Image Or File image
Use lofiadm to attach a block device to it:

bash> lofiadm -a /path/to/file.iso
/dev/lofi/1

And Then Use the mount command to mount the image:

bash> mount -F hsfs -o ro /dev/lofi/1 /path/output

lofiadm picks the device and prints the device name to the standard output.

bash> lofiadm
Block Device    File
/dev/lofi/1    /path/to/file.iso

Check to ensure that Solaris understands the image:

bash> df -h
Filesystem    size   used  avail capacity  Mounted on
/dev/lofi/1     0K     0K     0K     0%    /path/output

As a final step, unmount and detach the images:

bash> umount /path/output
bash> lofiadm -d /dev/lofi/1
bash> lofiadm
Block Device    File

Written by Hendrawan

November 15th, 2007 at 7:21 pm

Posted in Solaris, Tips & Tricks