- 論壇徽章:
- 0
|
操作系統(tǒng)啟動(dòng)過程
================
[1] prom (系統(tǒng)自檢selftest) ,
[2] bootblk, (系統(tǒng)引導(dǎo)盤啟動(dòng)扇區(qū)),
[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)
操作系統(tǒng)自動(dòng)配置過程
====================
[1] 內(nèi)核上載入內(nèi)存(kernel module are load to memory)
o 靜態(tài)內(nèi)核static core:
/kernel/genunix, /platform/.../kernel/unix,
o 動(dòng)態(tài)內(nèi)核dynamically loaded module:
driver module, streams, ufs module, nfs module
/kernel/,/platform/.../kernel/unix, /usr/kernel
o /etc/system內(nèi)容:
moddir,
exclude rootdev,
set pt_cnt=100
...............
[2] 設(shè)備配置(device configration )
o device tree: /devices, /dev
o /etc/path_to_install
查看操作系統(tǒng)配置
==================
# dmesg,
# printconf,
# sysdef
# /usr/platform/sun4u/sbin/prtdiag
# /usr/platform/sun43u/sbin/prtdiag
重新配置系統(tǒng)硬件
=================
# touch /reconfigure
# init 0
ok boot -r (重新啟動(dòng)/配置系統(tǒng)硬件)
ok boot -ar
在系統(tǒng)運(yùn)行情況下,如果不想重新啟動(dòng)系統(tǒng),
安裝硬盤/磁帶等熱插拔硬件,則:
# drvconfig
# devlinks
# disks
# tapes
查看配置情況:
# dmesg
# printconf
# sysdef
系統(tǒng)啟動(dòng)時(shí),進(jìn)入/etc/inittab中initdefault所定義的運(yùn)行級(jí)別(deafult 3)
各運(yùn)行級(jí)別的定義:
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)
改變系統(tǒng)運(yùn)行級(jí)別命令
====================
# 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
啟動(dòng)、關(guān)閉Solaris 操作系統(tǒng)
==========================
ok> boot -r (一般在安裝新設(shè)備如硬盤等后,重起機(jī)器,重建系統(tǒng)內(nèi)核)。
ok> boot cdrom - brower (從CDROM啟動(dòng)機(jī)器,重新安裝系統(tǒng),界面為瀏覽器方式)。
# sync (將內(nèi)存中的內(nèi)容寫入硬盤)。
# halt (或 /etc/init 0) (關(guān)閉系統(tǒng))。
# reboot
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u2/88690/showart_1723972.html |
|