- 论坛徽章:
- 0
|
操作系统启动过程
================
[1] prom (系统自检selftest) ,
[2] bootblk, (系统引导盘启动扇区),
[3] ufsboot (/platform/'uname -i'/ufsboot),
[4] kernel (initself, /kernel/genunix, /etc/system),
[5] init (/sbin/init, /etc/inittab, /sbin/rc*.d,
/etc/rc*.d, /etc/init.d)
操作系统自动配置过程
====================
[1] 内核上载入内存(kernel module are load to memory)
o 静态内核static core:
/kernel/genunix, /platform/.../kernel/unix,
o 动态内核dynamically loaded module:
driver module, streams, ufs module, nfs module
/kernel/,/platform/.../kernel/unix, /usr/kernel
o /etc/system内容:
moddir,
exclude rootdev,
set pt_cnt=100
...............
[2] 设备配置(device configration )
o device tree: /devices, /dev
o /etc/path_to_install
查看操作系统配置
==================
# dmesg,
# printconf,
# sysdef
# /usr/platform/sun4u/sbin/prtdiag
# /usr/platform/sun43u/sbin/prtdiag
重新配置系统硬件
=================
# touch /reconfigure
# init 0
ok boot -r (重新启动/配置系统硬件)
ok boot -ar
在系统运行情况下,如果不想重新启动系统,
安装硬盘/磁带等热插拔硬件,则:
# drvconfig
# devlinks
# disks
# tapes
查看配置情况:
# dmesg
# printconf
# sysdef
系统启动时,进入/etc/inittab中initdefault所定义的运行级别(deafult 3)
各运行级别的定义:
run level:0, (halt, shotdown, stop+a,sync,go )
1, (single user, boot -s, init s )
2, (multiuser, unshare net)
3, (multiuser, deafult)
5, (halt, power off )
6, (reboot to level 3 )
S (init 1, boot -s)
改变系统运行级别命令
====================
# init 0, halt, shotdown, stop+a,sync,go
# init 1, single user, boot -s, init s
# init 2, multiuser, unshare net
# init 3, multiuser, deafult
# init 5, halt, power off
# init 6, reboot to level 3
# init s, init 1, boot -s
# init *,shotdown,halt,poweroff, reboot -- -r, reboot -- -s
ok> boot -s, boot -sra
启动、关闭Solaris 操作系统
==========================
ok> boot -r (一般在安装新设备如硬盘等后,重起机器,重建系统内核)。
ok> boot cdrom - brower (从CDROM启动机器,重新安装系统,界面为浏览器方式)。
# sync (将内存中的内容写入硬盘)。
# halt (或 /etc/init 0) (关闭系统)。
# reboot
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88690/showart_1723972.html |
|