<html><body><span style="font-family:Verdana; color:#000000; font-size:10pt;"><div>Frank,<br></div><div><br></div><div>What are these "grub legacy bugs" of which you speak? That's of particular interest since trying to update GRUB on my older Voyage systems results in being told GRUB is up to date ..<br></div><div><br></div><div>I am extremely disappointed in how GRUB works. Considering its importance, it should work far more reliably than it seems to work, particularly in the embedded space. The only reason I've not switched to LILO is because I can't seem to find ways to shut it up completely.<br></div><div>--<br>Julie Haugh<br>Senior Design Engineer<br>greenHouse Computers, LLC // jfh at <a href="http://greenhousepc.com">greenhousepc.com</a> // greenHousePC on Skype</div><div><br><br></div>
<blockquote id="replyBlockquote" webmail="1" style="border-left: 2px solid blue; margin-left: 8px; padding-left: 8px; font-size:10pt; color:black; font-family:verdana;">
<div id="wmQuoteWrapper">
-------- Original Message --------<br>
Subject: Re: [Voyage-linux] Cloning a system<br>
From: Frank Hoeflich <<a href="mailto:frankhoeflich@yahoo.com">frankhoeflich@yahoo.com</a>><br>
Date: Wed, March 07, 2012 12:21 pm<br>
To: "<a href="mailto:voyage-linux@list.voyage.hk">voyage-linux@list.voyage.hk</a>" <<a href="mailto:voyage-linux@voyage.hk">voyage-linux@voyage.hk</a>>, Stanislav<br>
Sinyagin <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>><br>
<br>
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Stanislav:<div><br></div><div> While I agree that cloning your ro system live ought to work, I didn't spend much time on it. Once I have a CF that works OK then I clone offline:</div><div><br></div><div>host# dd if=/dev/sdb of=mycf.bin bs=512 count=3931200</div><div>host# eject /dev/sdb</div><div><switch CF in /dev/sdb to a new one></div><div><format new CF however you like></div><div>host# dd if=mycf.bin of=/dev/sdb bs=512 count=3931200</div><div>host# eject /dev/sdb</div><div><br></div><div>Then the new CF works just fine. You'll have to adjust the count for your device. Is this good enough for you?</div><div><br></div><div> On my last project we went a step further and modified the SDK to produce a regular file from the gitgo, so you directly produce mycf.bin and then dd it to CF whenever you want to make a copy. Works great in Voyage 0.6.5 and 0.7.5 once you get past a couple of known grub legacy (v0.97) bugs, haven't verified in 0.8.0 yet ...<br><div><br></div><div>--Frank<br><br>--- On <b>Wed, 3/7/12, Stanislav Sinyagin <i><<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">From: Stanislav Sinyagin <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>><br>Subject: [Voyage-linux] Cloning a system<br>To: "<a href="mailto:voyage-linux@list.voyage.hk">voyage-linux@list.voyage.hk</a>" <<a href="mailto:voyage-linux@voyage.hk">voyage-linux@voyage.hk</a>><br>Date: Wednesday, March 7, 2012, 9:36 AM<br><br><div id="yiv124968088"><div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;"><div>hi,</div><div><br></div><div>I'm trying to clone a live system to a new CF, and GRUB fails. Please advise, as I'm not a too deep specialist in Grub.</div><div><br></div><div>My sequence is as follows. The board is alix2d13 from PC Engines. The new CF card is attached via USB card reader at /dev/sdb.</div><div><br></div><div>remountro<br>/usr/local/sbin/<a href="http://format-cf.sh">format-cf.sh</a> -t /dev/sdb -b 1 -y<br>mkdir /tmp/cf<br>mount /dev/sdb1 /tmp/cf<br>cd /tmp/cf<br>dump -f - /dev/hda1 | restore -r -f -<br></div><div><br></div><div><br>That was easy, and now Grub fails:</div><div><br></div><div>root@alix102:~# /usr/sbin/grub-install --root-directory=/tmp/cf /dev/sdb<br>The file /tmp/cf/boot/grub/stage1 not read correctly.</div>root@alix102:~# ls -al /tmp/cf/boot/grub/stage1<br><div>-rw-r--r-- 1 root root 512 Mar 7 17:31 /tmp/cf/boot/grub/stage1<br>root@alix102:~# <br></div><div><br></div><div><br></div><div>The system is 0.8.0 release.<br></div><div></div></div></div></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Voyage-linux mailing list<br><a target="_blank" ymailto="mailto:Voyage-linux@list.voyage.hk" href="/mc/compose?to=Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br><a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br></div></blockquote></div></div></td></tr></tbody></table><hr>_______________________________________________<br>
Voyage-linux mailing list<br>
<a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
<a href="http://list.voyage.hk/mailman/listinfo/voyage-linux">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
</div>
</blockquote></span></body></html>