This is a discussion on How to edit initrd.img in FC5 within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hi, I have FC5 installed on my system, I want to tweak something in my initrd.img file, The problem ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 bye, |
| |||
| 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. |
| ||||
| 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. |