Solaris 10 Boot Process x86
Solaris 10 Boot Process x86
Solaris 10 Boot Process x86
The boot process on x86/x64 hardware is bit different than the SPARC hardware. The x86/x64
hardware also involves the 5 step boot process, same as the SPARC hardware.
Refer the flow diagram below.
s or S - single user mode with critical file-systems mounted.(single user can access the OS)
1
OS)
- single user administrative mode with access to all file-systems.(single user can access the
2
- multi-user mode. Multiple users can access the system. NFS and some other network
related daemons does not run
3
- multi-user-server mode. Multi user mode with NFS and all other network resources
available.
4
- not implemented.
- transitional run level. Os is shutdown and system is rebooted to the default run level.
svc.startd phase
1. After kernel starts the svc.startd daemon. svc.startd daemon executes the rc scripts in the
/sbin directory according to the run level.
rc scripts
Now with each run level has an associated script in the /sbin directory.
# ls -l /sbin/rc?
-rwxr--r-- 3 root
sys
-rwxr--r-- 1 root
sys
-rwxr--r-- 1 root
sys
-rwxr--r-- 1 root
sys
-rwxr--r-- 3 root
sys
-rwxr--r-- 3 root
sys
-rwxr--r-- 1 root
sys
Each rc script runs the corresponding /etc/rc?.d/K* and /etc/rc?.d/S* scripts. For example for a run
level 3, below scripts will be executed by /sbin/rc3 :
/etc/rc3.d/K*
/etc/rc3.d/S*
The syntax of start and stop run scripts is
S##name_of_script - Start run control scripts
K##name_of_scrips - Stop run control scripts
Note the S and K in caps. Scripts starting with small s and k will be ignored. This can be used to
disable a script for that particular run level.