[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating an extended partition for whole disk size... automaticly
From: |
Andrew Clausen |
Subject: |
Re: Creating an extended partition for whole disk size... automaticly |
Date: |
Thu, 21 Jun 2001 10:34:34 +1000 |
User-agent: |
Mutt/1.2.5i |
On Mon, Jun 18, 2001 at 09:05:00AM +0200, Bas Rijniersce wrote:
> Hello,
>
> I just started with parted. I'm using it to create a "Restore cd". I would
> like
> to setup an extended partition for the whole disk size, from a script.
>
> Now I have to give start and end position in MB. It would we nice to be able
> to
> use a special keyword like $END to get the end size you also see when you
> use "print"
Yeah, it would be nice to provide a nice mechanism for shell scripts.
I guess it's a matter of someone writing lots of ugly sed stuff...
So, I'd include useful shell routines, if you send me some...
> I'll probably create a script that parses the output of parted < "echo print"
> or something like that. But it would be nice to do that automaticly
Well, doing automatically... how exactly?
> Another nice thing would be a special character that will make parted ignore
> the following line. In my case, i'm using a script for parted:
> # Boot partition, 128M
> mkpartfs primary linux-swap 0 128
Hmm, that's doable. I need to figure out a nicer way of doing
command_line_push_line() in 1.5.x... anyway, that's where it belongs.
I should also mention that there are python bindings available. They
are stable, but some minor changes are being made (mainly polish).
They are available at:
http://people.redhat.com/msw/parted-python.tar.gz
msw: should I add it to parted yet? No Issues TM?
Andrew Clausen