Visit The New, Modern Unix Linux Community

Create a Solaris Jumpstart from iso

Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Answers to Frequently Asked Questions Tips and Tutorials Create a Solaris Jumpstart from iso
# 1  
Create a Solaris Jumpstart from iso

The Solaris 9 and later CD ISO images are laid out differently than previous versions of the ISO images for Solaris.

If you just want to build a jumpstart and can afford the bandwidth to do so, download the Solaris DVD and use that instead. You don't need to do any of this with the DVD iso.

To set up a JumpStart server using the Solaris 9 OS and later CD-ROMs, you must have access to both slice 0 and slice 1 on the CDs. If you try to use an ISO image that is loopback mounted using the "lofi" driver it cannot recognize that slice 1 exists and, cannot access it.

To fix the problem, split the contents of slice 1 into it's own image file and then mount this image separately using lofi.

The following procedure describes how to do this.
# ls -l sol-9*
-rw-r--r--   1 root     root     576364544 Jan  1 11:16 sol-9-u1-sparc-v1.iso
-rw-r--r--   1 root     root     291962880 Jan  1 21:42 sol-9-u1-sparc-v2.iso

This only applies to CD 1, all other isos can be mounted using lofiadm in the normal way.

(1) Get a copy of the VTOC 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 out 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

Slice 1 starts on cylinder 888, and is 546,560 blocks long. CD for the Solaris OS always have 640 blocks per cylinder, so you can find the starting block of slice 1 as follows:
# echo 888*640 | bc

So now you know s1 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 as follows:
# mkdir /cd
# mkdir /cd/s0
# mkdir /cd/s1
# lofiadm -a /path_to/sol-9-u1-sparc-v1.iso
# lofiadm -a /path_to/sol-9-u1-sparc-v1-s1.iso

When you mount slice 1, remember that it is a UFS partition, not HSFS as is usual on a CD-ROM:
# 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

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #842
Difficulty: Medium
HTTP server push (also known as HTTP streaming) is a mechanism for sending unsolicited (asynchronous) data from a web server to a web browser.
True or False?

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create .nfo file in ISO-8859-1 or UTF-8

Hey guys, I have a little problem, Let's say I create this script : #!/bin/sh nfo_file="/home/admin/info.nfo" echo "▒▒█ Hello █▒▒" > $nfo_fileIt seems to be okay : cat /home/admin/info.nfo ▒▒█ Hello █▒▒file -bi /home/admin/info.nfo text/plain; charset=utf-8But when I open it in a... (7 Replies)
Discussion started by: antoinelomb
7 Replies

2. Solaris

How to Create ISO Image of a CD/DVD in Solaris 10?

Hi Solaris 10 Experts, How can I create an ISO Image of a CD/DVD from the cdrom to a temporary directory, and then use that image to burn it on a blank DVD in the cdrom in Solaris 10 1/13 OS environment? Please provide me with an example. With best regards, SS (1 Reply)
Discussion started by: ssabet
1 Replies

3. Red Hat

How to create a bootable ISO from running Linux box?

Hi All, I have one query on creating bootable ISO. I have installed Centos 5.6 and done few configuration changes which is needed for deploying my App. Later I have deployed my app. Now Centos is up and running in a dedicated box along with my app. Now I want to create the... (3 Replies)
Discussion started by: kalpeer
3 Replies

4. Red Hat

how to re-create kick start bootable ISO

Hi All, I want to create kick start bootable ISO file. I have Centos 5.4 ISO and customized ks.cfg file. Now I need to recreate ISO with ks.cfg and content of existing ISO. During installation, it automatically should pick the kick start file and need to proceed with the installation. ... (0 Replies)
Discussion started by: kalpeer
0 Replies

5. Shell Programming and Scripting

mkisofs to create iso

Hi all, I got the following problem. I run this command. mkisofs -o mynew.iso -l -b isolinux.bin -c -no-emul-boot -boot-load-size 4 -boot-info-table base images isolinux pc_doc and I get all files from base, images, isolinux and pc_doc in the root dir of the iso. I want a... (2 Replies)
Discussion started by: stinkefisch
2 Replies

6. Solaris

Create an ISO image of whole system

Hi All, Please help me with this. My plan is to create an ISO image of my current solaris 8 OS.Because we use a stripped out version of solaris 8 which is different than the standard one in CD. Will dd command will do ? My idea is to create a VMware image from iso file and play it in... (6 Replies)
Discussion started by: Jartan
6 Replies

Featured Tech Videos