Unix Technical Forum

How to edit initrd.img in FC5

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2008, 06:07 PM
xask
 
Posts: n/a
Default How to edit initrd.img in FC5

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,

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-18-2008, 06:07 PM
Allen Kistler
 
Posts: n/a
Default Re: How to edit initrd.img in FC5

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-18-2008, 06:08 PM
xask
 
Posts: n/a
Default 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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com