init的进程号是1,从这一点就能看出,init进程是系统所有进程的起点,Linux在完成核内引导以后,就开始运行init程式,。
init程式需
要读取设置文件/etc/inittab。inittab是个不可执行的文本文件,他有若干行指令所组成。在Redhat系统中,inittab的内容
如下所示(以“###'开始的中注释为笔者增加的):
#
# inittab This file describes how the INIT process should set
up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg,
# Modified for RHS Linux by Marc Ewing and Donnie
Barnes
#
# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not
havenetworking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to th
我的grub如下,你借鉴一下:
default=0
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xgm.gz
title Red Had linux(2.4.20-8)
root(hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20- 8.img
title DOS
root(hd0,0)
chainloader+1
看你的grub写法比较另类,不知道是贴错了,还是损坏了,你自己试验下
|
标签:combustion |
|
Andy作品:Combustion介绍 本教程由CG在线网制作, Andy本次给大家讲解Combustion基础知识 和 常用工具的介绍,希望大家喜欢! ======================================= |
|
Andy作品:3D Max实例:路径变形 本教程由CG在线网制作, Andy本次给大家讲解3D Max实例:路径变形,希望大家喜欢! |