linux根文件系统与initrd(转)
1
根文件系统
简单来说,(根文件系统)就是系统第一个
mount
的文件系统
Filesystem
Handling
Like
every
traditional
Unix
system,
Linux
makes
use
of
a
system 's
root
filesystem
:
it
is
the
filesystem
that
is
directly
mounted
by
the
kernel
during
the
booting
phase
and
that
holds
the
system
initialization
scripts
and
the
most
essential
system
program.
Other
filesystems
can
be
mounted
either
by
the
initialization
scripts
or
directly
by
the
users on
directories
of
already
mounted
filesystems.
Being
a
tree
of
directories
every
filesystem
has
its
own
root
directory.
The
directory
on
which
a
filesystem
is
mounted
is
called
the
mount
point.
A
mounted
filesystem
is
a
child
of
the
mounted
相关文档:
1号进程,pid为1的进程,又称init进程。
linux系统启动后,第一个被创建的用户态进程就是init进程。它有两项使命:
1、执行系统初始化脚本,创建一系列的进程(它们都是init进程的子孙);
2、在一个死循环中等待其子进程的退出事件,并调用waitid系统调用来完成“收尸”工作;
init进程不会被暂 ......
1.下载linux kernel源代码
到http://www.kernel.org/下载linux内核源代码,这里我们使用2.6.24.4的内核.
解压linux-2.6.24.4.tar.bz2
[matt@localhost GEC2410]$ tar -xvjf linux-2.6.24.4.tar.bz2
[matt@localhost GEC2410]$ cd linux-2.6.24.4
2.修改Makefile,设置交叉编译器
ARCH ?= arm
CROSS_COMPILE ......
本文网址:http://bbs.bitscn.com/72875 复制
1. Linux 脚本编写基础
1.1 语法基本介绍
1.1.1 开头
程序必须以下面的行开始(必须放在文件的第一行):
#!/bin/sh
符号#!用来告诉系统它后面的参数是用来执行 ......
内核版本:
Linux XOK 2.6.18-128.1.6.el5.centos.plus #1 SMP Thu Apr 2 12:53:36 EDT 2009 i686 i686 i386 GNU/Linux
马上测试:
注意测试中可能导致死机。请不要在生产环境中测试。
如果你希望亲手验证此漏洞,你可以下载下列两个代码包测试(有可能导致系统不稳定,当机等现象,后果自负):
就下载这个即可:http ......