I accidentally deleted the initrd image on my system. How do I restore it?
The initrd image for each kernel is built at kernel installation time from the modules and applications on the machine. You can simply build a missing initrd using the command below:
(Do remember to subsitute in the appropriate version for your kernel.)
This is a better way to solve the OP problem posted in the comments
To make an initramfs , first boot an alternate kernel (older is fine)
I do not have the pae kernel installed, if "3.2.0-15-generic-pae" does not work, list the contents of
If you do not have an older kernel, you can boot a live CD and use
This is the answer to the original question, how to extract the initrd.lz from the live CD, typically used if you are making a custom live CD.
copy the initrd.lz to a working directory (
Make a directory to extract the contents to, I will use
Make any changes you might need, re-package
Your new initrd will be in your home directory and called