Lets say, you have a Linux Installer CD/Live CD, and you want to know what your system does immediately after booting kernel. initrd image is the place you might want to look at.
Initrd is actually a zipped , cpio archive of the hierarchy of directory structure. It contains init script aka mother of all processes. copy your initrd image into tmp folder. Then issue the following command.
$gunzip initrd.gz
$cpio -id < inird
This will create the entire directory structure. you will find 'init' as executable. If you are using a Linux-installer CD OR Live DVD chances are the initrd image uses busybox.
Happy Exploring.
Tuesday, March 23, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment