Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2353416
  • 博文数量: 141
  • 博客积分: 3552
  • 博客等级: 中校
  • 技术积分: 4148
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-15 14:39
个人简介

熟悉Linux下程序设计及各种应用程序 熟悉C Language 熟悉Glusterfs、FFmpeg、CDN 系统设计,计算机图形系统设计、分布式程序设计 目前主要研究方向:流媒体

文章分类

全部博文(141)

分类: LINUX

2009-11-26 17:43:09

[root@localhost liuqi]# lsinitrd /boot/initrd-2.6.32-rc6.img
/boot/initrd-2.6.32-rc6.img:
========================================================================
drwx------ 2 root root 0 Nov 10 14:30 bin
-rwxr-xr-x 1 root root 94892 May 27 2009 bin/nash
-rwxr-xr-x 1 root root 22428 Nov 18 2008 bin/plymouth
-rwxr-xr-x 1 root root 38408 Nov 18 2008 bin/plymouthd
-rwxr-xr-x 1 root root 36332 Feb 26 2008 bin/setfont
-rwxr-xr-x 1 root root 95180 Oct 13 2008 bin/modprobe
-rwxr-xr-x 1 root root 85132 Feb 26 2008 bin/loadkeys
-rwxr-xr-x 1 root root 9912 Oct 13 2008 bin/rmmod
drwx------ 4 root root 0 Nov 10 14:30 usr
drwx------ 4 root root 0 Nov 10 14:30 usr/share
drwx------ 3 root root 0 Nov 10 14:30 usr/share/plymouth
drwx------ 2 root root 0 Nov 10 14:30 usr/share/plymouth/solar
-rw-r--r-- 1 root root 350 Nov 18 2008 usr/share/plymouth/solar/entry.png
-rw-r--r-- 1 root root 1896 Nov 18 2008 usr/share/plymouth/solar/lock.png
-rw-r--r-- 1 root root 355666 Nov 18 2008 usr/share/plymouth/solar/star.png
-rw-r--r-- 1 root root 870 Nov 18 2008 usr/share/plymouth/solar/box.png
-rw-r--r-- 1 root root 296 Nov 18 2008 usr/share/plymouth/solar/bullet.png
-rw-r--r-- 1 root root 246 Nov 18 2008 usr/share/plymouth/solar/progress_bar.png
drwx------ 2 root root 0 Nov 10 14:30 usr/share/pixmaps
-rw-r--r-- 1 root root 13323 Oct 25 2008 usr/share/pixmaps/system-logo-white.png
drwx------ 3 root root 0 Nov 10 14:30 usr/lib
lrwxrwxrwx 1 root root 18 Nov 10 14:30 usr/lib/libpng12.so.0 -> libpng12.so.0.37.0
-rwxr-xr-x 1 root root 108592 May 27 2009 usr/lib/libnash.so.6.0.71
drwx------ 2 root root 0 Nov 10 14:30 usr/lib/plymouth
-rwxr-xr-x 1 root root 29768 Nov 18 2008 usr/lib/plymouth/solar.so
-rwxr-xr-x 1 root root 9292 Nov 18 2008 usr/lib/plymouth/details.so
-rwxr-xr-x 1 root root 10344 Nov 18 2008 usr/lib/plymouth/text.so
lrwxrwxrwx 1 root root 8 Nov 10 14:30 usr/lib/plymouth/default.so -> solar.so
lrwxrwxrwx 1 root root 36 Nov 10 14:30 usr/lib/libdhcp4client-4.0.so.0 -> /usr/lib/libdhcp4client-4.0.so.0.0.0
lrwxrwxrwx 1 root root 37 Nov 10 14:30 usr/lib/libdhcp6client-1.0.so.2 -> /usr/lib/libdhcp6client-1.0.so.2.0.20
-rwxr-xr-x 1 root root 162696 Sep 12 2008 usr/lib/libdhcp6client-1.0.so.2.0.20
lrwxrwxrwx 1 root root 25 Nov 10 14:30 usr/lib/libplybootsplash.so.2 -> libplybootsplash.so.2.0.0
-rwxr-xr-x 1 root root 86176 Apr 23 2008 usr/lib/libdhcp-1.99.so.1.0.7
-rwxr-xr-x 1 root root 158412 Jun 14 01:45 usr/lib/libpng12.so.0.37.0
-rwxr-xr-x 1 root root 16180 May 27 2009 usr/lib/libbdevid.so.6.0.71
-rwxr-xr-x 1 root root 41452 Nov 18 2008 usr/lib/libplybootsplash.so.2.0.0
lrwxrwxrwx 1 root root 30 Nov 10 14:30 usr/lib/libdhcp-1.99.so.1 -> /usr/lib/libdhcp-1.99.so.1.0.7
-rwxr-xr-x 1 root root 325948 Jun 28 2008 usr/lib/libnl.so.1.1
-rwxr-xr-x 1 root root 541624 Aug 6 06:45 usr/lib/libdhcp4client-4.0.so.0.0.0
lrwxrwxrwx 1 root root 21 Nov 10 14:30 usr/lib/libnl.so.1 -> /usr/lib/libnl.so.1.1
-rwxr-xr-x 1 root root 93376 Jul 29 10:32 usr/lib/libelf-0.142.so
lrwxrwxrwx 1 root root 24 Nov 10 14:30 usr/lib/libelf.so.1 -> /usr/lib/libelf-0.142.so
lrwxrwxrwx 1 root root 3 Nov 10 14:30 sbin -> bin
drwx------ 2 root root 0 Nov 10 14:30 sys
drwx------ 3 root root 0 Nov 10 14:30 dev
drwx------ 2 root root 0 Nov 10 14:30 dev/mapper
crw------- 1 root root 5, 2 Nov 10 14:30 dev/ptmx
lrwxrwxrwx 1 root root 4 Nov 10 14:30 dev/ram -> ram1
crw------- 1 root root 4, 64 Nov 10 14:30 dev/ttyS0
crw------- 1 root root 4, 66 Nov 10 14:30 dev/ttyS2
crw------- 1 root root 1, 5 Nov 10 14:30 dev/zero
crw------- 1 root root 4, 7 Nov 10 14:30 dev/tty7
crw------- 1 root root 4, 8 Nov 10 14:30 dev/tty8
crw------- 1 root root 4, 2 Nov 10 14:30 dev/tty2
crw------- 1 root root 4, 3 Nov 10 14:30 dev/tty3
crw------- 1 root root 4, 6 Nov 10 14:30 dev/tty6
crw------- 1 root root 4, 4 Nov 10 14:30 dev/tty4
brw------- 1 root root 1, 0 Nov 10 14:30 dev/ram0
crw------- 1 root root 1, 3 Nov 10 14:30 dev/null
crw------- 1 root root 4, 12 Nov 10 14:30 dev/tty12
crw------- 1 root root 5, 0 Nov 10 14:30 dev/tty
crw------- 1 root root 4, 0 Nov 10 14:30 dev/tty0
crw------- 1 root root 4, 65 Nov 10 14:30 dev/ttyS1
crw------- 1 root root 4, 9 Nov 10 14:30 dev/tty9
crw------- 1 root root 4, 10 Nov 10 14:30 dev/tty10
crw------- 1 root root 4, 5 Nov 10 14:30 dev/tty5
crw------- 1 root root 5, 1 Nov 10 14:30 dev/console
crw------- 1 root root 4, 67 Nov 10 14:30 dev/ttyS3
crw------- 1 root root 4, 0 Nov 10 14:30 dev/systty
crw------- 1 root root 4, 11 Nov 10 14:30 dev/tty11
brw------- 1 root root 1, 1 Nov 10 14:30 dev/ram1
crw------- 1 root root 4, 1 Nov 10 14:30 dev/tty1
drwx------ 2 root root 0 Nov 10 14:30 proc
drwx------ 4 root root 0 Nov 10 14:30 etc
drwx------ 2 root root 0 Nov 10 14:30 etc/sysconfig
-rw-r--r-- 1 root root 85 Apr 6 2009 etc/sysconfig/keyboard
-rw-r--r-- 1 root root 19 Apr 6 2009 etc/sysconfig/i18n
-rw-r--r-- 1 root root 30 Nov 7 2008 etc/fedora-release
-rw-r--r-- 1 root root 77 Nov 9 10:15 etc/ld.so.conf
-rw-r--r-- 1 root root 2045 Nov 10 14:30 etc/ld.so.cache
drwx------ 2 root root 0 Nov 10 14:30 etc/ld.so.conf.d
-r--r--r-- 1 root root 324 Oct 13 10:09 etc/ld.so.conf.d/kernel-2.6.27.37-170.2.104.fc10.i686.conf
-r--r--r-- 1 root root 324 Aug 15 09:19 etc/ld.so.conf.d/kernel-2.6.27.29-170.2.79.fc10.i686.conf
-rw-r--r-- 1 root root 20 Oct 8 2008 etc/ld.so.conf.d/qt-i386.conf
-rw-r--r-- 1 root root 15 Aug 3 12:58 etc/ld.so.conf.d/mysql-i386.conf
-rw-r--r-- 1 root root 23 Oct 27 16:22 etc/ld.so.conf.d/xulrunner-32.conf
-r--r--r-- 1 root root 324 Aug 17 20:46 etc/ld.so.conf.d/kernel-2.6.27.30-170.2.82.fc10.i686.conf
-rw-r--r-- 1 news news 18 Aug 29 2008 etc/ld.so.conf.d/inn-i386.conf
-rw-r--r-- 1 root root 16 Jul 29 2008 etc/ld.so.conf.d/tix-i386.conf
-rw-r--r-- 1 root root 15 Jan 2 2006 etc/ld.so.conf.d/wine-32.conf
lrwxrwxrwx 1 root root 14 Nov 10 14:30 etc/system-release -> fedora-release
drwx------ 2 root root 0 Nov 10 14:30 sysroot
-rwx------ 1 root root 1550 Nov 10 14:30 init
drwx------ 6 root root 0 Nov 10 14:30 lib
lrwxrwxrwx 1 root root 19 Nov 10 14:30 lib/libuuid.so.1 -> /lib/libuuid.so.1.2
lrwxrwxrwx 1 root root 27 Nov 10 14:30 lib/libparted-1.8.so.8 -> /lib/libparted-1.8.so.8.0.0
lrwxrwxrwx 1 root root 33 Nov 10 14:30 lib/libgcc_s.so.1 -> /lib/libgcc_s-4.3.2-20081105.so.1
-rwxr-xr-x 1 root root 156948 Dec 8 2008 lib/ld-2.9.so
lrwxrwxrwx 1 root root 12 Nov 10 14:30 lib/librt.so.1 -> librt-2.9.so
lrwxrwxrwx 1 root root 13 Nov 10 14:30 lib/libz.so.1 -> libz.so.1.2.3
-rwxr-xr-x 1 root root 237440 Sep 30 2008 lib/libsepol.so.1
lrwxrwxrwx 1 root root 15 Nov 10 14:30 lib/libply.so.2 -> libply.so.2.0.0
-rwxr-xr-x 1 root root 55224 Nov 5 2008 lib/libgcc_s-4.3.2-20081105.so.1
drwx------ 3 root root 0 Nov 10 14:30 lib/modules
drwx------ 2 root root 0 Nov 10 14:30 lib/modules/2.6.32-rc6
-rw------- 1 root root 43 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.seriomap
-rw------- 1 root root 69 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.ccwmap
-rw------- 1 root root 2044 Nov 10 14:30 lib/modules/2.6.32-rc6/scsi_wait_scan.ko
-rw------- 1 root root 99 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.pcimap
-rw------- 1 root root 74 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.ofmap
-rw------- 1 root root 43 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.dep
-rw------- 1 root root 45 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.alias
-rw------- 1 root root 71 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.dep.bin
-rw------- 1 root root 189 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.usbmap
-rw------- 1 root root 141 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.inputmap
-rw------- 1 root root 8 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.alias.bin
-rw------- 1 root root 81 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.isapnpmap
-rw------- 1 root root 73 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.ieee1394map
-rw------- 1 root root 8 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.symbols.bin
-rw------- 1 root root 49 Nov 10 14:30 lib/modules/2.6.32-rc6/modules.symbols
lrwxrwxrwx 1 root root 20 Nov 10 14:30 lib/libblkid.so.1 -> /lib/libblkid.so.1.0
-rwxr-xr-x 1 root root 114200 Mar 3 2009 lib/libselinux.so.1
-rwxr-xr-x 1 root root 135836 Dec 8 2008 lib/libpthread-2.9.so
lrwxrwxrwx 1 root root 28 Nov 10 14:30 lib/libglib-2.0.so.0 -> /lib/libglib-2.0.so.0.1800.4
-rwxr-xr-x 1 root root 48484 Dec 8 2008 lib/librt-2.9.so
drwx------ 2 root root 0 Nov 10 14:30 lib/firmware
-rwxr-xr-x 1 root root 930292 Mar 12 2009 lib/libglib-2.0.so.0.1800.4
-rwxr-xr-x 1 root root 81772 Nov 18 2008 lib/libply.so.2.0.0
-rwxr-xr-x 1 root root 1809672 Dec 8 2008 lib/libc-2.9.so
-rwxr-xr-x 1 root root 79376 Feb 13 2008 lib/libz.so.1.2.3
-rwxr-xr-x 1 root root 15832 Jun 25 01:43 lib/libuuid.so.1.2
-rwxr-xr-x 1 root root 20460 Dec 8 2008 lib/libdl-2.9.so
-rwxr-xr-x 1 root root 46796 Jun 25 01:43 lib/libblkid.so.1.0
lrwxrwxrwx 1 root root 11 Nov 10 14:30 lib/libc.so.6 -> libc-2.9.so
lrwxrwxrwx 1 root root 11 Nov 10 14:30 lib/libm.so.6 -> libm-2.9.so
-rwxr-xr-x 1 root root 95188 Nov 20 2008 lib/libdevmapper.so.1.02
lrwxrwxrwx 1 root root 17 Nov 10 14:30 lib/libpthread.so.0 -> libpthread-2.9.so
-rwxr-xr-x 1 root root 210292 Dec 8 2008 lib/libm-2.9.so
drwx------ 4 root root 0 Nov 10 14:30 lib/kbd
drwx------ 2 root root 0 Nov 10 14:30 lib/kbd/consolefonts
-rw-r--r-- 1 root root 10312 Feb 26 2008 lib/kbd/consolefonts/latarcyrheb-sun16.psfu
drwx------ 4 root root 0 Nov 10 14:30 lib/kbd/keymaps
drwx------ 4 root root 0 Nov 10 14:30 lib/kbd/keymaps/i386
drwx------ 2 root root 0 Nov 10 14:30 lib/kbd/keymaps/i386/qwerty
-rw-r--r-- 1 root root 1973 Feb 26 2008 lib/kbd/keymaps/i386/qwerty/us.map
drwx------ 2 root root 0 Nov 10 14:30 lib/kbd/keymaps/i386/include
-rw-r--r-- 1 root root 743 Feb 26 2008 lib/kbd/keymaps/i386/include/linux-with-alt-and-altgr.inc
-rw-r--r-- 1 root root 278 Feb 26 2008 lib/kbd/keymaps/i386/include/compose.inc
-rw-r--r-- 1 root root 4346 Feb 26 2008 lib/kbd/keymaps/i386/include/linux-keys-bare.inc
-rw-r--r-- 1 root root 430 Feb 26 2008 lib/kbd/keymaps/i386/include/qwerty-layout.inc
-rw-r--r-- 1 root root 253 Feb 26 2008 lib/kbd/keymaps/i386/include/euro1.map
drwx------ 2 root root 0 Nov 10 14:30 lib/kbd/keymaps/include
-rw-r--r-- 1 root root 517 Feb 26 2008 lib/kbd/keymaps/include/compose.8859_7
-rw-r--r-- 1 root root 3465 Feb 26 2008 lib/kbd/keymaps/include/compose.latin2
-rw-r--r-- 1 root root 6030 Feb 26 2008 lib/kbd/keymaps/include/compose.latin
-rw-r--r-- 1 root root 3889 Feb 26 2008 lib/kbd/keymaps/include/compose.latin1
-rw-r--r-- 1 root root 23 Feb 26 2008 lib/kbd/keymaps/include/compose.8859_8
-rw-r--r-- 1 root root 2037 Feb 26 2008 lib/kbd/keymaps/include/compose.latin3
-rw-r--r-- 1 root root 2897 Feb 26 2008 lib/kbd/keymaps/include/compose.latin4
drwx------ 2 root root 0 Nov 10 14:30 lib/udev
-rwxr-xr-x 1 root root 12096 Apr 8 2009 lib/udev/console_init
-rwxr-xr-x 1 root root 94316 Dec 8 2008 lib/libresolv-2.9.so
lrwxrwxrwx 1 root root 21 Nov 10 14:30 lib/libresolv.so.2 -> /lib/libresolv-2.9.so
lrwxrwxrwx 1 root root 14 Nov 10 14:30 lib/ld-linux.so.2 -> /lib/ld-2.9.so
lrwxrwxrwx 1 root root 17 Nov 10 14:30 lib/libdl.so.2 -> /lib/libdl-2.9.so
lrwxrwxrwx 1 root root 21 Nov 10 14:30 lib/libpopt.so.0 -> /lib/libpopt.so.0.0.0
-rwxr-xr-x 1 root root 431652 Jun 6 2008 lib/libparted-1.8.so.8.0.0
-rwxr-xr-x 1 root root 34904 May 26 2008 lib/libpopt.so.0.0.0
========================================================================
#!/bin/nash

mount -t proc /proc /proc
setquiet
echo Mounting proc filesystem
echo Mounting sysfs filesystem
mount -t sysfs /sys /sys
echo Creating /dev
mount -o mode=0755 -t tmpfs /dev /dev
mkdir /dev/pts
mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts
mkdir /dev/shm
mkdir /dev/mapper
echo Creating initial device nodes
mknod /dev/null c 1 3
mknod /dev/zero c 1 5
mknod /dev/systty c 4 0
mknod /dev/tty c 5 0
mknod /dev/console c 5 1
mknod /dev/ptmx c 5 2
mknod /dev/fb c 29 0
mknod /dev/tty0 c 4 0
mknod /dev/tty1 c 4 1
mknod /dev/tty2 c 4 2
mknod /dev/tty3 c 4 3
mknod /dev/tty4 c 4 4
mknod /dev/tty5 c 4 5
mknod /dev/tty6 c 4 6
mknod /dev/tty7 c 4 7
mknod /dev/tty8 c 4 8
mknod /dev/tty9 c 4 9
mknod /dev/tty10 c 4 10
mknod /dev/tty11 c 4 11
mknod /dev/tty12 c 4 12
mknod /dev/ttyS0 c 4 64
mknod /dev/ttyS1 c 4 65
mknod /dev/ttyS2 c 4 66
mknod /dev/ttyS3 c 4 67
/lib/udev/console_init tty0
daemonize --ignore-missing /bin/plymouthd
plymouth --show-splash
echo Setting up hotplug.
hotplug
echo Creating block device nodes.
mkblkdevs
echo Creating character device nodes.
mkchardevs
modprobe scsi_wait_scan
rmmod scsi_wait_scan
mkblkdevs
resume UUID=c7809fe3-5200-439e-828a-e55952b56f36
echo Creating root device.
mkrootdev -t ext3 -o defaults,ro UUID=5681ff04-7603-45ca-a8ca-4620d2c77229
echo Mounting root filesystem.
mount /sysroot
cond -ne 0 plymouth --hide-splash
echo Setting up other filesystems.
setuproot
loadpolicy
plymouth --newroot=/sysroot
echo Switching to new root and running init.
switchroot
echo Booting has failed.
sleep -1
init
========================================================================
[root@localhost liuqi]#

无意中看到的
不用解压后看了,直接就可以看
阅读(3639) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~