<div dir="rtl"><div dir="ltr">Umm, last time I checked, resize2fs (which now supports ext4, at least in Fedora) can resize to use all available space if you don't give it any parameters. See this: <meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.hermann-uwe.de/taxonomy/term/1867">http://www.hermann-uwe.de/taxonomy/term/1867</a></div>
<div dir="ltr"><br></div><div dir="ltr"><a href="http://www.hermann-uwe.de/taxonomy/term/1867"></a>Thanks,</div><div dir="ltr">Hetz<br><br><div class="gmail_quote">2011/4/3 Ira Abramov <span dir="ltr"><<a href="mailto:Lists-Linux-IL@ira.abramov.org">Lists-Linux-IL@ira.abramov.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello friends, last resort before I go and reinvent the wheel, badly.<br>
<br>
I have a system here that creates a dozen images for medias of different<br>
sizes, installing a few dozen machines every day. I would like to make<br>
the process more unified - install the same 4G image on all medias (dd)<br>
and then maximize sda6, the last ext3 partition, and naturally, the<br>
underlying extended partition sda4.<br>
<br>
The only tool that automates resizing like that is parted, and it still<br>
needs a precise partition length instead of "use all available space",<br>
and won't resize ext3 if I don't turn off the journaling first (make it<br>
ext2). I tried deducing the maximum partition size with fdisk -l and<br>
other sfdisk instead, but each uses different units and I have no idea<br>
how to convert them all correctly so I'm left with working, non<br>
overlapping partitions.<br>
<br>
I'm prepared to do it the hard way, I just wondered if there's a tool I<br>
missed or an existing script that already does this.<br>
<br>
Thanks.<br>
<br>
--<br>
His own worst enemy<br>
Ira Abramov<br>
<a href="http://ira.abramov.org/email/" target="_blank">http://ira.abramov.org/email/</a><br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div></div><br clear="all"><br>-- <br><div dir="rtl"><div style="color:rgb(0, 0, 0);font-family:Verdana, Arial, Helvetica, sans-serif;margin-top:8px;margin-right:8px;margin-bottom:8px;margin-left:8px;background-color:rgb(255, 255, 255)">
<p dir="rtl" style="font-size:10px"><strong><span style="font-size:small"><span style="color:rgb(0, 0, 128)"><span style="color:rgb(0, 0, 0);font-weight:normal">חץ בן חמו</span><br>ח</span><span style="color:rgb(0, 0, 255)">ץ</span>-<span style="color:rgb(0, 0, 128)">ב</span><span style="color:rgb(0, 0, 255)">י</span><span style="color:rgb(51, 102, 255)">ז</span> (<span style="color:rgb(128, 0, 0)">הוסטינג</span>)<br>
</span></strong><span style="font-size:small">השכרה ואירוח של שרתים פיזיים<br></span><span style="font-size:small">השכרת שרתים וירטואליים מקצועיים וגדולים במחירים <b>קטנים</b><br>בקרו באתרנו בכתובת <a href="http://www.hetz.biz/" style="background-color:rgb(219, 216, 222)" target="_blank">hetz.biz</a> ובבלוג שלנו: <a href="http://blog.hetz.biz/" style="background-color:rgb(219, 216, 222)" target="_blank">blog.hetz.biz</a> <br>
</span><span style="font-size:small">טלפוןן: 0783333113/4/5, אימייל: <a href="mailto:sales@hetz.biz" target="_blank">sales@hetz.biz</a> <br></span><span style="font-size:small">מסנג'ר: <a href="mailto:sales@hetz.biz" target="_blank">sales@hetz.biz</a> - סקייפ: heunique</span></p>
</div></div><br>
</div>