bug-parted
[Top][All Lists]
Advanced

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

Re: Editing bootdisk


From: Andrew Clausen
Subject: Re: Editing bootdisk
Date: Sat, 20 Apr 2002 16:46:36 +1000
User-agent: Mutt/1.3.28i

On Sat, Apr 20, 2002 at 08:40:09AM +0200, Niels Andersen wrote:
> I'm working on a CD, that should do some cool stuff automatically. I want to 
> base it on the parted bootdisk.
> Just one problem: How can I edit it?

You can do this:

        # dd if=partboot.img of=fs.gz bs=1k skip=X
        # gunzip fs.gz
        # mount -o loop fs /mnt/tmp
        [edit away, and gzip up again, etc.]

X is the offset of the init ram disk.  Linux will say this when the
bootdisk boots... "found initrd at offset X", or something similar.

> In the end, this is what I want:
> I put in the CD, and the computer boots it.
> It asks for a confirmation message. :)
> It find the data-area of the CD
> Using dd (and probably gunzip2 or something) it will copy an hd-image to the 
> hardisk
> Using parted, it will resize that image so it uses the entire hd.

Just a matter of writing a shell script, and playing with /etc/inittab,
or whatever.

Good luck :)
Andrew




reply via email to

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