bug-parted
[Top][All Lists]
Advanced

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

Re: bootimg


From: Andrew Clausen
Subject: Re: bootimg
Date: Tue, 17 Oct 2000 16:24:25 +1100

Eelco Duijker wrote:
> 
> I am trying to re-use the original boot image with some new scripts to
> simplify the use of parted for some support members. But at  the moment
> I am still unable to mount the originel initrd from this image. Can
> anyone tell me how to do this. I already seperated the kernel from the
> initrd. I tried to gunzip the initrd, but that wasn't the sollution.
> Just mounting it with -o loop doesn't work either.
> So if anyone knows what I'm doing wrong, please tell me.

First, the initrd image starts at block 618, IIRC, so you do:

        # dd if=partboot.img of=initrd.gz bs=512 skip=618 bs=1k
        # gunzip initrd.gz
        # mount -o loop -t ext2 initrd /mnt/partedinitrd

Then, to put back your modified image, you just do the reverse.
(Hint: use gzip -9)

Andrew Clausen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]