Hey,<br><br>Quick question, have you manually set sectors, heads, cylinders, tracks, etc, in fdisk?<br><a href="http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Creating-a-bootable-microSD-card/111.html">http://www.gumstix.net/Setup-and-Programming/view/Overo-Setup-and-Programming/Creating-a-bootable-microSD-card/111.html</a><br>
<br>Also, Erik Swedberg was having trouble with a specific SD card reader.  Might try another.  I run Linux on my Macbook Pro 15" and it's internal SD reader works flawlessly.<br><br>Also, some auto mounting schemes in Linux may be suspect.  You might see how you can specify their behaviours for specific device ID's.  For instance, see if you can specify that filesystem X gets mounted "read only" by default.<br>
<br>As far as validation, you can:<br><ul><li>DD the individual partitions from the device to partition image files<br></li><li>mount them as images using loopback</li><li>make your changes to the mounted images<br></li><li>
unmount</li><li>DD the partition image back to the device</li><li>then MD5 both the devices and the images</li></ul>This is slow for large filesystems, obviously, but for boot, it should be fast enough and worth the effort.  In fact, openembedded has features to generate images instead of tar balls for just this reason, but I still prefer tar balls.<br>
<br>As far as interruptions from the OS, I highly doubt it. SD cards are so slow relative to the rest of the system, and Linux file handling so robust, that I can't imagine that such a problem would arise.<br><br>Lemme know if any of this helps or if you come across a solution.  As the under-qualified leader of this group, I need all the help I can get ;-)<br>
<br>I look forward to seeing you on the 30th!<br><br><div class="gmail_quote">On Fri, Dec 17, 2010 at 12:13 PM, Alison Chaiken <span dir="ltr"><<a href="mailto:alchaiken@gmail.com" target="_blank">alchaiken@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">All right, you guys are as liable to know the answer as anybody.<br>
<br>
I've been having problems creating images on SD cards reproducibly.<br>
Sometimes I get bootloader errors when I've only changed the root<br>
filesystem (using Kickstart) and have made no (intentional) changes to<br>
/boot, which contains uboot.    Listing /boot using a USB flashcard<br>
writer plugged into my top shows the same files in working cards as in<br>
non-working ones.    The working cards always boot and the non-working<br>
ones never boot, so the problem is not that the board itself is<br>
unreliable.<br>
<br>
Questions:<br>
1. Is there a general-purpose validation method (like a CRC) for<br>
checking the /boot filesystems or at least comparing the working ones<br>
to the non-working ones?    Can someone suggest an open source tool?<br>
<br>
2. Are interruptions of the writing process a problem?    In other<br>
words, should I be performing the writes with my laptop at runlevel 3<br>
in single-user mode?   Presumably Ctrl-Zing out of an ongoing write<br>
destroys the card, or no?<br>
<br>
3. Anyone else have this problem or have other suggestions?<br>
<br>
Thanks for any suggestions anyone might have.    And I'm interested in<br>
carpooling up to the meetings too.   I'd definitely like to share a<br>
ride for the 12/30 meeting.    My not particularly luxurious or clean<br>
car could take 3 additional people.<br>
<br>
--<br>
<font color="#888888">Alison Chaiken<br>
(650) 279-5600  (cell)<br>
             <a href="http://www.exerciseforthereader.org/" target="_blank">http://www.exerciseforthereader.org/</a><br>
Freedom is not an abstract concept in business. -- Bob Young, founder of Red Hat<br>
_______________________________________________<br>
Tiny-tux mailing list<br>
<a href="mailto:Tiny-tux@lists.noisebridge.net" target="_blank">Tiny-tux@lists.noisebridge.net</a><br>
<a href="https://www.noisebridge.net/mailman/listinfo/tiny-tux" target="_blank">https://www.noisebridge.net/mailman/listinfo/tiny-tux</a><br>
</font></blockquote></div><br>