Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Inspect the contents of CentOS 5.6 initrd
# lifted from http://lists.centos.org/pipermail/centos/2007-November/047151.html
amitava@bonjovi:~/prj/ird$ mkdir initrd; cd initrd
amitava@bonjovi:~/prj/ird/initrd$ gunzip -c --suffix '.img' ../initrd-2.6.18-238.el5.img | cpio -i --make-directories
cpio: dev/rtc: Cannot mknod: Operation not permitted
cpio: dev/ptmx: Cannot mknod: Operation not permitted
cpio: dev/ram1: Cannot mknod: Operation not permitted
cpio: dev/ttyS0: Cannot mknod: Operation not permitted
cpio: dev/ttyS1: Cannot mknod: Operation not permitted
cpio: dev/tty12: Cannot mknod: Operation not permitted
cpio: dev/tty: Cannot mknod: Operation not permitted
cpio: dev/tty8: Cannot mknod: Operation not permitted
cpio: dev/systty: Cannot mknod: Operation not permitted
cpio: dev/null: Cannot mknod: Operation not permitted
cpio: dev/ram0: Cannot mknod: Operation not permitted
cpio: dev/ttyS3: Cannot mknod: Operation not permitted
cpio: dev/tty0: Cannot mknod: Operation not permitted
cpio: dev/tty5: Cannot mknod: Operation not permitted
cpio: dev/tty6: Cannot mknod: Operation not permitted
cpio: dev/tty4: Cannot mknod: Operation not permitted
cpio: dev/tty9: Cannot mknod: Operation not permitted
cpio: dev/zero: Cannot mknod: Operation not permitted
cpio: dev/tty1: Cannot mknod: Operation not permitted
cpio: dev/tty11: Cannot mknod: Operation not permitted
cpio: dev/tty7: Cannot mknod: Operation not permitted
cpio: dev/console: Cannot mknod: Operation not permitted
cpio: dev/tty3: Cannot mknod: Operation not permitted
cpio: dev/tty2: Cannot mknod: Operation not permitted
cpio: dev/tty10: Cannot mknod: Operation not permitted
cpio: dev/ttyS2: Cannot mknod: Operation not permitted
14024 blocks
# quick glance at the contents
amitava@bonjovi:~/prj/ird/initrd$ find
.
./sbin
./sysroot
./bin
./bin/dmraid
./bin/insmod
./bin/nash
./bin/modprobe
./bin/kpartx
./proc
./sys
./init
./lib
./lib/ehci-hcd.ko
./lib/crc16.ko
./lib/virtio.ko
./lib/dm-mod.ko
./lib/ohci-hcd.ko
./lib/virtio_pci.ko
./lib/dm-mem-cache.ko
./lib/sd_mod.ko
./lib/scsi_mod.ko
./lib/uhci-hcd.ko
./lib/ext4.ko
./lib/dm-region_hash.ko
./lib/dm-message.ko
./lib/virtio_blk.ko
./lib/ata_piix.ko
./lib/dm-log.ko
./lib/dm-raid45.ko
./lib/jbd2.ko
./lib/firmware
./lib/virtio_ring.ko
./lib/libata.ko
./dev
./dev/mapper
./dev/ram
./etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment