linux initrd.img 制作,[原]分析initrd.img文件

引用

[root@samba test]# cd /mnt/disk/

[root@samba disk]# ls -lR

.:

total 8

drwxr-xr-x    2 root     root         1024 Jan 10  2006 bin

drwxr-xr-x    2 root     root         1024 Jan 10  2006 dev

drwxr-xr-x    2 root     root         1024 Jan 10  2006 etc

drwxr-xr-x    2 root     root         1024 Jan 10  2006 lib

-rwxr-xr-x    1 root     root          436 Jan 10  2006 linuxrc  <== 一个nash脚本

drwxr-xr-x    2 root     root         1024 Jan 10  2006 loopfs

drwxr-xr-x    2 root     root         1024 Jan 10  2006 proc

lrwxrwxrwx    1 root     root            3 Jan 10  2006 sbin -> bin

drwxr-xr-x    2 root     root         1024 Jan 10  2006 sysroot

./bin:

total 151

-rwxr-xr-x    1 root     root       122464 Jan 10  2006 insmod  <== 插入模块

lrwxrwxrwx    1 root     root           10 Jan 10  2006 modprobe -> /sbin/nash

-rwxr-xr-x    1 root     root        29524 Jan 10  2006 nash  <== 一个小型解释器

./dev:  <== 一些必要的设备文件

total 0

crw-r--r--    1 root     root       5,   1 Jan 10  2006 console

crw-r--r--    1 root     root       1,   3 Jan 10  2006 null

brw-r--r--    1 root     root       1,   1 Jan 10  2006 ram

crw-r--r--    1 root     root       4,   0 Jan 10  2006 systty

crw-r--r--    1 root     root       4,   1 Jan 10  2006 tty1

crw-r--r--    1 root     root       4,   2 Jan 10  2006 tty2

crw-r--r--    1 root     root       4,   3 Jan 10  2006 tty3

crw-r--r--    1 root     root       4,   4 Jan 10  2006 tty4

./etc:

total 0

./lib:   <== 启动时加载的模块

total 173

-rwxr--r--    1 root     root       108320 May 27  2004 ext3.o

-rwxr--r--    1 root     root        65888 May 27  2004 jbd.o

./loopfs:

total 0

./proc:

total 0

./sysroot:

total 0

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值