Re: How to edit initrd.img in FC5



Thanks ! that worked ..
but one thing, that took lot of my time -
cpio by default compresses files into an 'old binary format'
however initrd images nedded by fc5 kernels are compresses using the
'newc' format

that means you can incompresses the initrd , modify it, then
recompress,
but if you do not explicitly mention the 'newc' format duing
compression , the kernel will hang after loading itself and not budge
any further.---

(no! no! ) find | cpio --create > /boot/initrd_new.img (Wont ! work !)
find | cpio --create --format=newc > /boot/initrd_new.img (Will work
!)


Allen Kistler wrote:
xask wrote:
Hi,

I have FC5 installed on my system, I want to tweak something in my
initrd.img file,
The problem is how do i acces the filesystem on the initrd.img,

I remmember having been able to access initrd.img on debian and knoppix
systems,
what did was -
i uncompressed the initrd.img
then simply mounted it into a temporary directory -
mount initrd_uncompressed.img /mnt/temp -o loop -t ext3 (or ext2)

but it just doesnt work on fc5 !, it says bad superblock error and all

Starting with (I think) FC3 (but maybe FC2), Fedora initrd images are
compressed cpio archives.

.



Relevant Pages

  • Re: size of file
    ... I created a Power Point show and saved it in the 2007 format. ... Office 2007 uses OpenXML format which compresses the file. ... your OS, Service Pack level ...
    (microsoft.public.powerpoint)
  • Re: size of file
    ... I created a Power Point show and saved it in the 2007 format. ... Then I immediately did a "save as" so that I could also have a 2003 compatible format. ... Office 2007 uses OpenXML format which compresses the file. ... your OS, Service Pack level ...
    (microsoft.public.powerpoint)