- Determining Business Case
- Obtaining Support
- Creating a Build Specification
- Building a Work Space
- Installing the Solaris Security Toolkit
- Customizing the Solaris Security Toolkit
- Building a Customized, Bootable Installation
- About the Author
- Acknowledgements
- Related Resources
- Web Sites
- Ordering Sun Documents
- Accessing Sun Documentation Online
Building a Work Space
This section outlines the process for building a work space.
To Build a Work Space
Create a directory with an appropriate name.
Transfer the data from the Sun Microsystems Solaris 8 media (Disk 1) onto the file system.
To transfer data from media to the file system, perform the following:
To use the Volume Table of Contents (VTOC) from the Solaris media and the dd command, perform the following:
This directory should be at least 1 gigabyte for your customized distribution. We recommend 2 gigabytes be available during development.
For our example, we created a directory in /export called core.
CODE EXAMPLE-1 illustrates the process. Alternatively, you can use the Volume Table of Contents (VTOC) from the Solaris media. For this alternate method, see CODE EXAMPLE-2.
CODE EXAMPLE-1 Transferring Data From Media to File System
# cd /cdrom/sol_8_1001_sparc/s0 # mkdir /export/core # find . print | cpio pudm /export/core # cd /export/core # /etc/init.d/volmgt stop # for i in 1 2 3 4 5 >do >dd if=/dev/dsk/c0t6d0s${1} of=sol8.s${i} bs=512 >done 172800+0 records in 172800+0 records out 2560+0 records in 2560+0 records out 2560+0 records in 2560+0 records out # prtvtoc /dev/dsk/c0t6d0s0 /dev/dsk/c0t2d0s0 partition map Dimensions: 512 bytes/sector 640 sectors/track 1 tracks/cylinder 640 sectors/cylinder 2048 cylinders 2048 accessible cylinders Flags: 1: unmountable 10: read-only Unallocated space: First Sector Last Sector Count Sector 1224960 3200 1228159 1237760 72960 1310719 First Sector Last Partition Tag Flags Sector Count Sector Mount Directory 0 4 10 01070720 1070719 1 2 10 1070720 154240 1224959 2 0 00 1224960 3200 1228159 3 0 00 1228160 3200 1231359 4 0 00 1231360 3200 1234559 5 0 00 1234560 3200 1237759 # /etc/init.d/volmgt start volume management starting
NOTE
Volume management must be stopped to execute the prtvtoc command on a CD. Volume management is then restarted after executing the prtvtoc command.
CODE EXAMPLE-2 Using VTOC to Transfer Media to File System
# dd if=/dev/dsk/c0t6d0s0 of=/export/core/sol8.cdrom.vtoc >bs=512 count=1 >1 1+0 records in 1+0 records out # /etc/init.d/volmgt start