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
相关文档:
总览
用iptables -ADC 来指定链的规
则
,-A添加 -D删除 -C 修改
iptables - [RI] chain rule num rule-specification[option]
用iptables - RI 通过规则的顺序指定
iptables -D chain rule num[option]
删除指定规则
iptables -[LFZ] [chain][option]
用iptables -LFZ 链名 [选项]
iptables -[NX] chain
用 -NX ......
内核驱动分类
驱动实现功能:
读
写
打开
设置
最终目的操作硬件设备:数据传输和数据控制
硬件参考手册,内核提供的功能:操作时序,总线如何操作,内核API
1.字符设备(char)
2.块设备(block)
3.网络设备(net)
内核模块操作命令
make
加载:sudo modprobe ./Mo ......
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 ......
内核版本:
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 ......