LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1333|回复: 3

如何把/boot/kernel26。img解開到別的path中。

[复制链接]
发表于 2007-8-8 01:15:49 | 显示全部楼层 |阅读模式
我想了解kernel26。img內的file tree,how to do,thank !
 楼主| 发表于 2007-8-8 11:11:51 | 显示全部楼层
why nobody reply me ?
#mkdir /temp
#cd /temp
#cp /boot/kernel26.img kernel26.gz
#ls
kernel26.gz
#gunzip kernel26.gz
#ls
kernel26
#cpio -ivd < kernel26
(somthing look like below)
/lib
/lib/modules
/lib/modules/2.6.21-ARCH
/lib/modules/2.6.21-ARCH/kernel
/lib/modules/2.6.21-ARCH/kernel/drivers
/lib/modules/2.6.21-ARCH/kernel/drivers/ata
cpio: /lib/modules/2.6.21-ARCH/kernel/drivers/ata/libata.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/drivers/ata/libata.ko
cpio: /lib/modules/2.6.21-ARCH/kernel/drivers/ata/pata_via.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/drivers/ata/pata_via.ko
cpio: /lib/modules/2.6.21-ARCH/kernel/drivers/ata/ata_generic.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/drivers/ata/ata_generic.ko
/proc
/sys
/dev
cpio: /dev/null not created: newer or same age version exists
/dev/null
cpio: /dev/zero not created: newer or same age version exists
/dev/zero
cpio: /dev/console not created: newer or same age version exists
/dev/console
cpio: /lib/klibc-rOj3PRLKBA9FcF5ZuoqKQLmOWcA.so not created: newer or same age version exists
/lib/klibc-rOj3PRLKBA9FcF5ZuoqKQLmOWcA.so
/bin
cpio: /bin/cat not created: newer or same age version exists
/bin/cat
............
cpio: /lib/modules/2.6.21-ARCH/kernel/fs/ext3/ext3.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/fs/ext3/ext3.ko
cpio: /hooks/filesystems not created: newer or same age version exists
/hooks/filesystems
cpio: /lib/modules/2.6.21-ARCH/modules.dep not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/modules.dep
cpio: /lib/modules/2.6.21-ARCH/modules.alias not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/modules.alias
cpio: /lib/modules/2.6.21-ARCH/modules.symbols not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/modules.symbols
6439 blocks
#ls
kernel26
(no file tree added ,why)

i want to see the file tree of kernel26 in /temp .can somebody help me? thank !

archlinux(DUKE)
回复 支持 反对

使用道具 举报

发表于 2007-8-8 12:35:25 | 显示全部楼层
windows下的解压软件可以。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-13 03:20:27 | 显示全部楼层

i made it ok !

Post by slackit
why nobody reply me ?
#mkdir /temp
#cd /temp
#cp /boot/kernel26.img kernel26.gz
#ls
kernel26.gz
#gunzip kernel26.gz
#ls
kernel26
#cpio -ivd < kernel26
(somthing look like below)
/lib
/lib/modules
/lib/modules/2.6.21-ARCH
/lib/modules/2.6.21-ARCH/kernel
/lib/modules/2.6.21-ARCH/kernel/drivers
/lib/modules/2.6.21-ARCH/kernel/drivers/ata
cpio: /lib/modules/2.6.21-ARCH/kernel/drivers/ata/libata.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/drivers/ata/libata.ko
cpio: /lib/modules/2.6.21-ARCH/kernel/drivers/ata/pata_via.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/drivers/ata/pata_via.ko
cpio: /lib/modules/2.6.21-ARCH/kernel/drivers/ata/ata_generic.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/drivers/ata/ata_generic.ko
/proc
/sys
/dev
cpio: /dev/null not created: newer or same age version exists
/dev/null
cpio: /dev/zero not created: newer or same age version exists
/dev/zero
cpio: /dev/console not created: newer or same age version exists
/dev/console
cpio: /lib/klibc-rOj3PRLKBA9FcF5ZuoqKQLmOWcA.so not created: newer or same age version exists
/lib/klibc-rOj3PRLKBA9FcF5ZuoqKQLmOWcA.so
/bin
cpio: /bin/cat not created: newer or same age version exists
/bin/cat
............
cpio: /lib/modules/2.6.21-ARCH/kernel/fs/ext3/ext3.ko not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/kernel/fs/ext3/ext3.ko
cpio: /hooks/filesystems not created: newer or same age version exists
/hooks/filesystems
cpio: /lib/modules/2.6.21-ARCH/modules.dep not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/modules.dep
cpio: /lib/modules/2.6.21-ARCH/modules.alias not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/modules.alias
cpio: /lib/modules/2.6.21-ARCH/modules.symbols not created: newer or same age version exists
/lib/modules/2.6.21-ARCH/modules.symbols
6439 blocks
#ls
kernel26
(no file tree added ,why)

i want to see the file tree of kernel26 in /temp .can somebody help me? thank !

archlinux(DUKE)


#mkdir /temp
#cd /temp
#cp /boot/kernel26.img kernel26.gz
#ls
kernel26.gz
#gunzip kernel26.gz
#ls
kernel26
#cpio -ivd < kernel26  (this line change as below)  
#cpio -ivd --no-absolute-filenames < kernel26
it is ok!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表