The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-07-2005
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,235
There is no need to get a cd/dvd for you 210. Jumpstart installation is really easy to get going for sparc systems.

If you are loopback mounting an image of the Solaris CD 1 you will not be able to see the second slice (s1), or if you have an incorrectly burned cd. s1 is a UFS filesystem on the cd.

You can either burn another copy or using the iso of disk one do the following:

(1) Get a copy of the VTOC (Virtual Table of Contents) from the ISO image:

# dd if=sol-9-u1-sparc-v1.iso of=vtoc bs=512 count=1

1+0 records in
1+0 records out


(2) Now find where Slice 1 starts in the image and how long it is. The starting cylinder for slice 1 is located at offset 452 (decimal) into the VTOC; the length in blocks is at offset 456, with both being 4 bytes long.

# od -D -j 452 -N 8 < vtoc
0000000 0000000888 0000546560
0000010


Slice 1 starts on cylinder 888, and is 546,560 blocks long. The CDs for the Solaris OS always have a fixed 640 blocks per cylinder, which means that one can calculate the starting block of slice 1 using the following:

# echo 888*640 | bc
568320


Slice one starts at block 568320 and is 546560 blocks long.

(3) Copy slice one into a separate file:

# dd if=sol-9-u1-sparc-v1.iso of=sol-9-u1-sparc-v1-s1.iso \
bs=512 skip=568320 count=546560

546560+0 records in
546560+0 records out


(4) Mount both slice 0 and slice 1. The setup_install_server script expects to find these two mounted beside each other, with slice 1 in a directory called "s1"
# mkdir /cd
# mkdir /cd/s0
# mkdir /cd/s1
# lofiadm -a /path_to/sol-9-u1-sparc-v1.iso
/dev/lofi/1
# lofiadm -a /path_to/sol-9-u1-sparc-v1-s1.iso
/dev/lofi/2
# mount -F hsfs -o ro /dev/lofi/1 /cd/s0
# mount -F ufs -o ro /dev/lofi/2 /cd/s1
# cd /cd/s0/Solaris_9/Tools/
# ./setup_install_server /destination_dir