<br><br><div class="gmail_quote">On Tue, Apr 14, 2009 at 4:16 AM, Tomeu Vizoso <span dir="ltr"><<a href="mailto:tomeu@sugarlabs.org">tomeu@sugarlabs.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[cc'ing fedora-olpc because we are using unmodified fedora tools]<br>
<div class="im"><br>
On Mon, Apr 13, 2009 at 23:33, Walter Bender <<a href="mailto:walter.bender@gmail.com">walter.bender@gmail.com</a>> wrote:<br>
> Thanks. This is all helpful. I wonder what the Fedora USB Creator does<br>
> when it runs under Windows?<br>
<br>
</div>AFAIK, what Mitch says is what we currently do when using both<br>
livecd-iso-to-disk.sh and the Fedora Live USB creator.<br>
<br>
For flashing a big number of sticks with a port replicator, we could<br>
first use livecd-iso-to-disk.sh to copy the partition files to one<br>
stick and set the bootable flag, then use dd to read into an image and<br>
then dd again to write it to the rest of the sticks, provided they are<br>
actually identical inside.<br>
</blockquote><div><br>I don't think they are actually identical inside. They show up as all different sizes.<br><br>I used dd to make an image then zcat to write it to new sticks.<br><br>zcat ./SoaS-Beta-4-9.img.Z > /dev/disk2<br>
<br>I got a fairly high failure rate so I'm not saying this is a good method.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Regards,<br>
<font color="#888888"><br>
Tomeu<br>
</font><div><div></div><div class="h5"><br>
> -walter<br>
><br>
> On Mon, Apr 13, 2009 at 3:53 PM, Mitch Bradley <<a href="mailto:wmb@laptop.org">wmb@laptop.org</a>> wrote:<br>
>> My first order recommendation is "don't use dd to blast an image over the<br>
>> existing partition map".<br>
>><br>
>> The problem with doing so is that it wrecks the factory partition layout. I<br>
>> strongly suspect that said factory layout is, on many sticks, optimized for<br>
>> the characteristics of the stick's internal firmware and the hardware block<br>
>> sizes of the NAND Flash chips.<br>
>><br>
>> Unfortunately, the alternative is rather more complicated procedurally than<br>
>> "dd and pray". But given the indifferent results from dd&pray, I think it<br>
>> may be worthwhile to go for a more elaborate procedure.<br>
>><br>
>> Here is an outline of what I think really should be done:<br>
>><br>
>> a) Ensure that your filesystem image is somewhat smaller than 1G (or 2G or<br>
>> whatever your base size) so it will fit on "all" 1G devices.<br>
>><br>
>> b) The image is just the partition contents, excluding the partition block<br>
>> and master boot record.<br>
>><br>
>> c) The installation procedure involves<br>
>><br>
>> c1) Editing (not replacing) the existing partition map, setting the first<br>
>> partition's "boot flag" byte and changing its filesystem type to ext2 or<br>
>> whatever. (Ideally it would better not to change the filesystem type,<br>
>> instead sticking with the factory FAT partition, but I understand what a<br>
>> hard nut that is to swallow for Linux enthusiasts.)<br>
>><br>
>> c2) Copying the image into the partition<br>
>><br>
>> c3) Installing your bootloader using an installation program instead of dd,<br>
>> thus replacing the first sector's Master Boot Record and doing whatever else<br>
>> is necessary to complete the bootloader's installation. I have had the best<br>
>> results with syslinux.<br>
>><br>
>> There is, of course, a chicken-and-egg problem of how do you run the<br>
>> bootloader's installer. On the other hand, you have the same problem with<br>
>> "dd" - in principle, on any machine that can run "dd", you can also run<br>
>> syslinux.<br>
>><br>
>> If you want to talk more about this issue, please feel free to keep the<br>
>> conversation going. It is a topic that has been much on mind recently.<br>
>><br>
>> Mitch<br>
>><br>
>><br>
>><br>
>> Walter Bender wrote:<br>
>>><br>
>>> I was wondering if you have any words of wisdom to share with us re<br>
>>> USB stick compatibility, given your experience with the XO. There<br>
>>> seems to be a lot of variability in terms of which sticks boot which<br>
>>> machines in our Sugar-on-a-Stick experiments, e.g., using the same<br>
>>> machine (a Classmate running XP) to burn the same image (the Beta SoaS<br>
>>> iso) onto USB storage media from three different vendors, I cannot<br>
>>> predict which one(s) will be bootable on any particular piece of<br>
>>> hardware. Is there any deterministic way to proceed, or is trail and<br>
>>> error our only recourse?<br>
>>><br>
>>> thanks.<br>
>>><br>
>>> -walter<br>
>>><br>
>>><br>
>><br>
><br>
><br>
><br>
> --<br>
> Walter Bender<br>
> Sugar Labs<br>
> <a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Caroline Meeks<br>Solution Grove<br>Caroline@SolutionGrove.com<br><br>617-500-3488 - Office<br>505-213-3268 - Fax<br>