User Tools

Site Tools

Please note, that this is an old archived version of this site. Check out the new version at!

Notes for the Solaris 10 System Administration Exam (CX-310-200 & -202)

I'm preparing myself for the two exams to achieve the Sun Certified System Administrator (SCSA) certification. This are my notes taken while studying the preparation books.

Managing File Systems

List Devices

To list the system's devices, you can use the following commands:

  • dmesg
  • format
  • prtconf
  • sysdef

Reconfigure Devices

To reconfigure the devices, you can perform any of these actions:

  1. touch /reconfigure and reboot the system
  2. From OK promt, bott the system with -r option (boot -r)
  3. reboot – -r
  4. Run devfsadm
    • Limit to class of devices: devfsadm -c class, e.g. devfsadm -c disk
    • Limit a driver: devfsadm -i driver, e.g. devfsadm -i sd

Device Names

  • physical device path: “/pci@0/pci@0/pci@1/pci@0/pci@2/network@0” 0 “e1000g”
  • logical device name: e1000g0
  • logical device path: /dev/e1000g0 (symlink to physical device path)
  • driver: e1000g
  • driver instance: 0

Device Config Files


The file /etc/path_to_inst maps physical device paths to driver name and driver instance number.


"/pci@0/pci@0/pci@1/pci@0/pci@2/network@0" 0 "e1000g"


Maps driver name to major device number.


e1000g 51

Save and Restore the VTOC

  • Print VTOC:
prtvtoc <raw device>
  • Write VTOC:
fmthard -s <vtoc backup> <raw device>
  • Directly transfer VTOC from one disk to another:
prtvtoc <source raw device> | fmthard -s - <target raw device>


  • Find all hard links of a given inode:
find <filesystem> -mount -inum <inode> -ls
  • For example, to find all filesystem entries in the root filesystem for inode 4711, use this:
find / -mount -inum 4711 -ls

Block Sizes

  • The physical block size is 512 Bytes.
  • The logical block size is 4 KiB1) or 8 KiB. On sun4u only 8 KiB is supported. 8 KiB is default and recommended.
  • The fragment size is the logical block size divided by 1, 2, 4 or 8. So, it can be between 512 Bytes and 8 KiB. The default fragment size is 1 KiB.

Filesystem Creation and Administration


FIXME: add newfs options

  • List alternate superblocks:
newfs -Nv <raw device>


  • The command fstyp list filesystems propeties, e.g. alternate superblocks:
fstyp -v <raw device>


  • Repair primary superblock with backup superblock:
fsck -o b=<backup superblock> <raw device>
  • For example, to write the backup superblock 4711 to the primary superblock of device c0t0d0s0:
fsck -o b=4711 /dev/rdsk/c0t0d0s0

Label Filesystem

  • The filesystem name is the mountpoint of the filesystem. E.g. the name “var” stands for the mountpoint /var.
  • The volume represents the physical volume name.
  • Write a filesystem label:
labelit -F <fstype> <raw device> <fs name> <volume>
  • Read a file label:
labelit <raw device>
  • Example: Write the name “home” and the volume “vol1” to disk c0t0d0s0:
labelif -F ufs /dev/rdsk/c0t0d0s0 home vol1
  • Labeled filesystems can be copied with volcopy
info/solaris/exam_notes.txt · Last modified: 2013-02-04 22:17 (external edit)