[PATCH] olpc.fth - grow the root filesystem partition on boot

Emiliano Pastorino epastorino at plan.ceibal.edu.uy
Thu Mar 15 13:21:04 EDT 2012


Hi everyone!

I wrote a dracut module a couple of weeks ago which runs during pre-mount
and
basically performs this steps:
- If >99% of disk capacity is partitioned, exit.
- else, expand the partition to full disk without losing data.

I'm attaching a tar.gz file, without the extension becasue gmail doesn't
like it.

I've tested it only with XOs 1.5 and haven't measured time cost.

If someone else is going to test it, please send comments, bugs or
suggestions.

Emiliano

On Thu, Mar 15, 2012 at 11:35 AM, Daniel Drake <dsd at laptop.org> wrote:

> On Thu, Mar 15, 2012 at 1:58 AM, Peter Robinson <pbrobinson at gmail.com>
> wrote:
> > Well it works fine for 100s of devices in our datacenter at work,
> > maybe there's some mechanism not implemented in mmc or the linux code.
> > cjb might be able to fill in some of the gaps..
>
> It only works if the device is unused (not mounted). James is trying
> with partitions already mounted.
> It will work if we do everything carefully from the initramfs.
>
> Daniel
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>



-- 
Ing. Emiliano Pastorino
Centro Ceibal
Av. Italia 6201 Ed. Los Ceibos
Montevideo, Uruguay
Tel: (598) 2601 5773 int.: 2232
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20120315/d92778d9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ceibal-expand-disk-1.0
Type: application/octet-stream
Size: 30720 bytes
Desc: not available
URL: <http://lists.laptop.org/pipermail/devel/attachments/20120315/d92778d9/attachment.obj>


More information about the Devel mailing list