Re: How did i open the initrd plethora ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everybody,

Onkar wrote:
I found it interesting to see the contents of the initrd file.I hope you all also must be interested in trying it out onto your system. to save your time. i have given the steps. Hope that benefits you all and add to your increased understanding of Linux system :)

How do I know the contents of the initrd image ?

SYSTEM:

# uname -a
Linux galileo 2.6.18-5-amd64 #1 SMP Thu May 31 23:51:05 UTC 2007 x86_64 Debian GNU/Linux

STEPS:

(1) cp /boot/initrd.img- 2.6.18-5-amd64 initrd.img.gz
(2) unzip -v initrd.img.gz
(3) cpio -i < initrd.img
You can also zcat /boot/initrd.img- 2.6.18-5-amd64 | cpio -idv

It works when you are looking at a initrd based on ramfs. However there is initrd based on ramdisk so for this case you should mount initrd file such as mouting a block device.

An interesting article about ramfs vs ramdisk: http://www.linuxdevices.com/articles/AT4017834659.html

Regards,

Wainer


This will give contents of the files.


Thanks & regards,
Onkar Mahajan



--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux