Home > Articles > Operating Systems, Server > Solaris

  • Print
  • + Share This
Like this article? We recommend

Building a Work Space

This section outlines the process for building a work space.

To Build a Work Space

  1. Create a directory with an appropriate name.

  2. 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.

  3. Transfer the data from the Sun Microsystems Solaris 8 media (Disk 1) onto the file system.

  4. 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.

    • To transfer data from media to the file system, perform the following:

    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.

    • To use the Volume Table of Contents (VTOC) from the Solaris media and the dd command, perform the following:

    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
  • + Share This
  • 🔖 Save To Your Account